Last active
March 3, 2022 17:23
-
-
Save wise-io/f54fdca0558d77032ef95dcf29853cd9 to your computer and use it in GitHub Desktop.
Silently Installs Google Earth Pro
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
# Installs Google Earth Pro | |
$Installer = "$env:temp\GoogleEarthPro.exe" | |
$DownloadURL = 'https://dl.google.com/dl/earth/client/advanced/current/googleearthprowin.exe' | |
try { | |
# Download Google Earth Pro | |
Invoke-WebRequest -Uri $DownloadURL -OutFile $Installer | |
# Install Google Earth Pro | |
Start-Process -Wait -FilePath $Installer -ArgumentList 'OMAHA=1' | |
} | |
catch { throw } | |
finally { | |
# Remove Installer | |
Remove-Item $Installer -Force -ErrorAction Ignore | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment