Improve path building for $WAUModsLocation

pull/745/head
Fabian Seitz 2024-10-22 11:21:49 +02:00
parent 393aa7158f
commit 8409538a2e
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {