How do I make the package install per-user or per-machine?Answer This How-To can be implemented only in an Advanced Installer
Enterprise project.
The installation type (per-user or per-machine) can be set in the
Install Parameters page.
However, you can allow the user to select if he wants to install the
package per-machine or per-user. In order to use this functionality you need to make sure that the
installation package doesn't install any resources in per-machine
locations (for example in the "Program Files" or "Windows" folders).
You can give the user the option to set the installation type by
following these steps: - go to the "Install Parameters" page and set the "Installation
Type" combo to Per-user only
- go to the Dialogs page and
create a new dialog (or use an existing one)
- create on this dialog a radio button group with two radio buttons
on it (one to install per machine, the other to install per user)
- set the property of the radio button group to
RADIO in the Properties pane
- for the per-user radio button set the "Value" field to
user
- for the same radio button set the "Selected" attribute to
True (this can be done for the radio button you
want)
- for the per-machine radio button set the "Value" field to
machine
- select the "Next" button on the custom dialog and go to the
Published Events tab
- add these control
events:
[ALLUSERS] [EMPTY] RADIO="user"
[ALLUSERS] 1 RADIO="machine" This way the ALLUSERS property will set the
installation type based on the option selected by the user. |