PDA

View Full Version : Creating License/Trial Versions of Program to Run Simultaneously



CIWGeorge
04-08-2011, 10:28 AM
I have a program in VS-2008 that will be used as both licensed and trial versions. The licensed and trial versions are installed in different Program File (x86) directories and I want to be able to run both licensed and trial versions simultaneously. After performing the following steps, the licensed and trial versions of the program still seem to be “linked” – I can’t install an older version of the licensed program after I’ve installed a newer version of the trial program.

I am running InstallShield 2011 Express as a command line with IsCmdBld.exe.

My arguments for IsCmdBld include the following parameters:
-y: Product Version
-z: ProductCode
-z: UpgradeCode

In VS, I build the solution with a specific AssemblyFileVersion (11.1.1.1), and then I build licensed and trial installation programs in InstallShield:

License (TS_L_11_1_1_1.exe):
Product Version = 11.1.1.1
Product Code = GUID_a
Upgrade Code = GUID_L
Installation Directory: c:\Program Files (x86)\CIW\TS

Trial (TS_T_11_1_1_1.exe):
Product Version = 11.1.1.1
Product Code = GUID_b
Upgrade Code = GUID_T
Installation Directory: c:\Program Files (x86)\CIW\TS\Trial

In VS, I build the solution with a new AssemblyFileVersion (12.1.1.1), and then I build licensed and trial installation programs in InstallShield:

License (TS_L_12_1_1_1.exe):
Product Version = 12.1.1.1
Product Code = GUID_c
Upgrade Code = GUID_L
Installation Directory: c:\Program Files (x86)\CIW\TS

Trial (TS_T_12_1_1_1.exe):
Product Version = 12.1.1.1
Product Code = GUID_d
Upgrade Code = GUID_T
Installation Directory: c:\Program Files (x86)\CIW\TS\Trial

Note that each build, each version, and each application in InstallShield has a unique Product Code. All licensed product builds use the same Upgrade Code (GUID_L); all trial product builds use the same Upgrade Code (GUID_T).

I install TS_T_11_1_1_1.exe, and then install TS_T_12_1_1_1.exe. These are installed in c:\Program Files (x86)\CIW\TS\Trial. Version 12 overwrites version 11, as expected.

I then try to install TS_L_11_1_1_1.exe. While I would expect it to be installed in c:\Program Files (x86)\CIW\TS, I get an error message indicating that a newer version of this program is already installed (referring to TS_T_12_1_1_1).

What am I missing to identify the licensed and trial versions of the program as totally different programs? I want to be able to run any version of the licensed program at the same time as any version of the trial version.

Thank you in advance for your help.

George