We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

kilhan
Posts: 6
Joined: Wed May 30, 2007 4:21 pm
Location: POLAND
Contact: Website

How to give a choice of current user or all users setup?

Hi,

I need to add a user’s choice whether to install the program for the current user only or for all users. Depending on the user’s choice I must define in Custom Actions/Commit two various commandline commands or launch two various batch files (for correct registering in Vista Media Center).

How can I do it in Advanced Installer PRO?

Regards

Chris
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

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

Return to “Common Problems”