diff --git a/scripts/Windows/Software/osu!lazer/Manage.ps1 b/scripts/Windows/Software/osu!lazer/Manage.ps1 index 9d0fd7c8..e4bd68dd 100644 --- a/scripts/Windows/Software/osu!lazer/Manage.ps1 +++ b/scripts/Windows/Software/osu!lazer/Manage.ps1 @@ -21,7 +21,7 @@ $null = New-Module { $tempDir = $context.GetTempDirectory(); Push-Location $tempDir; Invoke-WebRequest "https://github.com/ppy/osu/releases/latest/download/install.exe" -OutFile $installerName; - $process = Start-Process -FilePath $installerName; + Start-Process -FilePath $installerName; while (-not (Get-Process -ErrorAction "SilentlyContinue" $processName)) { Start-Sleep 1; @@ -29,7 +29,6 @@ $null = New-Module { Start-Sleep 10; Get-Process $processName | Stop-Process -Force; - Wait-Process $process; Remove-Item "~\Desktop\*osu*"; Pop-Location;