How to remove the Microsoft VBA installed by Reflection and InfoConnect Desktop

  • 7022850
  • 12-Apr-2018
  • 22-Nov-2020

Environment

Reflection Desktop (including Pro, for X, for IBM, or for UNIX and OpenVMS) 16.0 and higher
InfoConnect Desktop (including Pro, or for Unisys) 16.0 and higher

Situation

Reflection and InfoConnect Desktop installs Microsoft VBA as a prerequisite, but does not remove the VBA modules when uninstalled.  There can be many reasons to want to uninstall the VBA code.  One reason might be to create a “clean” PC for that will be used for deployment testing, or for creating virtual image packages for environments like Microsoft App-V.

Resolution

The Microsoft VBA modules can be removed by a Windows Installer (msiecec.exe) command line using the Globally Unique Identifier (GUID).  Many versions of Reflection and InfoConnect contain the same build of the VBA code, so the same msiexec command line can be used for multiple versions.   To find the uninstall command line requires the inspection of the Microsoft Windows registry keys:

1. Open Regedit.

2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products

3. Search on the words "Visual Basic" or open and expand each following registry key to examine the “InstallProperties” key for the “UninstallString” values which can be used to determine the appropriate msiexec /X {GUID} command. 

4. Identify both the Visual Basic Core and Language GUID values to make sure and remove all the components cleanly.

        Here are the values for Reflection Desktop 17.0 Core and Language (English only)
            UninstallString        REG_EXPAND_SZ        MsiExec.exe /x {A9390F66-11A9-4C0F-A180-581842E6EEC1}
            UninstallString        REG_EXPAND_SZ        MsiExec.exe /x {4A19B041-0AEE-4021-9795-0A77658703DA}


Here is a batch file that can be used to remove many versions of the VBA modules installed by Reflection or InfoConnect Desktop software:

    echo off
    echo This Batch file will remove all versions of VBA installed by Reflection
    :: This only works with the English language install of VBA
    pause

    :: this information can be found in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products keys

    :: remove VBA for Reflection 2011
    :: remove the VBA core
    msiexec /x {FB97C283-1F3C-42D4-AE01-ADC1DC12F774}
    msiexec /x {A13D16C5-38A9-4D96-9647-59FCCAB12A85}
    :: remove the English language files
    msiexec /x {179D679D-047F-491D-8783-D4BE596D2242}

    :: remove VBA for Reflection R2014
    :: remove the VBA core
    msiexec /x {74170BFD-A50C-46D9-8AF2-AF0A0CE017DD}
    :: remove the English language files
    msiexec /x {A13D16C5-38A9-4D96-9647-59FCCAB12A85}

    :: remove VBA for Reflection Desktop v16
    :: remove the VBA core
    msiexec /x {90120000-0070-0000-0000-4000000FF1CE}
    :: remove the English language files
    msiexec /x {BAB89D31-4C55-472B-8909-6CBE2CC276B1}

    :: remove VBA for Reflection Desktop v17
    :: remove the VBA core
    msiexec /x {A9390F66-11A9-4C0F-A180-581842E6EEC1}
    :: remove the English language files
    msiexec /x {4A19B041-0AEE-4021-9795-0A77658703DA}

    :: pause to see output before exit
    echo Reflection VBA removal complete
    pause


As you run the batch commands above, you will receive Windows User Access Control (UAC) prompts when the msiexec commands find an installed product.
Prompts to uninstall products (which should be answered in the affirmative) will also appear as shown below:



and



Since the batch file contains many msiexec commands to uninstall products that may not exist on your PC, be prepared for the display of the following error message which is appropriate and expected and shown below:



Feedback service temporarily unavailable. For content questions or problems, please contact Support.