cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
westhusing
Level 6

Elevate Chained MSI

Is there a way to elevate a chained MSI?

It seems that I am having trouble starting a service in a chained MSI because it appears that the chained MSI is not receiving the proper elevation.

Could there be a way to pass a property or something to the chained MSI to allow it to run elevated?

Thanks.
Labels (1)
0 Kudos
(2) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

I assume you mean to have it pre-elevated, like the setup.exe execution level setting of Administrator does in a single-package project. If so, I believe you can only do this at the outermost level with that same setting. Otherwise Windows Installer will use the limited privileges for all actions which are not deferred in system context.
0 Kudos
westhusing
Level 6

I have a custom action within a chained MSI that requires Admin privileges. If I was installing this MSI on its own, I would just bootstrap the MSI within a setup.exe to get the Admin privileges.

However when I run an Installscript MSI that installs this MSI via chaining as an Admin, this MSI is not getting the proper privileges because it's returning an error that would only occur in Non-Admin mode.
0 Kudos