cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
droland
Level 4

Requesting elevated privileges from msi

Hello,

The Altiris Wise is able to create msi project (not setup exe) to request elevated privileges on Vista and above...

It calls a dll function to create a new process for msiexec with elevated privileges and then it closes the old msiexec process.

Is there any way to achieve it with Installshield? Does anybody know how I should do it?

Thank You

DR
Labels (1)
0 Kudos
(3) Replies
Matthias1967
Level 5

Windows Installer runs in two different processes: a client process running the User Interface sequence and a server process running the Execute sequence. When Windows Installer switches from the client to the server process, UAC asks for permission. By default, the "Install" button on the ReadyToInstall dialog should display the UAC shield icon.

If you want elevated privileges from the beginning (this may be needed for custom actions running in user context, even in the Execute sequence...), you have to set these privileges in setup.exe.

In the Releases view of InstallShield, select a release, go to the setup.exe tab, set "Required Execution Level" to "Administrator".

Best regards,

Matthias
0 Kudos
TsungH
Level 12

droland wrote:
Is there any way to achieve it with Installshield? Does anybody know how I should do it?
You meant it's not happening out of box (for Basic MSI project)? Did you verify it?
0 Kudos
harid38
Level 5

0 Kudos