Answer
Since there is a need to delete keys from the Registry and Metabase, a manual procedure is preferred to a script.
For step A, ControlSet00x means ControlSet001, ControlSet002, ControlSet003, ControlSet004 and so on.
For step C, <SMTPINSTANCE> is the enumerated SMTP server. This should be the same SMTP server to which the GFI products were bound to. A typical value is "1".
WARNING: Follow these instructions carefully, do NOT delete any other keys apart from the ones explained below. Always backup the registry before making any changes to it.
-
To remove the MailEssentials services:
- Open regedit.exe
- Open HKLM\SYSTEM\CurrentControlSet\Services
- Delete keys: GFI MailEssentials Legacy Attendant Service, listserv, GFIMETRXSVC, gfiasmlhost, GFIScanS, GFI MailEssentials Attendant, GFI POP2Exchange
- Also delete any instances of these keys present in HKLM\SYSTTEM\ControlSet00x\Services
-
To remove the GFI registered files:
- Open regedit.exe
- If no other GFI Products are installed, delete the 'GFI' key from HKLM\SOFTWARE
- If other products are installed, delete the HKLM\SOFTWARE\GFI\ME14 or ME15 key
-
Remove Sinks/Agents
-
To remove the MailEssentials sinks from an SMTP Relay/Exchange 2003:
-
Note: Back up the IIS Metabase either through IIS or by copying the metabase.xml file in the %systemroot%/System32/Inetsrv folder to a secure folder. To back it up in IIS, right-click on the server name, select All Tasks, and choose to back up the current configuration. This will be crucial if anything is accidentally deleted in Metaeditor.
-
Open MetaEditor/MetaEdit , which can be downloaded here: http://download.microsoft.com/download/iis50/utility/5.0/nt45/en-us/mtaedt22.exeWhen you install this application only select to install the metaexplorer.
- Note that before you delete the sink bindings, that you JUST DELETE THE BINDING REFERENCE. Deleting the sink event itself (i.e. F6628C... and FF3CA...) instead of the binding event (i.e. 83D5BC...) will cause adverse issues for other applications that are bound to the SMTP event (i.e. FaxMaker).
- Delete LM\SmtpSvc\<SMTPINSTANCE>\EventManager\EventTypes\{F6628C90-0D5E-11d2-AA68-00C04FA35B82}\Bindings\{83D5BC59-B6C8-4B77-88B0-B7CA8F3BA1AC}
- Delete LM\SmtpSvc\<SMTPINSTANCE>\EventManager\EventTypes\{FF3CAA23-00B9-11d2-9DFB-00C04FA322BA}\Bindings\{A7D837CC-6273-4DA0-8B83-AFFCC9942B2B}
-
-
To remove the MailEssentials agents from an Exchange 2007/2010/2013
- Start the Exchange Management Shell
-
Execute the following commandlets:
-
Answer [Y] Yes to confirm for each when prompted
- Uninstall-TransportAgent -Identity "GfiAsRtSubmittedAgent"
- Uninstall-TransportAgent -Identity "GfiAsRtRoutedAgent"
- Uninstall-TransportAgent -Identity "GfiAsSmtpAgent"
- Uninstall-TransportAgent -Identity "GfiAsSmtp2Agent"
-
To remove the MailEssentials sinks from an SMTP Relay/Exchange 2003:
-
To remove shared dll counters:
- Delete any values with the original installation path of MailEssentials from HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs
- Also, if no other GFI products are installed, delete any values with \<CommonFilesFolder>\GFI\common
-
To remove the MailEssentials from add/remove programs:
- Open regedit.exe
- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products
- The subkeys of this key are a bunch of letters and numbers. Go through these keys are remove the ones which have "ProductName" equal to GFI MailEssentials for Exchange/SMTP.
- Do the same for the following key: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
- You will see a bunch of letters and numbers as subkeys of this key. Go through these keys are remove the ones which have "DisplayName" equal to GFI MailEssentials for Exchange/SMTP.
- Some old registry keys may be located in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products
- You can open the gfimes_xxxxxxxxx_x_maininstall.x86 log located in %temp% and look for the entry that lists the product , such as Product: {F09AEF50-299F-409F-85D4-D36C0EF2F2F9}
- Then search the registry for F09AEF50-299F-409F-85D4-D36C0EF2F2F9 and remove any references.The installation should proceed at this point.
-
Reboot the machine:
- After performing all steps, you should be free to install MailEssentials again.