Archive: *Help* Uninstalling Sections Groups


*Help* Uninstalling Sections Groups
Hi

I have this problem now for 2 weeks that i can`t figure it out :igor: (yes, i searched the forum and read the readme files),if somebody can help me with this please!.

My problem is that i gat 2 "Sections Groups" and i don`t know how will the uninstalling part of the script will look like :( (you see was using "Venis IX" to build my script files up 'til now),so can you guys help me with it please!.

I want the user to be able to uninstall all of the stuff he chosen to install from the section/components !


Here is the script.


## Sections Group 1
SectionGroup "Cool stuff part 1" Section1

Section "SD1" SEC1
SetOutPath "$INSTDIR\"
File "Work files\Sd1.wav"

messagebox mb_ok sec1

SectionEnd

Section "SD2" SEC2
SetOutPath "$INSTDIR\"
File "Work files\Sd2.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD3" SEC3
SetOutPath "$INSTDIR\"
File "Work files\Sd3.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD4" SEC4
SetOutPath "$INSTDIR\"
File "Work files\Sd4.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD5" SEC5
SetOutPath "$INSTDIR\"
File "Work files\Sd5.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD6" SEC6
SetOutPath "$INSTDIR\"
File "Work files\Sd6.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD7" SEC7
SetOutPath "$INSTDIR\"
File "Work files\Sd7.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD8" SEC8
SetOutPath "$INSTDIR\"
File "Work files\Sd8.wav"

messagebox mb_ok sec2

SectionEnd

Section "Sd9" SEC9
SetOutPath "$INSTDIR\"
File "Work files\Sd9.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD10" SEC10
SetOutPath "$INSTDIR\"
File "Work files\Sd10.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD11" SEC11
SetOutPath "$INSTDIR\"
File "Work files\Sd11.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD12" SEC12
SetOutPath "$INSTDIR\"
File "Work files\Sd12.wav"

messagebox mb_ok sec2

SectionEnd

Section "Sd13" SEC13
SetOutPath "$INSTDIR\"
File "Work files\Sd13.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD14" SEC14
SetOutPath "$INSTDIR\"
File "Work files\Sd14.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD15" SEC15
SetOutPath "$INSTDIR\"
File "Work files\Sd15.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD16" SEC16
SetOutPath "$INSTDIR\"
File "Work files\Sd16.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD17" SEC17
SetOutPath "$INSTDIR\"
File "Work files\Sd17.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD18" SEC18
SetOutPath "$INSTDIR\"
File "Work files\Sd18.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD19" SEC19
SetOutPath "$INSTDIR\"
File "Work files\Sd19.wav"

messagebox mb_ok sec2

SectionEnd

Section "SD20" SEC20
SetOutPath "$INSTDIR\"
File "Work files\Sd20.wav"

messagebox mb_ok sec2

SectionEnd

SectionGroupEnd


## Sections Group 2
SectionGroup Cool stuff part 2" Section2

Section "SD21" SEC21
SetOutPath "$INSTDIR\"
File "Work files\Sd21.wav"

; Set Section properties
SectionIn RO
SetOverwrite on

messagebox mb_ok sec2

SectionEnd

Section "SD22" SEC22
SetOutPath "$INSTDIR\"
File "Work files\Sd22.wav"

; Set Section properties
SectionIn RO
SetOverwrite on

messagebox mb_ok sec2

SectionEnd

Section "SD23" SEC23
SetOutPath "$INSTDIR\"
File "Work files\Sd23.wav"

; Set Section properties
SectionIn RO
SetOverwrite on

messagebox mb_ok sec2

SectionEnd


Section "SD24" SEC24
SetOutPath "$INSTDIR\"
File "Work files\Sd24.wav"

; Set Section properties
SectionIn RO
SetOverwrite on

messagebox mb_ok sec2

SectionEnd

Section "SD25" SEC25
SetOutPath "$INSTDIR\"
File "Work files\Sd25.wav"

; Set Section properties
SectionIn RO
SetOverwrite on

messagebox mb_ok sec2

SectionEnd

Section "SD26" SEC26
SetOutPath "$INSTDIR\"
File "Work files\Sd26.wav"

; Set Section properties
SectionIn RO
SetOverwrite on

messagebox mb_ok sec2

SectionEnd

SectionGroupEnd


Can you show me an example of how it will look with the uninstall part of the script :confused:.

take a look at this page
http://nsis.sourceforge.net/SectionsFlags
i hope it might help you


Originally posted by NHOCSUNG
take a look at this page
http://nsis.sourceforge.net/SectionsFlags
i hope it might help you
Thanks,but :( all of it looks like rocket science to me :( :eek:

I have the same question
How to uninstall the section only selected.?
this link doesn"t work in the section "Section Uninstall"

how to do ?


If you want to give the user a selection in the uninstaller as well, create more uninstaller sections. An uninstaller section's name begins with "un.". For example:

Section "un.Something"
# uninstall something here
SectionEnd