Peter
Posts: 17
Joined: Thu Dec 10, 2015 11:52 am

Chained Package not uninstalled during Maintenance-Mode

Hello Forum,

I have various chained packages which the Setup installs based on conditions.
The conditions are controlled by checkboxes (they have the value "checked" (not default)

Install-Condition for chained package AAA is: ( CHK_AAA ) OR ( CHK_AAA = "checked" )
Uninstall-Condition for package AAA is: ( REMOVE="ALL" ) OR ( NOT CHK_AAA)
The same for the chained package BBB and CCC.

During first Install, everything works perfect, for example: the User select the Checkboxes to install chained package AAA and BBB
Now the User starts the Setup again (maintenace Mode) and select, that he no longer needs package BBB and deselect the Checkbox. So the property "CHK_BBB" will loose its value and is NIL (NOT CHK_BBB).

In the "VerifyReadyDlg" I can check if the uninstall-Condition is TRUE (and the Install-Condition is FALSE). But it doesn't uninstall the chained package.

I hope you will have an idea how I can uninstall a chained package during maintenance Mode.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Chained Package not uninstalled during Maintenance-Mode

Hello,

Please note this is the normal behavior of Advanced Installer. A chain package is uninstalled (if its uninstall condition is true) only during the main product removal. You cannot uninstall it during the main product maintenance mode (modify or remove).

If there is anything to assist you with just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Peter
Posts: 17
Joined: Thu Dec 10, 2015 11:52 am

Re: Chained Package not uninstalled during Maintenance-Mode

Thank you Daniel.

For other users I will tell my solution for this problem.
I've createt some custom action ("Add Predefined Custom Action" -> "Launch File or Open URL"). In the "Command Line" Box I've added "msiexec /x {Productcode/GUID} /passive".

If the User clicks in Maintenance Mode in the "VerifyReadyDlg" on the install-button, the Condition will be checked and if it's true, the Custom Action will start.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Chained Package not uninstalled during Maintenance-Mode

Thank you for your follow up Peter. For sure your solution could be useful for other users too in the future.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”