diff --git a/src/playbook/Executables/LIBREWOLF.ps1 b/src/playbook/Executables/LIBREWOLF.ps1 index 7348773001..6a0722d6c3 100644 --- a/src/playbook/Executables/LIBREWOLF.ps1 +++ b/src/playbook/Executables/LIBREWOLF.ps1 @@ -25,8 +25,8 @@ $librewolfUpdaterDownload = (Invoke-RestMethod -Uri "$librewolfUpdaterURI" -Head Select-Object -ExpandProperty browser_download_url # output paths -$outputLibrewolf = "C:\$librewolfFileName" -$outputLibrewolfUpdater = "C:\librewolf-winupdater.zip" +$outputLibrewolf = "$env:SystemDrive\$librewolfFileName" +$outputLibrewolfUpdater = "$env:SystemDrive\librewolf-winupdater.zip" Write-Warning "Downloading the latest LibreWolf setup" Invoke-WebRequest -Uri $librewolfDownload -OutFile $outputLibrewolf diff --git a/src/playbook/Executables/THEME.cmd b/src/playbook/Executables/THEME.cmd index 23a4f63323..71dd9baaec 100644 --- a/src/playbook/Executables/THEME.cmd +++ b/src/playbook/Executables/THEME.cmd @@ -4,7 +4,7 @@ for /f "tokens=6 delims=[.] " %%a in ('ver') do (if %%a GEQ 22000 set win11=true for /f "usebackq tokens=2 delims=\" %%a in (`reg query "HKEY_USERS" ^| findstr /r /x /c:"HKEY_USERS\\S-.*" /c:"HKEY_USERS\\AME_UserHive_[^_]*"`) do ( reg query "HKEY_USERS\%%a" | findstr /c:"Volatile Environment" /c:"AME_UserHive_" > nul && ( if "%%a" == "AME_UserHive_Default" ( - call :ALLUSERS "%%a" "C:\Users\Default\AppData\Roaming" + call :ALLUSERS "%%a" "%SystemRoot%\Users\Default\AppData\Roaming" ) else ( for /f "usebackq tokens=2* delims= " %%b in (`reg query "HKU\%%a\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "AppData" ^| findstr /r /x /c:".*AppData[ ]*REG_SZ[ ].*"`) do ( call :ALLUSERS "%%a" "%%c"