Uninstall Page -How to have components selected by default
I have couple of sections that show up in the Components page that i want to be selected by default to make it the default uninstallation process. If the user wants to keep a certain folder he will uncheck the box and that folder will not get deleted during the uninstallation process.
Similar to SectionIn and SectionIn ro etc is there similar ones for uninstall process.
Uninstall Page -How to have components selected by default
5 posts
Did you try putting SectionIn in the uninstall section? Does it work?
If you are talking about remembering the sections that where installed, and uninstalling those sections, that requires more work.
If you are talking about remembering the sections that where installed, and uninstalling those sections, that requires more work.
SectionIn doesnt seem to work , if i put the "ro" , its setting the uneditable mode but not checking it by default.
I dont want the sections to be remembered during uninstall.
Summarizing again.
In the Uninstall -Component Page - I would like the components to be selected by default so that the default behavior is to uninstall the entire software, but if they want to retain certain pieces they will have to uncheck those boxes.
What i am trying to do is the give the user the option to "not uninstall" the license folder and uninstall the rest of the software. The default behavior will have both components selected for uninstall and if the user decides to "uncheck" the license folder, i will not uninstall that folder.
Hope this clarification helps.
I dont want the sections to be remembered during uninstall.
Summarizing again.
In the Uninstall -Component Page - I would like the components to be selected by default so that the default behavior is to uninstall the entire software, but if they want to retain certain pieces they will have to uncheck those boxes.
What i am trying to do is the give the user the option to "not uninstall" the license folder and uninstall the rest of the software. The default behavior will have both components selected for uninstall and if the user decides to "uncheck" the license folder, i will not uninstall that folder.
Hope this clarification helps.
What you are asking for is the default behavior:
InstallDir "$Temp\TestInst"
Page Directory
Page Instfiles
UninstPage Components
UninstPage Instfiles
Section
SetOutPath $InstDir
WriteUninstaller "$InstDir\Uninst.exe"
SectionEnd
Section "un.Everything else"
Delete "$InstDir\MyApp.exe"
Delete "$InstDir\Uninst.exe"
RMDir $InstDir
SectionEnd
Section "un.License"
Delete "$InstDir\License.txt"
RMDir $InstDir
SectionEnd
Thanks ...it triggered a bulb for me.
I was resetting the checkboxes with a macro for selection. When i did it barebones with what you suggested above. It worked perfectly.
I was resetting the checkboxes with a macro for selection. When i did it barebones with what you suggested above. It worked perfectly.