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

[Windows 7] Error 1721 if MSI is launched instead of setup.exe

Hello,

We're currently testing our new installer on serveral systems.
Everything works fine, there's just one problem on Win7:

I've added a custom deferred action which installs a service on installation time and removes it on uninstall. Works great - but only if I'm launching the setup.exe directly. Setup.exe asks for admin rights (UAC message) and everything works. If I launch the MSI package, it starts and but asks for admin rights just right before the actual file processing takes place. After this it throws an error 1721 for my action "LicenseService_Install".

My actions are sequenced like this:
LicenseService_Install - Install Exec; Seq. after RegisterComPlus; Condition "Not Installed"
LicenseService_Uninstall - Install Exec; Seq. after StopServices; Condition REMOVE~="ALL"

Both are configured for
Return processing: Sychronous (Check Exit Code) and
In-Script Execution: Deferred Execution

The used .exe file to install the service has a "require Administrator" Vista/7 Manifest embeded. Maybe this is the problem?

I'm using IS 2010 Premier and an Basic MSI Project.
Thanks for any hints!

- Manuel
Labels (1)
0 Kudos

(2) Replies
girishkatti123
Level 7

USe In-Script Execution: Deferred Execution in System Context.
In System Context the custome action will run with system account.
0 Kudos
Manuel_K
Level 4

This works, thanks 🙂
0 Kudos