From 2dc40f6250d7f1c4cab91f3a4f20784b15f2d95d Mon Sep 17 00:00:00 2001 From: ScottMonolith Date: Wed, 3 Jan 2024 13:13:27 -0700 Subject: [PATCH] Fix Uninstall The Uninstall would throw an error using the MSI method, changing to EXE and updating the silentArgs to VERYSILENT fixes the issue from what I can see. --- .../tools/chocolateyuninstall.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lenovo-thinkvantage-system-update/tools/chocolateyuninstall.ps1 b/lenovo-thinkvantage-system-update/tools/chocolateyuninstall.ps1 index 520ae7e8..9c3344b0 100644 --- a/lenovo-thinkvantage-system-update/tools/chocolateyuninstall.ps1 +++ b/lenovo-thinkvantage-system-update/tools/chocolateyuninstall.ps1 @@ -2,9 +2,9 @@ $packageName = 'lenovo-thinkvantage-system-update' $softwareName = 'Lenovo System Update' -$installerType = 'MSI' # Installed as .exe, but uninstall as .MSI! +$installerType = 'EXE' -$silentArgs = '/qn /norestart' +$silentArgs = '/VERYSILENT' $validExitCodes = @(0, 3010, 1605, 1614, 1641) if ($installerType -ne 'MSI') { }