El-ahrairah
Posts: 6
Joined: Mon Apr 28, 2014 3:54 pm

LocalSystem / No Impersonation not available (Custom Action)

Product = Advanced Installer Enterprise

Hello,

My current Setup project contains two custom actions. One is execution of a Visual Basic Script (@ Uninstall), and the other is execution of an installed file (executable, @ Install).

Both execute properly on a Windows XP machine. For the execution of the installed file, on a Windows 7 machine, I need the "Run under LocalSystem account with full privileges (no impersonation)" option. However, this checkbox is unavailable (greyed-out) on the properties page for the custom action.

Is some other setting within the project affecting the availability of this option?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: LocalSystem / No Impersonation not available (Custom Act

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

Indeed, the "Run under LocalSystem account with full privileges (no impersonation)" option is available only during the "Install Execution Stage" section and only between the "Preparing" action group and "Finish Execution -> InstallFinalize" standard action. Anywhere else a custom action cannot run under the LocalSystem account with full privileges.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
El-ahrairah
Posts: 6
Joined: Mon Apr 28, 2014 3:54 pm

Re: LocalSystem / No Impersonation not available (Custom Act

Thank you very much. It took me a moment to do it, but using the information which you supplied, I was able to get this to work.

Specifically, the following RadioButton was active:
Custom Actions (tab) >> Existing Custom Actions (tab) >> Execution Time >> "Immediately".

Having left this button in the GUI selected, "no impersonation" was not allowable.

Thanks again.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: LocalSystem / No Impersonation not available (Custom Act

You're welcome. I'm glad you got this working.

Indeed, I forgot to mention that the "no Impersonation" option is available only when one of the "deferred", "rollback" or "commit" options is selected, too.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”