From f32a54afff6f28145e5af1ae1574b47256133e0d Mon Sep 17 00:00:00 2001 From: Brian Dukes Date: Thu, 24 Oct 2024 08:00:52 -0500 Subject: [PATCH] Add uninstall script for rustdesk.install Fixes #60 --- automatic/rustdesk.install/tools/chocolateyUninstall.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 automatic/rustdesk.install/tools/chocolateyUninstall.ps1 diff --git a/automatic/rustdesk.install/tools/chocolateyUninstall.ps1 b/automatic/rustdesk.install/tools/chocolateyUninstall.ps1 new file mode 100644 index 00000000..78281a78 --- /dev/null +++ b/automatic/rustdesk.install/tools/chocolateyUninstall.ps1 @@ -0,0 +1,6 @@ +$ErrorActionPreference = 'Stop'; + +$installedPath = 'C:\Program Files\RustDesk\RustDesk.exe'; +if (Test-Path $installedPath) { + & $installedPath --uninstall; +}