Hi Chris,
Here is how you can do that:
Switch to the "Install Parameters" page and set the "Installation Type" option to "Per-user only (with administrator rights required)".
Now switch to "Dialogs" page and create a new CheckBox (for example named: "Install To All Users"). In the "Properties" list of the CheckBox set the "Property Name" to
ALLUSERS and set "Value" field to
1.
Depending on the user’s choice I must define in Custom Actions/Commit two various commandline commands or launch two various batch files
Condition the custom action with the value of ALLUSERS (for example use: ALLUSERS=1 as condition if user select to install to all users).
Note that you need to create an "Enterprise" type of project (which requires an "Enterprise" license) in order to use the "Dialog" editor.
Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
FOLLOW US
Get the latest news in Application Packaging