Instructions for silent uninstall procedure for PEC

Document ID : KB000050854
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

Under some circumstances users want to remove PEC from their machines but don't want to do so via Control Panel -> Add/remove programs but rather as a silent uninstall procedure.

Solution:

  1. First copy the value of 'UninstallString' in the following registry value
    (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5})

    Note: This is the same code for PEC4.6.2, and 4.7.x

  2. Open command prompt (cmd) and run the following commands:
    cd "C:\Program Files\InstallShield Installation Information\{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}

    Please note, C:\Program Files\InstallShield Installation Information folder is by default hidden in Windows Explorer

    setup.exe -l0x9 -removeonly -uninst -r -f1.\uninst_setup.iss -f2.\setuppec.log

    (The above '-r' will create a response file 'uninst_setup.iss' in the current directory)

  3. Now find 'uninst_setup.iss' in the current directory and copy this to all machines where the silent uninstall is to be performed on and placed into C:\Program Files\InstallShield Information\{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}.

  4. Then the actual silent uninstall can be run, specifying this response file from command line prompt
    "C:\Program Files\InstallShield Installation Information\{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}\setup.exe" -l0x9 -removeonly -uninst /s -f1.\uninst_setup.iss -f2.\uninstpec.log -v
    (where '/s' means 'silent', and '-f1' points to the response file)

Note: If RTSERVER is running, we can see the 'Command prompt' window with 'RTSERVER STOPPING' message is prompted and it closes automatically.