This commit is contained in:
2020-07-28 12:15:02 -04:00
parent 3f8d7fc62c
commit c3daf96353
3 changed files with 24 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
## Define base URL for getting installers
$BaseURL = 'https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/resources'
## Build URL for Windows 10
If ( ([System.Environment]::OSVersion.Version).Major -ge 10 )
{
If ( Test-Path "${Env:ProgramFiles(x86)}" )
{ $URL = '{0}/{1}' -f $BaseURL, 'DisplayLink_Win10RS_x64.msi' }
Else { $URL = '{0}/{1}' -f $BaseURL, 'DisplayLink_Win10RS_x86.msi' }
}
## Build URL for Windows 7
ElseIf ( (([System.Environment]::OSVersion.Version).Major -ge 7) -and (([System.Environment]::OSVersion.Version).Major -lt 10) )
{
If ( Test-Path "${Env:ProgramFiles(x86)}" )
{ $URL = '{0}/{1}' -f $BaseURL, 'DisplayLink_Win7-8.1_x64.msi' }
Else { $URL = '{0}/{1}' -f $BaseURL, 'DisplayLink_Win7-8.1_x86.msi' }
}
## Install package
Write-Output "Installing: ${URL}"
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i ${URL} /qn /norestart" -Wait
@@ -1,6 +1,6 @@
@echo off
SET INSTALL_URL=https://emberkom.s3.amazonaws.com/management/installers/LiquidFiles_Admin_2.0.108.msi
SET INSTALL_URL=https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/resources/LiquidFiles_Admin_2.0.108.msi
IF NOT [%1] EQU [] SET REG_SETTINGS=%REG_SETTINGS%BaseUrl=%1;
Binary file not shown.