Uninstalling TestArchitect in silent mode

In some cases, you may need to uninstall the current version of TestArchitect in silent mode before installing the newer version. In this mode, the uninstallation is performed automatically without any user interaction.

Silent uninstallation performed via InstallShield on Windows

  • The uninstallation runs in the background. It does not show any dialog boxes or messages.
  • An uninstallation response file is required. This file contains all the data needed during silent uninstallation.

Creating an uninstallation response file

To remove previously installed TestArchitect in silent mode by using InstallShield, create an uninstallation response file to store the needed uninstallation settings.

  1. Choose a computer on which TestArchitect is already installed.
  2. Bring up a command window with administrator right. The command window opens with a prompt displaying your current directory.
  3. Run the TestArchitect uninstallation file in record mode with the following command: <path_to_installation_file>\<TestArchitect_installation_file.exe> /uninst /r
    Note:
    • /uninst: Causes Setup.exe to execute only the event handler function OnUninstall, whose default code uninstalls the previously installed TestArchitect. (Learn more.)
    • /r: Use this command line to run the uninstallation in record mode. (Learn more.)
    • If the path includes spaces, enclose it in quotes.
    For example, enter the following command:
    "D:\Silent installation\TestArchitect Build\TestArchitect_8.3.0.143_x64.exe" /uninst /r


    Where:
    • Path to the executable TestArchitect installation file: D:\Silent installation\TestArchitect Build\TestArchitect_8. 3.0.143_x64.exe
  4. Follow the onscreen instructions and remove TestArchitect. The uninstallation program records your choices to the setup.iss file in the Windows folder on your system drive.
  5. Rename setup.iss into uninstall.iss, which is in charge of silent uninstallation.

Running silent uninstallation

Deploying TestArchitect uninstallation file on other computers and running the uninstallation there using the created response file.

  1. Deploy the TestArchitect installation file and the uninstallation response file, uninstall.iss, to the target computer.
  2. Bring up a command window with administrator right. The command window opens with a prompt displaying your current directory.
  3. On the target computer, run the following command: <path_to_installation_file>\<TestArchitect_installation_file.exe> /s /uninst /removeonly /f1<path_to_response_file>\<respone_file.iss> /f2<path_to_log_file>\<log_file.log>
    Note:
    • /s: Runs the uninstallation in silent mode. (Learn more.)
    • /uninst: Causes Setup.exe to execute only the event handler function OnUninstall, whose default code uninstalls the previously installed TestArchitect. (Learn more.)
    • /removeonly: Sets the REMOVEONLY system variable equal to a non-zero value. (Learn more.)
    • /f1: Specify where the response file is. (Learn more.)
    • /f2: Specifies a log file location and file name. (Learn more.)
      Note: Specify an absolute path; using a relative path gives unpredictable results.
    • If the path includes spaces, enclose it in quotes.
    For example, enter the following command:
    "D:\Silent installation\TestArchitect Build\TestArchitect_8.3.0.143_x64.exe" 
    /s /uninst /removeonly 
    /f1"D:\Silent installation\Silent files\uninstall.iss" 
    /f2"D:\Silent installation\Silent files\uninstall.log"


    Where:
    • Path to the executable TestArchitect installation file: D:\Silent installation\TestArchitect Build\TestArchitect_8.3.0.143_x64.exe
    • Path to the response file: D:\Silent installation\Silent files\uninstall.iss
    • Path to the log file: D:\Silent installation\Silent files\uninstall.log
    The uninstallation program removes TestArchitect in the background using the options specified in the response file. The uninstallation program displays no dialog boxes. The uninstallation progress is not shown either.
    Note: Although the removal is successful, TestArchitect and its related components' shortcuts are not deleted. You can delete them manually.

Verifying the silent uninstallation success

In silent mode, the uninstallation wizard shows no informative, warning or error messages. The uninstallation program creates the log file and writes the uninstallation status to that file. You can examine that log file to learn whether TestArchitect has been removed successfully.

The file is located in the folder, specified by the /f2 parameter (learn more). Open the file and check the ResultCode value. 0 indicates success, any other values indicate an error. A complete list of error codes is available here.