Uploading changes from CMSource
This commit is contained in:
@@ -122,6 +122,18 @@ function Install-ADTDeployment
|
||||
##================================================
|
||||
$adtSession.InstallPhase = "Pre-$($adtSession.DeploymentType)"
|
||||
|
||||
## Removing the old 2100 Expert B. version if it exists.
|
||||
|
||||
Write-ADTLogEntry -Message "Starting Uninstall of the old 2100 Expert Software."
|
||||
|
||||
[string]$issUninstallFile = Join-Path -Path $adtSession.DirFiles -ChildPath 'Old_2100Expert_Uninstall.iss'
|
||||
|
||||
if (Test-Path 'C:\Program Files (x86)\InstallShield Installation Information\{738F1ECC-9046-4FDB-891A-0FE090746B31}\setup.exe') {
|
||||
Start-ADTProcess -FilePath 'C:\Program Files (x86)\InstallShield Installation Information\{738F1ECC-9046-4FDB-891A-0FE090746B31}\setup.exe' -ArgumentList "/s /f1`"$issUninstallFile`""
|
||||
} else {
|
||||
Write-ADTLogEntry -Message "Old 2100 Expert uninstall setup.exe not found at expected path so it may not be installed." -Severity 2
|
||||
}
|
||||
|
||||
##================================================
|
||||
## MARK: Install
|
||||
##================================================
|
||||
|
||||
Reference in New Issue
Block a user