I have an msi that require Administrator privilege to install.
In the "Install Parameters", "Run as Administrator" is checked, and "Per-machine only (failed if user is not Administrator).
First time install runs ok (by double clicking on the msi) as the UAC is prompted.
Second time running the MSI, the maintenance wizard is showed but no UAC is prompted and the sequence is run as user level.
I have custom action that requires admin privileges to run and check a condition if it is met before the installation is run. So it needs to run before "Preparing" and can't be changed to "deferred" execution time and change to "Run under the LocalSystem account with full previledge (no-impersonate)"
Why doesn't maintenance started as admin like the first time install? Is this expected behavior? if So, is there a workaround?