Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Launch Conditions. Xp 32 or any vista or higher
 

Launch Conditions. Xp 32 or any vista or higher

I have been having real problems with using OS versions as a launch condition. My required condition is XP 32 bit only or any version of Vista or higher OS. It appears that
the issue is VersionNT is undefined on a 64 bit os and VersionNT64 is undefined on a 32 bit OS

This is my current version which does not work.
VersionNT=501 and VersionNT64<>501 or VersionNT>501 or VersionNT64>501
Any ideas?
BarberColman  Tuesday, September 01, 2009 7:56 PM
I think you need something like:

VersionNT>=501 or VersionNT64>=600

meaning any 32-bit OS at XP or greater, or any 64-bit OS at Vista or later
Phil Wilson
PhilWilson  Tuesday, September 01, 2009 8:12 PM
I agree with you that I need something like this. :-). Butssing "VersionNT>=501 or VersionNT64>=600 " as a launch condition allow the installer to launch on XP 64. My guess is undefine is breaking the >= comparison.

Has anybody made this work. I have posted questions close to this and several people have been helpfullwith answers but when tested none of them worked.

BarberColman  Tuesday, September 01, 2009 8:21 PM

Something is broken then, because that condition looks correct to me.

VersionNT>=501 means "if the 32-bit NT version is XP or greater"

VersionNT64>=600 means "if the 64bit OS version is Vista or greater"

and or-ing these together should be correct.

In the Welcome dialog properties for your setup where it says something like "This will install [ProductName] ...." you can temporarily change this to display the properties byusing,say, "NT is [VersionNT] and NT64 is [VersionNT64] ......" so you can see the actual property values.

Make sure that you are getting the case right. These property names are case-sensitive.


Phil Wilson
PhilWilson  Thursday, September 03, 2009 6:59 PM
Thank you for the help on displaying the properities. I will test this and let you know what happens. In the past the tests I ran appeared toshow that VersionNT>=501 was true on 64 bit machines because VersionNT is undefinded on VersionNT64 bit machines. IT is supposed to be getting me a VM so it will be faster to test multiple OSs.
BarberColman  Friday, September 04, 2009 12:32 PM

You can use google to search for other answers

Custom Search

More Threads

• How to translate Setup Dialogs in Setup project
• Problems with setup project - am I thick?
• SDK - CertMgr.exe
• ClickOnce and Setup (can publish but cannot INSTALL)....
• Uninstall, leave config files
• include vfpoledb.dll into .net build (VB.NET 2005 windows forms)
• Error Loading schema assembly.adaptive.xsd
• issue with preparing setup and deployment using Visual studio 2005
• Install Certificate for WSE 3.0 Encryption via ClickOnce
• how to restrict the installation location