Problem with Licensefile copy custom action - Advanced Installer Community
franky13
Posts: 8
Joined: Thu Jan 01, 2009 6:17 pm

Problem with Licensefile copy custom action

Hi all,

I created my setup so far which contains a custom action, that copies a licensefile at the "InstallFinalize" phase as suggested in the sample-project from this tutorial http://www.advancedinstaller.com/user-g ... -file.html.

The setup works perfectly on Windows XP, but on Vista (with UAC activated) the licensefile copy action fails with an "access denied" message, although I confirmed the UAC prompt at the beginning of the installation (Install button on "Ready to install" wizard-page has the little shield-symbol and if I click Install, the UAC prompt comes up).

Unfortunately the custom action (type "Exe with working directory") does not allow me to change its execution option to "Deferred with no impersonation" (option is greyed out), which seems to be necessary for Vista.

Any help would be highly appreciated :-)

Thanks and regards
Frank
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problem with Licensefile copy custom action

Hi Frank,

On Vista a custom action which needs Administrator privileges should run as "Deferred with no impersonation". This way it will run under the local system account with full privileges. Please note that only custom actions scheduled between "InstallInitialize" and "InstallFinalize" can be set as deferred. Therefore, you can scheduled your custom action under "InstallExecuteSequence" -> "InstallIIS".

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
franky13
Posts: 8
Joined: Thu Jan 01, 2009 6:17 pm

Re: Problem with Licensefile copy custom action

Hi cosmin,

that worked - glad it runs now :-). Thanks again!

Best regards
Frank

Return to “Common Problems”