biji
Posts: 1
Joined: Tue Mar 29, 2005 1:42 pm

conditional launching of a Exe during custom action

hi,
I am evalvating the S/W. I need to invoke different Exe in the Custom action Group based on the Current operating system. for Example

IF the OS is Windows XP, then need to Invoke MYWINXP.EXE
IF the OS is win2000 then need to invoke MYWIN2K.EXE

Pls let me know this is possible
UdreaMihai
Posts: 90
Joined: Wed Mar 23, 2005 8:13 am

Hello,

Windows Installer sets a property named "VersionNT" corresponding to each OS. This property is "501" for WinXP is and "500" for Win2K. So you have to condition:

- your MYWINXP.EXE custom actions with: VersionNT="501"
- and your MYWIN2K.EXE custom actions with: VersionNT="500".

Regards,

Mihai
Udrea Mihai
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Feature Requests”