Silent Install of AscentialTest
Posted: Mon Aug 21, 2017 6:32 pm
Zeenyx AscentialTest can be silently installed on a PC using the commands and option flags detailed below. These command samples assume embedding these lines in a Windows batch (.bat) file. The .exe for the AscentialTest install will, of course, change depending on release version. In addition, the samples below also assume that the command is executed in the same directory as the installer EXE. Prepending the full path to the installer, will allow the command to run from another directory.
Install with default options
Install all options (2nd install option in the GUI installer)
Install runtime only (3rd install option in the GUI installer)
Logging
Logging can been added by appending the following to the silent install command:
The above commands have been adapted to run from a PowerShell script. If doing so, note that the string encapsulation may need to change.
Uninstalling
The following PowerShell command should uninstall any version of AscentialTest installed on a system. PowerShell was used in this case as it facilitates the querying of the GUID of currently installed version of AscentialTest.
Extracting MSI
With some package deployment systems, it may be necessary to extract the MSI of the AscentailTest installer. It is also useful to save of file size; the MSI is far small than the EXE installer as it does not bundle the VC++ Redistrib, MySQL ODBC drivers, and SQLite ODBC drivers. The MSI can be extracted using the following command:
Note: Installing VC++ Redistrib, MySQL ODBC drivers, and SQLite ODBC drivers will need to be installed separately in order to insure AscentialTest operates properly.
Install with default options
Code: Select all
ZeenyxAscentialTestInstall_8.3.0_x64.exe /s /v"/qn"
Code: Select all
set options=\"AlwaysInstall,NewFeature3,NewFeature1,NewFeature2,NewFeature4\"
ZeenyxAscentialTestInstall_8.3.0_x64.exe /s /v"/qn SelectedSetupType=%options%"
Code: Select all
set options=\"AlwaysInstall,NewFeature4\"
ZeenyxAscentialTestInstall_8.3.0_x64.exe /s /v"/qn SelectedSetupType=%options%"
Logging can been added by appending the following to the silent install command:
Code: Select all
/L*V install.log
Uninstalling
The following PowerShell command should uninstall any version of AscentialTest installed on a system. PowerShell was used in this case as it facilitates the querying of the GUID of currently installed version of AscentialTest.
Code: Select all
# Get GUID of currently installed version of Zeenxy AscentialTest
$guid = (Get-WmiObject -Class win32_product -ComputerName $hostname -Filter "Name='Zeenyx AscentialTest'").IdentifyingNumber
if ($quid -ne "") {
Write-Host "Uninstalling Zeenyx AscentialTest"
& msiexec.exe /x $guid /qn
Write-Host "Uninstall complete.`n"
} else {
Write-Host "Uninstall skipped. Zeenyx AscentialTest not installed."
}
}
With some package deployment systems, it may be necessary to extract the MSI of the AscentailTest installer. It is also useful to save of file size; the MSI is far small than the EXE installer as it does not bundle the VC++ Redistrib, MySQL ODBC drivers, and SQLite ODBC drivers. The MSI can be extracted using the following command:
Code: Select all
ZeenyxAscentialTestInstall_8.3.0_x64.exe /s /x /b"C:\DestinationDir" /v"/qn"