[cpp-sp] 02/03: Policy for admin on uninstall
Codeberg
noreply at shibboleth.net
Mon Jun 15 17:43:20 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository cpp-sp.
View the commit online:
https://codeberg.org/Shibboleth/cpp-sp/commit/cd8447c53d9d2ac257aff739707eae7b2155ee6a
commit cd8447c53d9d2ac257aff739707eae7b2155ee6a
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Jun 15 18:43:02 2026 +0100
Policy for admin on uninstall
---
WindowsInstall/uninstall.bat | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/WindowsInstall/uninstall.bat b/WindowsInstall/uninstall.bat
index a187f3cc..1cb86bee 100644
--- a/WindowsInstall/uninstall.bat
+++ b/WindowsInstall/uninstall.bat
@@ -9,6 +9,14 @@ Rem (so it doesn't delete itself). It is really only expected to
Rem be run from the "uninstall" menu item of the apps and features
Rem but it is idempotent so can be run any time.
+
+Rem probe for admin
+net session 1> nul 2> nul
+if %errorlevel% NEQ 0 (
+ Echo Cannot Uninstall. This command needs to be run with administrative rights.
+ exit /b
+)
+
cd /d %~dp0
if exist %SYSTEMROOT%\System32\INETSRV\appcmd.exe (
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list