Help on custom action - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

kcc1234
Posts: 2
Joined: Fri Sep 10, 2010 9:47 pm

Help on custom action

Hi all,

I am running into a problem for custom action in Vista and Window 7. The UAC is set to be enable for Vista. For Window 7, the UAC is set to Default - Notify me only when programs try to make changes to my computer. The problem is that I ran an executable (part of InstallExecuteSequence-Install) which produces a license file then writes into the "Program File" folder. The OS just blocks my executable to save the license file. What administrative right does the executable have ? Can I elevate the right (to administrator) to execute my executable?

Thanks.

Colin
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Help on custom action

Hello Colin,

On Windows Vista or above the custom actions which affect the system or require Administrator privileges should run without impersonation.This way they will run under the local system account with full privileges.
If your custom action is placed after InstallExecuteSequence-Install you need to use the "Deferred with no impersonation" execution option. Please note that deferred custom actions do not have access to installer public properties.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”