我制作了一个简单的安装程序来安装test.txt,但是有几个问题:
有人知道为什么吗?
#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发布于 2011-02-14 21:01:13
http://nsis.sourceforge.net/Shortcuts_removal_fails_on_Windows_Vista
并在删除命令后使用RmDir "$INSTDIR"删除安装文件夹
发布于 2011-02-21 22:56:12
除了指出您从不调用RmDir $INSTDIR的答案之外,您还错误地键入了卸载程序可执行名称:
delete $INSTDIR\uinstaller.exe你错过了“n”。
https://stackoverflow.com/questions/4990650
复制相似问题