From 8409538a2ea8fbc026b15f71ca615f9a516eb594 Mon Sep 17 00:00:00 2001 From: Fabian Seitz Date: Tue, 22 Oct 2024 11:21:49 +0200 Subject: [PATCH] Improve path building for $WAUModsLocation --- Sources/Winget-AutoUpdate/Winget-Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Winget-AutoUpdate/Winget-Install.ps1 b/Sources/Winget-AutoUpdate/Winget-Install.ps1 index b9def8d..f8418a0 100644 --- a/Sources/Winget-AutoUpdate/Winget-Install.ps1 +++ b/Sources/Winget-AutoUpdate/Winget-Install.ps1 @@ -312,7 +312,7 @@ $Script:IsElevated = $CurrentPrincipal.IsInRole([Security.Principal.WindowsBuilt #Get WAU Installed location $WAURegKey = "HKLM:\SOFTWARE\Romanitho\Winget-AutoUpdate\" $Script:WAUInstallLocation = Get-ItemProperty $WAURegKey -ErrorAction SilentlyContinue | Select-Object -ExpandProperty InstallLocation -$Script:WAUModsLocation = $WAUInstallLocation + "mods" +$Script:WAUModsLocation = Join-Path -Path $WAUInstallLocation -ChildPath "mods" #LogPath initialization if (!($LogPath)) {