Created
December 6, 2023 00:56
-
-
Save mrtrkmn/0dbebaa3ce60e244dfe74e94b08a3253 to your computer and use it in GitHub Desktop.
testing out some stuff
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
# 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