From 4d7d3dbf6add8f804ebb95905a845008ecbef541 Mon Sep 17 00:00:00 2001
From: Romain <96626929+Romanitho@users.noreply.github.com>
Date: Sun, 21 Jul 2024 00:17:51 +0200
Subject: [PATCH] test
---
Sources/WAU/Winget-AutoUpdate/WAU-MSI_Actions.ps1 | 2 +-
Sources/WAU/Winget-AutoUpdate/functions/Get-WAUConfig.ps1 | 2 +-
Sources/WAU/Winget-AutoUpdate/functions/Update-WAU.ps1 | 2 +-
Sources/Wix/Make_MSI.ps1 | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Sources/WAU/Winget-AutoUpdate/WAU-MSI_Actions.ps1 b/Sources/WAU/Winget-AutoUpdate/WAU-MSI_Actions.ps1
index 75ec54d..94b71d7 100644
--- a/Sources/WAU/Winget-AutoUpdate/WAU-MSI_Actions.ps1
+++ b/Sources/WAU/Winget-AutoUpdate/WAU-MSI_Actions.ps1
@@ -139,7 +139,7 @@ function Uninstall-WingetAutoUpdate {
$ConfFolder = Get-Item (Join-Path "$InstallPath" "config")
if ($AppLists) {
Write-Output "Remove item: $ConfFolder"
- Remove-Item $ConfFolder -Force
+ Remove-Item $ConfFolder -Force -Recurse
}
Write-Host "Uninstallation done!`n"
diff --git a/Sources/WAU/Winget-AutoUpdate/functions/Get-WAUConfig.ps1 b/Sources/WAU/Winget-AutoUpdate/functions/Get-WAUConfig.ps1
index b9df6ac..8da2653 100644
--- a/Sources/WAU/Winget-AutoUpdate/functions/Get-WAUConfig.ps1
+++ b/Sources/WAU/Winget-AutoUpdate/functions/Get-WAUConfig.ps1
@@ -3,7 +3,7 @@
Function Get-WAUConfig {
#Get WAU Configurations from install config
- $WAUConfig_64_86 = Get-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Romanitho\Winget-AutoUpdate*", "HKLM:\SOFTWARE\Romanitho\Winget-AutoUpdate*" | Sort-Object { $_.ProductVersion } -Descending
+ $WAUConfig_64_86 = Get-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Romanitho\Winget-AutoUpdate*", "HKLM:\SOFTWARE\Romanitho\Winget-AutoUpdate*" -ErrorAction SilentlyContinue | Sort-Object { $_.ProductVersion } -Descending
$WAUConfig = $WAUConfig_64_86[0]
#Check if GPO Management is enabled
diff --git a/Sources/WAU/Winget-AutoUpdate/functions/Update-WAU.ps1 b/Sources/WAU/Winget-AutoUpdate/functions/Update-WAU.ps1
index 5d98a63..f974d2b 100644
--- a/Sources/WAU/Winget-AutoUpdate/functions/Update-WAU.ps1
+++ b/Sources/WAU/Winget-AutoUpdate/functions/Update-WAU.ps1
@@ -20,7 +20,7 @@ function Update-WAU {
#Update WAU
Write-ToLog "Updating WAU..." "Yellow"
- Start-Process msiexec.exe -ArgumentList "/i $MsiFile /passive /l ""$WorkingDir\logs\WAU-Installer.log"" $Work WIXUI_EXITDIALOGOPTIONALCHECKBOX=1"
+ Start-Process msiexec.exe -ArgumentList "/i $MsiFile /passive /l ""$WorkingDir\logs\WAU-Installer.log"" WIXUI_EXITDIALOGOPTIONALCHECKBOX=1"
exit
diff --git a/Sources/Wix/Make_MSI.ps1 b/Sources/Wix/Make_MSI.ps1
index a0b8835..4589980 100644
--- a/Sources/Wix/Make_MSI.ps1
+++ b/Sources/Wix/Make_MSI.ps1
@@ -281,7 +281,7 @@ foreach ($platform in $platforms) {
1
"1"]]>
- WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed
+ WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1
1
1
1