From fcac28c69f52047a0e80f5a974656f028ef15b2b Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sat, 17 Apr 2021 17:45:28 +0200 Subject: [PATCH] Improve the windows uninstall script a little --- setup/uninstall_windows.bat | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/setup/uninstall_windows.bat b/setup/uninstall_windows.bat index a02f96d7..cc3a4d85 100644 --- a/setup/uninstall_windows.bat +++ b/setup/uninstall_windows.bat @@ -19,12 +19,22 @@ if exist setup.py ( ) echo. +echo Ready to remove the novelWriter icons, registry keys, and package dependencies. +set /P c=Are you sure you want to continue [y/n]? +if /I "%c%" EQU "y" goto doUninst +goto afterUninst + +:doUninst + :: Remove the desktop and start menu icons python setup.py win-uninstall :: Remove the PyQt5, lxml and pyenchant dependencies -pip uninstall -r requirements.txt +pip uninstall --yes -r requirements.txt +:afterUninst + +echo. pause goto:eof