keyongtech


  keyongtech > dotnet.* > dotnet.distributed_apps > 06/2004

 #1  
06-11-04, 09:18 PM
Yolande
How to check the OS version in launch condition?

Hi there,

I'm working on a VS.NET setup project and I need to check the version of the opearting system (if it is Windows 2000 or higher) before the installation. Can anyone teach me how to do it using launch condition?

Thanks in advance.

yolande
 #2  
06-24-04, 12:40 AM
Sahil Malik
GetVersionEx Win32 function is what you need, it returns a LPTR
OSVERSIONINFO structure.

If you are on a tablet, then you can use GetSystemMetrics(SM_TABLETPC).

Or else, you can use within .NET System.Environment.OSVersion, but that
gives you incomplete info for NT and higher (unless you check the actual
build #).

- Sahil Malik
Independent Consultant
You can reach me thru my blog - [url down]



"Yolande" <Yolande> wrote in message
news:233c
> How to check the OS version in launch condition?
>
> Hi there,
>
> I'm working on a VS.NET setup project and I need to check the version of

the opearting system (if it is Windows 2000 or higher) before the
installation. Can anyone teach me how to do it using launch condition?
[..]
Similar Threads
Using a Launch condition to check if another product is installed?

Is it possible to easily setup a launch condition that checks if another product is installed on the system? I am trying to create an installation that adds some additional...

Launch condition to uninstall previous version of application

Hi, My previous version of application was built using Install shield and the current version, i am developing throuhg setup and deployment VS2005 project. 1) I wanted to...

How to use the Launch Condition ?

Hi MSI Experts: I have some questions on using the "Launch Condition" in VS 7.0 msi setup project: (1) how can I set condition for "Admin privilege only" (only the user...

Launch condition

Hi, I am using "Set Up and Deployment project" of .Net to build msi for our application. Normally, if launch condition is false, installation can not continue. Is there a...

launch condition

Hi all, I am using Visual.NET 2003 from a MSDN subscription. I am creatiing a setup & deployment project. I have a launch condition call VerifyOperatingSystem which ensures...


All times are GMT. The time now is 01:15 AM. | Privacy Policy