Skip to content

Instantly share code, notes, and snippets.

@wise-io
Last active March 3, 2022 17:23
Show Gist options
  • Save wise-io/f54fdca0558d77032ef95dcf29853cd9 to your computer and use it in GitHub Desktop.
Save wise-io/f54fdca0558d77032ef95dcf29853cd9 to your computer and use it in GitHub Desktop.
Silently Installs Google Earth Pro
# 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