Reputation: 33
I want to separate the Section of the files to be extracted by the installer and the files to be deleted by the uninstaller while both Section has the same Section name.
CODE:
#Initialize variable
!define APPLICATION_NAME "Demo"
#Installer section
Section "${APPLICATION_NAME}"
SetOutPath "$INSTDIR"
WriteUninstaller "$INSTDIR\Uninstaller.exe"
SectionEnd
#Uninstaller section
Section "${APPLICATION_NAME}"
Delete "$INSTDIR\Uninstaller.exe"
RMDir "$INSTDIR"
SectionEnd
IMAGE:
Upvotes: 0
Views: 438
Reputation: 101666
From the documentation:
Uninstaller section names are prefixed with 'un.'
Section "Demo"
SectionEnd
Section "un.Demo"
SectionEnd
Upvotes: 0