From 4ca356264ec90baabc4ac46ac4ce31ade3c19ddf Mon Sep 17 00:00:00 2001 From: David Yoder Date: Fri, 30 Sep 2022 11:48:18 -0400 Subject: [PATCH] initial commit --- Install-Enscape.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Install-Enscape.ps1 diff --git a/Install-Enscape.ps1 b/Install-Enscape.ps1 new file mode 100644 index 0000000..29820ff --- /dev/null +++ b/Install-Enscape.ps1 @@ -0,0 +1,15 @@ +## Path to the MSI installer +$MSIURL = 'https://enscape-installer.chaosgroup.com/installer.enscape.io/Enscape-3.4.1%2B87719.msi' + +## Run the installer +$INSTALLER = Download-File -URL $MSIURL +LogMsg "Installing Enscape from ""${INSTALLER}""" +Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart" -Wait -ErrorAction Stop } +Catch { LogErr $_.Exception.Message } + +## Delete installer +Try { + LogMsg "Deleting downloaded installation package" + Remove-Item $INSTALLER -Force -ErrorAction SilentlyContinue +} +Catch { LogErr $_.Exception.Message }