Hello Toby,
If you want the “per-user” option to be selected as default on “InstallTypeDlg” dialog, you have 2 options:
- From the “InstallTypeDlg” dialog, select the “Only for me ()” radio button and in the “Properties” tab on the right panel change the “Selected” option value to “True”.
![per-user.jpg](./download/file.php?id=10172&sid=f963f970898b598f6d0242d075ddf618)
- per-user.jpg (124.04KiB)Viewed 11740 times
- You can initialize the “ALLUSER” property as an empty string with the following values: or
If ALLUSERS is not set, the installer does a per-user installation.
Add a “New Control Event” → “Set installer property value” and configure like in the screenshot below:
![empty value.jpg](./download/file.php?id=10173&sid=f963f970898b598f6d0242d075ddf618)
- empty value.jpg (148.13KiB)Viewed 11740 times
Please note that this option is selected by default if the user is a standard account, and the “Everybody” option is default if the user is admin.
If that is not what you meant, then can you please give us more details?
Second, why do I have to allow a 'everyone' install for a mixed install? It is not an installation option that I want to support. It seems this is mostly a matter of setting defaults and then removing the InstallTypeDlg (a UI change).
I’m not sure I understand your scenario, why would you remove the “Everyone” option if you have a mixed install?
When you select a mixed install which is “Per-machine if the user is an administrator, per-user otherwise”, the application will be installed "Per-machine" if the user has administrative rights and "Per-user" otherwise.
This is the default behavior when using mixed install.
The installation will be per-user with no UAC prompt only if the resources are installed in per-user locations. Besides this, the installation will also require the “InstallTypeDlg” dialog so the user can choose the per-user option.
How can I remove the 'Everyone' option?
You can do that by deleting the radio button option from the
“InstallTypeDlg” dialog.
Right click on the
“Everybody (all users)” option and delete it.
and also, the 'UAC' icon on the Install command which is incorrect for per user installs.
As detailed, the “UAC” on the “Install” button appears only
if the user is an administrator.
I attached below 2 screenshots, in the left the installation is on a standard account and in the right on an admin account. As you can see, when the user is not admin the “UAC” icon is not there.
![image.png](./download/file.php?id=10175&sid=f963f970898b598f6d0242d075ddf618)
- image.png (210.56KiB)Viewed 11740 times
Hope this helps, otherwise can you give us more details and maybe a test case?
Best regards,
Liviu