Skip to content
⌘ NSIS Forum Archive

Uninstaller components? (+ how to handle shared files?)

5 posts

Soundbytes#

Uninstaller components? (+ how to handle shared files?)

some more questions:
(1) Is there an example script available that illustrates how to set up the uninstaller components page complete with item desciptions?

(2) my components share some files.
How can I make sure that a shared file is only erased when all the components using it are deinstalled.

Thanks very much!
kichik#
  1. Not that I know of. But it should be pretty easy. Just append UN in the right place. The MUI readme should have the uninstaller option listed right next to the installer option.
  2. You can uninstall that shared component as a separate component that'd first check if all other components are removed.
Soundbytes#
Originally posted by kichik
  1. Not that I know of. (...)
I have figured it out now. An example script is attached to this posting.

Features:
  • the example works right out of the box. It creates a few text files to play around with.
  • the deinstaller can be used for a complete or partial deinstallation.
  • the deinstaller components page shows only sections that are present on the users system.
  • an alternative implementation is included that displays absent sections as read only and deselected.
  • a shared file section is included that will not be removed when a partial deinstallation is made
  • the deinstaller will not be deleted during a partial deinstallation. It can be used afterwards to remove the remaining stuff.
Any comments, ideas for improvement, appraisals are welcome.

Andreas
Soundbytes#
Oops, here is the script