![]() ![]() Right-click the action (ie Install, Commit, Rollback or Uninstall) that you want to wire up (should correspond to the event you wrote the event handler for earlier) and select Add Custom Action (if you right-click the Custom Actions node it will wire up events for all four actions).Right-click the setup project and select Custom Actions from the View menu.Add your logic into the event handler that is created (this is your custom action).From the Properties grid select the Event view, followed by the event that you want to wire up (eg AfterInstall) – Double-clicking the drop-down box will create an empty event handler!.If the Installer item is not currently open, double-click it in the Solution Explorer to open the designer.Add an Installer item to your application (from the New Item dialog select the Installer template).The process goes a bit like this (assumes that you have already created your setup project and have added the primary output of your application): Each action can be written in managed code in a similar way to a typical event handler. These can be hooked up to the installer to execute at various points such as Before/After Install, Before/After Rollback and Before/After Uninstall. One of the common tasks when building an installer for an desktop application is to add your own Custom Actions. This post is more of a permanent pointer so that I don’t have to trawl the web every time I want to find this information.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |