Hi,
I have an installer working on a per-user basis which covers 99% of my install scenarios brilliantly, but... In some admin scenarios my application needs to be installed silently by an administrator who is not the target user. In this case, the install should be for ALLUSERS.
In fact, an installation type of "Per-machine if user is administrator, per-user otherwise" is exactly what I want. The problem is that the only way I can get this to behave as expected is to add a InstallTypeDlg. With this dialog, I am prevented from setting the APPDATA directory dynamically (Program Files for Admin, AppData for Users). Without this dialog, the user receives a UAC prompt every time.
This solution really bugs me. I already know the correct choice based on the type of user. The install I want is "Per-machine if admin, per user otherwise". I should be able to handle both scenarios as a two click install with the Surface theme and the InstallDlg. That is: InstallDlg, ProgressDlg, ExitDialog.
I have been scouring your forums for hours and have tried all manner of power shell inline custom events with and without the ALLUSER setting, but I just cannot get it to work. What is so special about the InstallTypeDlg? How can I duplicate this behavior with a powershell script and jump straight into InstallDlg? What does an install type of "Per-machine if admin, per user otherwise" mean? What is it supposed to do?
Maybe I need two installers - one for per-user and one for all-users? I think this might be preferable to showing the InstallTypeDlg.
Please note the I am using the Professional license of your product. I can upgrade to Enterprise if required, but it is not clear it will help in this case.
Thanks in advance,
Toby