Nsis 卸载时并非所有内容都被删除
我制作了一个安装test.txt的简单安装程序,但存在以下几个问题:Nsis 卸载时并非所有内容都被删除,nsis,Nsis,我制作了一个安装test.txt的简单安装程序,但存在以下几个问题: “开始”菜单中创建的文件夹+链接未被删除 未删除卸载程序+文件夹 有人知道为什么吗 #defines outFile "Installer.exe" installDir $DESKTOP\test section setOutPath $INSTDIR writeUninstaller $INSTDIR\uninstaller.exe createShortCut "$SMPROGRAMS\T
- “开始”菜单中创建的文件夹+链接未被删除
- 未删除卸载程序+文件夹
#defines
outFile "Installer.exe"
installDir $DESKTOP\test
section
setOutPath $INSTDIR
writeUninstaller $INSTDIR\uninstaller.exe
createShortCut "$SMPROGRAMS\TestApplication\Uninstaller.lnk" "$INSTDIR\uninstaller.exe"
file test.txt
messageBox MB_OK "Hello World!"
sectionEnd
section "Uninstall"
delete $INSTDIR\uinstaller.exe
delete "$SMPROGRAMS\TestApplication\Uninstaller.lnk"
delete $INSTDIR\test.txt
sectionEnd
在删除命令后使用
RmDir“$INSTDIR”
删除安装文件夹除了回答指出您从未调用RmDir$INSTDIR之外,您还错误键入了卸载程序可执行文件名称:
delete $INSTDIR\uinstaller.exe
你错过了“n”。FWIW(我知道你不是母语人士),“不是”在专业圈子里很少合适,而在英语中,“I”一词总是大写。我不知道其余的,但你永远不会删除安装目录。