PDA

View Full Version : Uninstall installed sections


andy11252
7th September 2006, 10:14
I am using InstType in my installer to allow for Full, Client or Server installations.

InstType Full
InstType Client
InstType Server

Section "Common"
SectionIn 1 2 3
Section End

Section "Menus"
SectionIn 1 2
SectionEnd

Section "Data"
SectionIn 1 3
SectionEnd

Is there a simple way of running uninstall sections only for the corresponding installed sections. E.g. if it was a client installation on want to run uninstall sections corresponding to the Common and Menus section.

Thanks in advance

kichik
8th September 2006, 16:04
You'd have to write down a list of the installed sections somewhere. For example, you could add a registry entry at the end of every section. The uninstaller sections will then read and delete those values and only uninstall what they need to uninstall if those values where there.