Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

哪个傻屌写的Uninstall脚本? #140

Closed
watertang opened this issue Apr 5, 2023 · 3 comments
Closed

哪个傻屌写的Uninstall脚本? #140

watertang opened this issue Apr 5, 2023 · 3 comments

Comments

@watertang
Copy link

你压缩不带路径我不能怪你,虽然一堆文件污染了我的下载目录,我逐个手动删除还是可以的。但我手贱按了Uninstall.bat,结果tmd我下载目录下的全部文件和目录都被你删得一干二净,还不带回收站的那种,我就想cao你全家知道吗?

@watertang
Copy link
Author

你自身带什么文件你就删什么文件,这个才叫Uninstall!!! rd /s /q %~dp0 叫做破坏!!!懂吗?!

@nICEnnnnnnnLee
Copy link
Owner

  • 在不知道压缩包具体内容的情况下,最稳健的策略是先查看其内容或者解压到压缩包同名文件夹。
    基于这一策略,顶层打包可以减少不必要的文件夹层数。

  • 除了配置的下载文件夹以及可能的快捷方式,理论上程序相关的文件均应在jar包/脚本所在目录下。
    正常情况下,程序应当被安置在独立的文件夹中运行,即目录不存在其它不相关的文件。
    此时,rd /s /q %~dp0,即清空脚本所在目录,可以恰当地卸载程序,与具体到个别文件删除效果等同,而不必花功夫管理文件列表,后续每次版本更新时都需要跟踪。
    为了防止误点击,在执行语句前需要输入y进行确认。

@github-actions
Copy link

github-actions bot commented May 9, 2023

由于长期没有状态更新,该问题自动关闭。如有需要可重新打开。

@github-actions github-actions bot closed this as completed May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants