Archive: Uninstaller sections


Uninstaller sections
Hello,
I have 3 items in the components page and for them 3 distinct sections. I would want to have their 3 corrispective uninstaller sections that only delete files installed in their respective installer sections if checked. Then how to write the code to have automatically an unistaller section that delete files only if its respective components page section has been checked ?
I have tried to use global variables with SectionGetFlags but this does not work giving always Section Selected flag causing the uninstaller sections to uninstall however.


Global variables are seperate in the installer and uninstaller. Their values are not transferred because they are seperate executables. You need to store the section states in the registry on installer, and read them with ReadRegStr on uninstall.

-Stu