Page 1 of 1

Package creation, uninstallation

Published: March 1, 2018 - 1:39 PM
by olivetree
Hello.

Wapt server 1.3.13.0.
I've created maintenance scripts that I've packaged with an installer (inno setup). It's a bit like using an executable with 7-Zip, but a little more sophisticated.
I'm currently creating the Wapt package for deployment.
I'm stuck on the key for uninstallation. Should I use the registry ID? Or would it be better to create a separate executable for uninstallation and include it in the package?

Re: Package creation, uninstallation

Published: March 1, 2018 - 2:36 PM
by htouvet
Your InnoSetup should have an uninstallation key ending with "_is1") visible using

Code: Select all

wapt-get list-registry ...
With innosetup, the uninstallation key is defined in the .iss / [Setup] AppId + '_is1' file

See : https://www.wapt.fr/en/doc-1.5/Utilisat ... t-registry

If your innosetup is done correctly, uninstalling it should undo what it did during installation.

Otherwise, for intelligent maintenance scripts, the simplest way is still to write it directly in the install() and uninstall() functions of the Wapt package and not to do innosetup.

The development/testing/maintenance cycle is much faster.