Hi,
Even though I have this execution condition for my custom action in uninstall, the uninstall custom action is being executed.
I'm not sure why you are encountering this behavior. Can you please send us the two AIPs (the old version and the new version) to
support at advancedinstaller dot com so we can investigate them?
Where should I include my custom action ?
I'm not sure I understand this question. Note that the target and upgraded images of a patch are very similar to the packages used by the automated upgrade feature. The only differences are:
- for a patch the target and upgraded packages use the same Product Code
- the target and upgraded packages must meet the
patch rules
Should I create a new project and add the custom action in that new project and also include the MSP file ?
Please note that a MSP file (a patch) can be applied directly to an installed target package. Basically, in order to create a patch you can follow these steps (explained in the
patch tutorial):
- you do a back-up of the AIP of the first installation
- you open the AIP of the first installation in Advanced Installer
- in the "Product Details" page you increase the version (in the "Product Version" field)
- after you select another page you are prompted about changing the Product Code
- in this dialog you select "No" because the target and upgraded packages must have the same product code
- you update the package (add/remove/modify files, registry keys, custom actions etc.)
- you save and build the project (the target and upgraded packages must have the same name, for example: "test.msi")
- in Advanced Installer you create a Patch project
- you set the target (old MSI) and the upgraded (updated MSI) packages (you can use the wizard or you can set them in the "Images" page)
- you build the project
After installing the target image (the original package), you can run the patch (MSP file) to update it to the upgraded image (the upgraded package). Note that any custom action in the upgraded image which has the condition
PATCH will run when the patch is applied.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging