Skip to content

Instantly share code, notes, and snippets.

@mrtrkmn
Created December 6, 2023 00:56
Show Gist options
  • Save mrtrkmn/0dbebaa3ce60e244dfe74e94b08a3253 to your computer and use it in GitHub Desktop.
Save mrtrkmn/0dbebaa3ce60e244dfe74e94b08a3253 to your computer and use it in GitHub Desktop.
testing out some stuff
# Specify the URL of the EXE file
$url = 'https://github.com/git-for-windows/git/releases/download/v2.43.0.windows.1/Git-2.43.0-64-bit.exe'
# Specify the local path where you want to save the downloaded file
$outputPath = 'C:\Temp\yourfile.exe'
# Download the file
Invoke-WebRequest -Uri $url -OutFile $outputPath
# Start the installation silently
Start-Process -FilePath $outputPath -ArgumentList '/S' -Wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment