-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66fc133
commit 6d7e99a
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Define the URL for O&O ShutUp10 | ||
$url = "https://www.oo-software.com/en/download/current/ooshutup10" | ||
|
||
# Get the temporary folder path | ||
$tempFolder = [System.IO.Path]::GetTempPath() | ||
|
||
# Define the output file path | ||
$outputPath = Join-Path -Path $tempFolder -ChildPath "OOSU10.exe" | ||
|
||
# Download the file | ||
Write-Host "Downloading O&O ShutUp10..." | ||
Invoke-WebRequest -Uri $url -OutFile $outputPath | ||
|
||
# Check if the file was downloaded successfully | ||
if (Test-Path $outputPath) { | ||
Write-Host "Download completed successfully." | ||
|
||
# Launch the application | ||
Write-Host "Launching O&O ShutUp10..." | ||
Start-Process -FilePath $outputPath | ||
|
||
# Wait for a moment to ensure the process starts | ||
Start-Sleep -Seconds 2 | ||
|
||
# Close the PowerShell console | ||
Write-Host "Closing this window in 3 seconds..." | ||
Start-Sleep -Seconds 3 | ||
[System.Environment]::Exit(0) | ||
} else { | ||
Write-Host "Failed to download O&O ShutUp10. Please check your internet connection and try again." | ||
Write-Host "Press any key to exit..." | ||
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Define the URL for O&O ShutUp10 | ||
$url = "https://www.oo-software.com/en/download/current/ooshutup10" | ||
|
||
# Get the temporary folder path | ||
$tempFolder = [System.IO.Path]::GetTempPath() | ||
|
||
# Define the output file path | ||
$outputPath = Join-Path -Path $tempFolder -ChildPath "OOSU10.exe" | ||
|
||
# Download the file | ||
Write-Host "Downloading O&O ShutUp10..." | ||
Invoke-WebRequest -Uri $url -OutFile $outputPath | ||
|
||
# Check if the file was downloaded successfully | ||
if (Test-Path $outputPath) { | ||
Write-Host "Download completed successfully." | ||
|
||
# Launch the application | ||
Write-Host "Launching O&O ShutUp10..." | ||
Start-Process -FilePath $outputPath | ||
|
||
# Wait for a moment to ensure the process starts | ||
Start-Sleep -Seconds 2 | ||
|
||
# Close the PowerShell console | ||
Write-Host "Closing this window in 3 seconds..." | ||
Start-Sleep -Seconds 3 | ||
[System.Environment]::Exit(0) | ||
} else { | ||
Write-Host "Failed to download O&O ShutUp10. Please check your internet connection and try again." | ||
Write-Host "Press any key to exit..." | ||
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | ||
} |