I'm using radio buttons to have the user select which type of installation to perform and then having a VB script select the proper components. Because our application relies on SQL Express 2008 R2 we provide both the 32 and 64-bit versions with the install. In the VB script, I am using the system environment variables VersionNT and VersionNT64 in some "If" statements to select the correct version to install. I noticed that if the OS is 64-bit, BOTH VersionNT and VersionNT64 are populated with the proper value (601 for Windows 7). However, if you run the installation on a 32-bit OS, only VersionNT contains the OS property value.
Because a 64-bit OS populates both VersionNT and VersionNT64 I have to do the check to see if VersionNT64 is valid
first or else it would always run the 32-bit version even if the OS was 64-bit. In the VB script, what logic should I use to determine if VersionNT64 is empty / invalid? I've tried:
Code: Select all
If (Session.Property("VersionNT64") = "")
and that will cause the install to stop running with an error. Any Assistance is appreciated!
Thanks
FOLLOW US
Get the latest news in Application Packaging