Hi,
Just to clarify, under Windows Vista ALLUSER=2 does not work, which means that you cannot create mixed packages ("Per-machine if user is administrator, per-user otherwise").
However, another option is to use the ALLUSERS option to let the user choose between "Per user only (with administrator rights required)" and "Per machine":
- in the "Dialogs" page, in the "FolderDlg" dialog you add a Radio Button Group which will contain two radio buttons:
- - "Only for me" (in the "Properties" page, "Value" section, you set "Value=0" and "Selected=True")
- "For Everyone" (in the "Properties" page, "Value" section, you set "Value=1" and "Selected=False")
- In the "Properties" page of the RadioButtonGroup you set the "Property Name" to RADIO_PROP (this property will be
0 if "Only for me" is selected and
1 if "For Everyone" is selected)
- you select the "Next" button and under the "Published Events" tab you add the following control events:
Code: Select all
[ALLUSERS] 1 RADIO_PROP = "1"
[ALLUSERS] [DUMMY] RADIO_PROP = "0"
The first control event sets a "Per machine" installation and the second one sets a "Per user only (with administrator rights required)" installation by using the non-existing property DUMMY which is empty by default.
Regards,
cosmin
FOLLOW US
Get the latest news in Application Packaging