Summary
Merge Module projects support the ability to add custom actions into the merge module.Synopsis
Merge Module projects support the ability to add custom actions into the merge module. With InstallShield 12 adding support for InstallScript custom actions as well, all major custom action types are now supported within Merge Module projects. This article explains step-by-step how to add such a custom action.Discussion
To add a custom action to a Merge Module project, two major tasks are necessary: Creating the custom action, and inserting the custom action into the sequence. Follow the steps below to accomplish these main tasks:
- Select the Custom Actions view within the Merge Module project.
- Right-click on the top of the Custom Actions tree in the center panel, and choose Custom Action Wizard...
- Follow the prompts in the Wizard to create your desired custom action*.
- Select the Direct Editor view within the InstallShield IDE.
- Review the Custom Action table, and note the name of your custom action in the Action column. It should now have a GUID appended to it (example: MyCustomAction.D941D8C1_325E_4006_9527_945EDA97F5B1).
- Select the ModuleInstallExecuteSequence table.
- Create a new row in this table. In the Action column, enter the name of your custom action with the GUID appended as listed in Step 2 above.
- In the BaseAction column, enter the standard action or custom action you'd like your new custom action to launch after.
- In the After column, enter a value of "1" to notify the installer to run your new custom action after the action listed in the BaseAction column. A value of "0" can also be entered if you wish to launch it before the action specified.
- In the Condition column, enter a condition of your choice or leave null for it to run every time.
- The action you entered in the BaseAction column (Step 5 above) must also have it's own row in this table. If it does not have a corresponding row, then one must be created*.
*Note: When creating a corresponding row for the action entered in the BaseAction column, if the value specified in the BaseAction column is a standard action, the sequence number can be found by opening a Basic MSI project and looking in the Sequences view. In the example below, CostFinalize has a sequence number of "1000", so this value is entered into the table as specified.
| Action | Sequence | BaseAction | After | Condition |
| MyCustomAction.D941D8C1_325E_4006_9527_945EDA97F5B1 | CostFinalize | 1 | Not Installed | |
| CostFinalize | 1000 |
Additional Information
This information can also be found in the following Microsoft MSDN articles:
Related Articles
Sequence A Custom Action In A Merge Module 7Number of Views How to schedule merge module custom actions 3Number of Views Add a Custom Merge Module to an InstallShield Project 15Number of Views Consuming a Merge Module Containing a .NET Installer Class 3Number of Views Uninstall a Merge Module 3Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago