Skip to content

Commit

Permalink
new scripts / ai some ai stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckyOnQuack-999 committed Nov 1, 2024
1 parent 66fc133 commit 6d7e99a
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Scripts/powershell-scripts/fetch_and_run_ooshutup10.ps1
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.
33 changes: 33 additions & 0 deletions fetch_and_run_ooshutup10.ps1
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")
}

0 comments on commit 6d7e99a

Please sign in to comment.