NSIS 脚本 - Uninstall.exe 文件单独没有被删除
NSIS script - Uninstall.exe file alone not getting deleted
我正在使用以下语句从安装目录中删除文件和子目录。
RMDir /r "$INSTDIR\*.*"
RMDir "$INSTDIR"
卸载时,不会从安装目录中单独删除 uninstall.exe 文件。
请让我知道您对此的建议。
你试过/REBOOTOK
标志了吗?
请注意来自 scripting reference 的警告:
Warning: using RMDir /r $INSTDIR in the uninstaller is not safe.
Though it is unlikely, the user might select to install to the Program
Files folder and so this command will wipe out the entire Program
Files folder, including other programs that has nothing to do with the
uninstaller. The user can also put other files but the program's files
and would expect them to get deleted with the program. Solutions are
available for easily uninstalling only files which were installed by
the installer.
我正在使用以下语句从安装目录中删除文件和子目录。
RMDir /r "$INSTDIR\*.*"
RMDir "$INSTDIR"
卸载时,不会从安装目录中单独删除 uninstall.exe 文件。
请让我知道您对此的建议。
你试过
/REBOOTOK
标志了吗?请注意来自 scripting reference 的警告:
Warning: using RMDir /r $INSTDIR in the uninstaller is not safe. Though it is unlikely, the user might select to install to the Program Files folder and so this command will wipe out the entire Program Files folder, including other programs that has nothing to do with the uninstaller. The user can also put other files but the program's files and would expect them to get deleted with the program. Solutions are available for easily uninstalling only files which were installed by the installer.