Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you force MSI to be always admin?

As far as I have researched and asked other people, it seems that regular MSI runs as limited user for most of the time, especially during GUI phases.

But the application requires elevated prompt during install phase anyway, and I would love to have admin rights during custom actions that are performed during GUI selection phases. Is there really no way to force the UAC prompt right at the beginning?

Also, some custom actions need to be performed during Active Directory install as well, and also cannot be done if the MSI runs as guest or something.

like image 640
Coder Avatar asked Nov 26 '10 15:11

Coder


2 Answers

Custom actions may still fail on Vista, Server 2008 and Windows 7 even when running an elevated installer. This is because they run by impersonating the user which elevated the process.

Custom actions which require full privileges and don't use per-user information should be marked to run without impersonation. This way they run under the local system account with no restrictions.

like image 71
rmrrm Avatar answered Nov 15 '22 08:11

rmrrm


You can launch your MSI from a bootstrapper, which contains appropriate manifest embedded.

like image 44
Yan Sklyarenko Avatar answered Nov 15 '22 07:11

Yan Sklyarenko