Stop using temp varible (#4645)

* Update Invoke-WPFOOSU.ps1

* Update Invoke-WPFPanelAutologin.ps1
This commit is contained in:
Gabi
2026-06-22 14:03:00 -05:00
committed by GitHub
parent 7745364e66
commit 8eadd527ad
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ function Invoke-WPFOOSU {
try { try {
$ProgressPreference = 'SilentlyContinue' $ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe -OutFile "$Env:Temp\ooshutup10.exe" Invoke-WebRequest -Uri https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe -OutFile "$winutildir\ooshutup10.exe"
Start-Process -FilePath "$Env:Temp\ooshutup10.exe" Start-Process -FilePath "$winutildir\ooshutup10.exe"
$ProgressPreference = 'Continue' $ProgressPreference = 'Continue'
} catch { } catch {
@@ -1,4 +1,4 @@
function Invoke-WPFPanelAutologin { function Invoke-WPFPanelAutologin {
Invoke-WebRequest -Uri https://live.sysinternals.com/Autologon.exe -OutFile "$Env:Temp\autologin.exe" Invoke-WebRequest -Uri https://live.sysinternals.com/Autologon.exe -OutFile "$winutildir\autologin.exe"
Start-Process -FilePath "$Env:Temp\autologin.exe" -ArgumentList /accepteula Start-Process -FilePath "$winutildir\autologin.exe" -ArgumentList /accepteula
} }