new script

This commit is contained in:
2021-06-17 13:00:39 -04:00
parent 49e41e25f1
commit eee15843fb
2 changed files with 17 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
## Specify the URL to download the app from
$URL = 'https://specsintact.ksc.nasa.gov/Software/downloads/SpecsIntact.msi'
## Download the installer
$INSTALLER = Download-File -URL $URL
## Install the app
LogMsg "Installing latest version of SpecsIntact from ""${INSTALLER}"""
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart" -Wait }
Catch { LogErr $_.Exception.Message }
## Delete the installer
LogMsg "Deleting downloaded installer from ""${INSTALLER}"""
Try { Remove-Item -Path $INSTALLER -Force -ErrorAction SilentlyContinue }
Catch { LogErr $_.Exception.Message }
+2
View File
@@ -0,0 +1,2 @@
. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1')))
Run-Script -LivePSScript Install-SpecsIntact