get rid of testing lines
This commit is contained in:
@@ -1,17 +1,11 @@
|
|||||||
. 'C:\Users\dyoder\Documents\Emberkom\Data\Projects\development\management-scripts\Tools.ps1'
|
# Define URL for downloading the installer
|
||||||
## Define URL for downloading the installer
|
|
||||||
$URL = Get-AbsoluteURI -URL 'https://www.autodesk.com/adsk-connect-64?'
|
$URL = Get-AbsoluteURI -URL 'https://www.autodesk.com/adsk-connect-64?'
|
||||||
|
|
||||||
## Make sure the URL is valid before we do anything
|
# Set the local file name to download to
|
||||||
If ( IsURLValid $URL )
|
$FILE = '{0}{1}' -f (GetTempPath),(Split-Path $URL -Leaf)
|
||||||
{
|
|
||||||
## Set the local file name to download to
|
|
||||||
$FILE = '{0}{1}' -f (GetTempPath),(Split-Path $URL -Leaf)
|
|
||||||
write-output $FILE
|
|
||||||
|
|
||||||
## Download installer
|
# Download installer
|
||||||
#Download-File -URL $URL -File $FILE
|
Download-File -URL $URL -File $FILE
|
||||||
|
|
||||||
## Install package
|
# Install package
|
||||||
#Start-Process $FILE
|
Start-Process $FILE
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user