mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 09:31:15 +10:00
Stop using temp varible (#4645)
* Update Invoke-WPFOOSU.ps1 * Update Invoke-WPFPanelAutologin.ps1
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user