immes
Posts: 5
Joined: Fri Dec 02, 2005 12:27 pm

Custom Actions for each feature in the uninstall phase

Hi all,


first I want to thank the advancedInstaller Team for their great product. I evaluated many concurent product, but none was on the one hand so intuitive to use and on the other sufficient complex. (Worst of all was Installshield...)

Now my question:

I organized my Installation into 3 Features (3 different Programs) which you can choose to install (Full Install / User Defined ...)

These Programs add Keys to the Registry.
I wrote a small app for each of the 3 programms which deletes the Regestry entry for the specific program.

How do I have to design the Custom Actions for the Uninstall Phase, that the appropriate Regestrydelete app for each feature is startet.
(If the user uninstalls only one Feature I only want to delete the registry settings for this one)


Best Regards


immes
immes
Posts: 5
Joined: Fri Dec 02, 2005 12:27 pm

Hi all,


Very easy solution: There is a preset under Custom Actions where I can test which Feature is being uninstalled......my fault


Best Regards


immes
Mihai
Posts: 38
Joined: Wed Mar 23, 2005 12:19 pm

Hi,

There are 2 ways to determine what features are uninstalled:
- the REMOVE property contains a list of features to be uninstalled or the value "ALL" which means that all the features will be uninstalled. The list contains the identifier of the features NOT their title.
- an action will be performed for every feature to modify it's state.

1) You can use a custom action to parse the REMOVE property and detect which features will be uninstalled. I do not recommend this method because the parsing algorithm must be implemented in your custom action.

2) You can use different custom actions for each feature and use some simple conditions based on the action perform on the feature.

The [...] button from the "Execution Condition" displays the "Edit Condition" dialog where you will find the "Predefined Conditions" list.
You must Insert the condition that test if a feature is being uninstalled and you will be prompted to select the feature that you want to test against.
Repeat that procedure for all custom actions.
Mihai Udrea
Advenced Installer Team
immes
Posts: 5
Joined: Fri Dec 02, 2005 12:27 pm

He,


thank you for the answer. I managed it the second way...



Best regards


immes

Return to “Common Problems”