Andrey
Posts: 47
Joined: Thu Jul 10, 2014 9:06 am

UAC for per user installation on Windows Vista

Hi, Advanced installer team,

Here are two simple AIP projects in attachment:
(1) Installs per user.
per_user.aip
(11.17 KiB) Downloaded 406 times
(2) Installs per machine if user is admin, otherwise installs per user. Added Install type selection dialog.
per_machine_or_per_user.aip
(11.87 KiB) Downloaded 407 times
After both msi are built, they are signed with trusted digital certificate.
(1) Msi installs perfectly on Vista without prompting UAC . But when I'm installing (2) Msi and selecting "only for me" radiobutton in Installation type dialog it shows UAC.

What should I change in (2) aip to make it possible to install without UAC for current user?

Best regards,
Andrey
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: UAC for per user installation on Windows Vista

Hello Andrey,

This is the default Windows Installer behavior. On Windows Vista machines, Windows Installer tries to elevate all installation packages (launched with UI) having the "ALLUSERS" property set to 2 by default ("Per-machine if user is administrator, per-user otherwise" option from "Install Parameters" page). This is a Windows Installer limitation and there is no workaround which you can use.

You should be able to achieve the desired behavior when installing the setup package only on target machines having Windows Installer 5.0 (Windows 7 and above).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”