Old 7th May 2006, 21:50   #1
Maxim30
Member
 
Maxim30's Avatar
 
Join Date: Sep 2005
Location: Martinsicuro -Teramo- Italy
Posts: 76
Question 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.

Massimo
Maxim30 is offline   Reply With Quote
Old 8th May 2006, 07:37   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump