Archive: how to uninstall some of components


how to uninstall some of components
Hello,

I am a new, and I try to figure out how to uninstall some of components.
I found some examples, in which checkbox is used to select components you wish to install. Is there any way with checkbox to select components for uninstall.

Thanks


I think that you need something like SectionGetFlags.


I am not sure how to (or if you can) make optional uninstaller sections like you are referring to. But you can always try making a yes no message box and calling a function or macro to remove or leave components. I think it would be something like:

MessageBox MB_YESNO "Remove x?" IDYES xyes IDNO xno

xyes:
Call RemoveX
Goto no

xno:
;done with x, move on to ask about y

Probably not the best way to do things but it should work.


Allowing selection of components to uninstall is identical to allowing selection of components to install. Simply create multiple uninstaller sections and show the components page. Uninstaller sections are prefixed with "un."


kichik,

Thanks for your instruction. It's really helpful.
I did create multiple sections for uninstall before with un., but forget to add UnistPage components.
Now it works.

Snoop62