Files

20 lines
836 B
PowerShell
Raw Permalink Normal View History

2023-01-13 08:34:55 -05:00
2023-10-13 10:55:09 -04:00
# This is the URL for retreving the latest version of the specified installer
# Trying to query this URL directly no longer works now that CloudFlare is blocking script access
# It does, however, work in the browser to retrieve the direct download link
# https://www.sketchup.com/sketchup/2023/SketchUpPro-exe
2022-09-21 20:30:40 -04:00
2023-10-13 10:55:09 -04:00
# Define URL for downloading the installer
$URL = 'https://download.sketchup.com/SketchUpStudio-2023-1-340-117.exe'
2023-10-13 10:55:09 -04:00
# TODO: Uninstall all versions of SketchUp
2023-10-19 11:37:59 -04:00
#'SketchUp 2019', 'SketchUp 2020', 'SketchUp 2021', 'SketchUp 2022', 'SketchUp 2023', 'SketchUp Viewer' | Uninstall-MSI
2020-10-22 14:01:35 -04:00
2023-10-13 10:55:09 -04:00
# Set the local file name to download to
$FILE = '{0}{1}' -f (Get-TempPath),(Split-Path $URL -Leaf)
# Download installer
$FILE = Download-File -URL $URL -File $FILE
# Install package
Install-Program -Path $FILE -Arguments "/silent" -Delete