NSIS - 如何分隔部分?
NSIS - How to separate Sections?
我想将安装程序要提取的文件和卸载程序要删除的文件的部分分开,并且两个部分具有相同的部分名称。
代码:
#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
图片:
来自文档:
Uninstaller section names are prefixed with 'un.'
Section "Demo"
SectionEnd
Section "un.Demo"
SectionEnd
我想将安装程序要提取的文件和卸载程序要删除的文件的部分分开,并且两个部分具有相同的部分名称。
代码:
#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
图片:
来自文档:
Uninstaller section names are prefixed with 'un.'
Section "Demo"
SectionEnd
Section "un.Demo"
SectionEnd