support for selecting section in a script.
has anyone thought about this or looked into haveing the ability to Select/Deselect Sections in the Script. for situaltions like when your app has been previously installed and you check to see which was selected on prior install and then have them selected when the Component page appears. i will give an example to hopefully make things clearer in what i mean. I am creating an installer that installs a bunch of different video/audio codecs and directshow filters. So there is alot of selections and for the uninstall i write which section is installed into the registry so when i go to uninstall it will only uninstall those that the installer itself installed. But if a user downloads an updated installer with newer codecs and directshow filters i would like to make some method that i can check the registry to see which was install and then have those components as the ones selected when the page comes up.. kinda like
Function .onInit
ReadRegDWORD $0 HKLM "Software\MyApp" "somesection"
StrCmp $0 1 "" NotInstalled
SetSection on section#
Goto done
NotInstalled:
SetSection off section#
done:
FunctionEnd
where SetSection [on|off] [section #] depending if you wanted it selected or not and then the section number.
would this be very hard to implement? it could be done before the component page is selected or if possible when ppl click on sections this could be used to select/deselect other sections that depend on it.