Dev
Posts: 17
Joined: Mon Oct 06, 2008 6:55 am

DotNetCustAct in InstallFinalize

If I want to run a dotNet Custom Action in InstallFinalize, what should the function declaration look like? I don't see a InstallFinalize to override, like the install/commit/uninstall/rollback.

I've tried Install, Commit, Committed (event), and Committing (event) but the IIS website does not appear to be installed yet at that point.
Cristi
Posts: 34
Joined: Wed Oct 08, 2008 8:44 am
Contact: Website

Re: DotNetCustAct in InstallFinalize

Hi,

You can schedule your Custom Action under "InstallFinalize" but in this case it can be executed only as "Immediate". Please note that under Windows Vista the custom actions that performs system modifications (like your .NET Custom Action may) can be executed only as Deffered with no impersonation, otherwise they will fail .Therefore I recommend creating it under "Install".

In the Custom Action Properties window you must leave the "Function Name" field to its default value "LaunchDotNetCustomAction".In this case the Action argument of the .NET Custom Action will be set to "Install" and in your code you will override the Install method of your Installer-descendant class. For more details see this page .

Best regards,
Cristi
______________________________
Cristi Costache
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”