Hello Scott,
In order to achieve what you want, please follow these steps:
Let's consider our property is named
MY_PROP
1. open your Advanced Installer's MSM project
2. go to
"Module Details" page and copy the
"Module GUID". In my case, the module GUID is:
Code: Select all
FFA5E2FB_23E1_4824_A672_BB60D048DA0F
3. now please go to
"Custom Actions" page and condition your custom action using the name of the property and the merge module's guid, e.g.:
Code: Select all
MY_PROP.FFA5E2FB_23E1_4824_A672_BB60D048DA0F = "1"
- MergeModCA.png (105.55KiB)Viewed 19798 times
4. now please open your main project
5. go to
"Custom Actions" page and create a
"Set Property" custom action, as it follows:
- MainProjCA.png (109.53KiB)Viewed 19798 times
Now, you can launch your MSI file as it follows:
- CMDLaunch.png (26.96KiB)Viewed 19798 times
In the first run, the custom action should be executed, while in the second run, the custom action should not be executed.
Additionally, please find attached a .ZIP archive containing the two .AIP files (for the MSM and the main project).
Hope this helps.
Best regards,
Catalin