From 86c1916989c99c17e4c2a7aa23cb63bf3640d7a1 Mon Sep 17 00:00:00 2001 From: Marcos Oviedo Date: Thu, 26 Jan 2023 15:14:31 -0300 Subject: [PATCH] Removing orbit files using MSI installer custom actions (#9362) Adding powershell custom action on WIX installer to remove Orbit folder during product uninstall --- .../bug-3563-uninstall-does-not-remove-files | 1 + orbit/pkg/packaging/windows_templates.go | 15 +++++---------- 2 files changed, 6 insertions(+), 10 deletions(-) create mode 100644 orbit/changes/bug-3563-uninstall-does-not-remove-files diff --git a/orbit/changes/bug-3563-uninstall-does-not-remove-files b/orbit/changes/bug-3563-uninstall-does-not-remove-files new file mode 100644 index 0000000000..e44a16f20e --- /dev/null +++ b/orbit/changes/bug-3563-uninstall-does-not-remove-files @@ -0,0 +1 @@ +* Windows MSI installer now uses custom actions to remove Orbit files diff --git a/orbit/pkg/packaging/windows_templates.go b/orbit/pkg/packaging/windows_templates.go index d8d65fe9fa..8c113bce16 100644 --- a/orbit/pkg/packaging/windows_templates.go +++ b/orbit/pkg/packaging/windows_templates.go @@ -53,10 +53,6 @@ var windowsWixTemplate = template.Must(template.New("").Option("missingkey=error - - - - @@ -115,12 +111,12 @@ var windowsWixTemplate = template.Must(template.New("").Option("missingkey=error Return="check" Impersonate="no" /> - + Value='"[POWERSHELLEXE]" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -File "[ORBITROOT]installer_utils.ps1" -uninstallOrbit' /> - - (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL") + (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL") NOT Installed AND NOT WIX_UPGRADE_DETECTED -