diff --git a/functions/public/Invoke-WPFOOSU.ps1 b/functions/public/Invoke-WPFOOSU.ps1 index f81c9947..0b7e6f2c 100644 --- a/functions/public/Invoke-WPFOOSU.ps1 +++ b/functions/public/Invoke-WPFOOSU.ps1 @@ -2,8 +2,8 @@ function Invoke-WPFOOSU { try { $ProgressPreference = 'SilentlyContinue' - Invoke-WebRequest -Uri https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe -OutFile "$Env:Temp\ooshutup10.exe" - Start-Process -FilePath "$Env:Temp\ooshutup10.exe" + Invoke-WebRequest -Uri https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe -OutFile "$winutildir\ooshutup10.exe" + Start-Process -FilePath "$winutildir\ooshutup10.exe" $ProgressPreference = 'Continue' } catch { diff --git a/functions/public/Invoke-WPFPanelAutologin.ps1 b/functions/public/Invoke-WPFPanelAutologin.ps1 index 10d5e56f..53e00c39 100644 --- a/functions/public/Invoke-WPFPanelAutologin.ps1 +++ b/functions/public/Invoke-WPFPanelAutologin.ps1 @@ -1,4 +1,4 @@ function Invoke-WPFPanelAutologin { - Invoke-WebRequest -Uri https://live.sysinternals.com/Autologon.exe -OutFile "$Env:Temp\autologin.exe" - Start-Process -FilePath "$Env:Temp\autologin.exe" -ArgumentList /accepteula + Invoke-WebRequest -Uri https://live.sysinternals.com/Autologon.exe -OutFile "$winutildir\autologin.exe" + Start-Process -FilePath "$winutildir\autologin.exe" -ArgumentList /accepteula }