shLin
Posts: 6
Joined: Mon Sep 19, 2011 3:12 pm

Custom Action Administrator Privileges

Hi everyone, I am trying to run one custom action that modify the windows registry (exe file), but I get the following message:

"You do not have access to make the required system configuration modifications, Please rerun this installation from an administrators account"

Custom Action configuration:
Install process
Synchronous execution, check return code
Immediate execution
Always Execute

somebody knows how can I run the msi with administrator privileges?

thanks in advance.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom Action Administrator Privileges

Hi,

To run a custom action with full privileges you can schedule it between InstallInitialize and InstallFinalize actions as Deferred with no impersonation. This way it will run under the SYSTEM account.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shLin
Posts: 6
Joined: Mon Sep 19, 2011 3:12 pm

Re: Custom Action Administrator Privileges

Thanks for the information, I set my Custom ACtion between InstallInitialize and InstallFinalize actions as Deferred with no impersonation, and everything works fine.

Thanks,

Return to “Common Problems”