diff --git a/Install-SketchUp.ps1 b/Install-SketchUp.ps1 index d1569bc..bbdc7a9 100644 --- a/Install-SketchUp.ps1 +++ b/Install-SketchUp.ps1 @@ -50,8 +50,11 @@ If ( IsAdmin ) Catch { LogErr $_.Exception.Message } } + ## Set the local file name to download to + $FILE = '{0}{1}.exe' -f (GetTempPath),(Split-Path $URL -Leaf) + ## Download installer - $FILE = Download-File -URL $URL + $FILE = Download-File -URL $URL -File $FILE ## Install package Install-Program -Path $FILE -Arguments "/silent" -Delete