Answer
This procedure should be used when MailEssentials can't be uninstalled from the Control Panel.
For step 2, ControlSet00x means ControlSet001, ControlSet002, ControlSet003, ControlSet004 and so on.
WARNING: Follow these instructions carefully, do NOT delete anything other apart from what is explained below. Always backup the registry before making any changes to it.
- To uninstall the MailEssentials Exchange Transport Agents:
- Start the Exchange Management Shell
- Execute the following commandlets:
- Uninstall-TransportAgent -Identity "GfiAvSmtpAgent"
- Uninstall-TransportAgent -Identity "GfiAvRoutingAgent"
- Uninstall-TransportAgent -Identity "GfiAsSmtpAgent"
- Uninstall-TransportAgent -Identity "GfiAsSmtp2Agent"
- Uninstall-TransportAgent -Identity "GfiAsRtSubmittedAgent"
- Uninstall-TransportAgent -Identity "GfiAsRtRoutingAgent"
- Answer [Y] Yes to confirm.
- To remove the MailEssentials services:
- Open the Windows Registry Editor (Start - Run - regedit.exe)
- Open HKLM\SYSTEM\CurrentControlSet\Services
- Delete keys:
- gfiasmlhost
- gfiasmsecatt
- gfimetrxsvc
- gfipop2exch
- GFIscanM
- gfiscans
- listserv
- csecmlhost
- msecmlhost
- msecavupdate
- NOTE: Also delete any instances of these keys present in HKLM\SYSTEM\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\Wow6432Node
- If other products are installed, delete the HKLM\SOFTWARE\Wow6432Node\GFI\MailEssentials
- Open regedit.exe:
- 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
- Delete any values with the original installation path of MailEssentials from HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs
- 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 and remove the ones which have ProductName equal to GFI MailEssentials for Exchange/SMTP.
- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
- You will see a bunch of letters and numbers as subkeys of this key. Go through these keys and 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