mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 17:41:14 +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 {
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user