Overview
When upgrading, you open the installer, pass through all screens, and start the installation.
During this stage of the installation, an error occurs, the installation fails and the installer rolls back changes.
Information
When we have a situation when the installer starts to upgrade but rolls back due to a failure, we can have multiple scenarios.
The only relevant log is gfimes_<date>_<reference>_maininstall.x64.log
. This can be found in the %tmp%
folder.
Access this folder like this:
- Go to Start > Run
- Type %temp%
- Press Enter.
When the installation starts, the installer will always create that file.
The scenarios below describe different situations and contain log excerpts from the main install log.
Scenario 1. Missing SpamScore file
DEBUG: Error 2318: File does not exist: C:\Program Files (x86)\GFI\MailEssentials\Antispam\SpamScore\Core\init.tmp.a.a08924
The following steps may help:
- If MailEssentials is installed, uninstall it from the Control Panel
- Move/delete the SpamScore folder from
C:\Program Files (x86)\GFI\MailEssentials\Antispam\SpamScore\
- Please check and purge these folders (skip the files that are reported in use):
C:\Program Files (x86)\GFI\MailEssentials\Antispam\temp.
Do not delete the tnefupck folder but delete its content.
C:\Program Files (x86)\GFI\MailEssentials\EmailSecurity\Temp.
Do not delete the tnefupck folder but delete its content. All other folders can be deleted.
C:\Program Files (x86)\GFI\MailEssentials\Attendant\temp
C:\Program Files (x86)\GFI\MailEssentials\Backend\temp
C:\Program Files (x86)\GFI\MailEssentials\ActionServices\temp
C:\Program Files (x86)\GFI\MailEssentials\Antispam\GlobalActions -
Install MailEssentials.
Before installing, please make sure that:- Install file is unblocked.
- You are logged in as a domain administrator.
- (Optional) UAC is disabled/turned off.
Scenario 2. Service marked for deletion
ExecServiceConfig: Error 0x80070430: Cannot change service configuration. Error: Der angegebene Dienst wurde zum Löschen markiert.
ExecServiceConfig: Error 0x80070430: Cannot change service configuration. Error: The specified service has been marked for deletion.
One of the GFI MailEssentials services could not be removed, and MailEssentials cannot configure the new service until it is removed. Reboot the server and try the installation again.
- Before the reboot, there should be one or more services in disabled mode.
Trying to start them, it would show that it's marked for deletion. - After the reboot, that/those service/services should have been removed
Scenario 3. Missing .mdb files when main registry key is present
MailEssentials was uninstalled from the Control Panel and the MailEssentials folder was removed.
During the upgrade process, the registry key HKML\Software\Wow6432Node\GFI
is detected and the installer tries to upgrade the configuration databases: config.mdb
and avapicfg.mdb
. Since they are missing, it will rollback.
[1740:02B0][2018-09-24T14:56:24]i000: WARN: Configuration Load ... Failed [System.Data.OleDb.OleDbException (0x80004005): 'C:\Program Files (x86)\GFI\MailEssentials\EmailSecurity\Data\avapicfg.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides. at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.OleDb.OleDbConnection.Open() at MailEssentials.Configuration.ConfigurationFactory.Open(String mailEssentialsInstallDirectory) at MailEssentials.Installer.Bootstrapper.MainInstall.Utils.EnvironmentDiscoveryWorker.LoadConfigurationData(String mesInstallationDir)] [1740:02B0][2018-09-24T14:56:24]i000: Setting string variable 'CONFIG_FAILURE' to value ''C:\Program Files (x86)\GFI\MailEssentials\EmailSecurity\Data\avapicfg.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.'
To solve this issue, remove the offending registry key: HKML\Software\Wow6432Node\GFI
Try the installer once more.
Scenario 4. Missing prerequisites
In this scenario, the installation fails due to missing prerequisites.
[1FE8:08F0][2020-10-19T16:02:16]e000: Error 0x80070643: Failed to install MSI package.
[1FE8:08F0][2020-10-19T16:02:16]e000: Error 0x80070643: Failed to execute MSI package.
[1D1C:1698][2020-10-19T16:02:16]e000: Error 0x80070643: Failed to configure per-machine MSI package.
[1D1C:1698][2020-10-19T16:02:16]i000: Execute Package Complete >> maininstall.x64 None
[1D1C:1698][2020-10-19T16:02:16]i319: Applied execute package: maininstall.x64, result: 0x80070643, restart: None
[1D1C:1698][2020-10-19T16:02:16]e000: Error 0x80070643: Failed to execute MSI package.
[1D1C:1698][2020-10-19T16:02:16]i000: Execute Package Begin >> maininstall.x64 False
[1FE8:08F0][2020-10-19T16:02:16]i318: Skipped rollback of package: maininstall.x64, action: Uninstall, already: Absent
[1D1C:1698][2020-10-19T16:02:16]i000: Execute Package Complete >> maininstall.x64 None
[1D1C:1698][2020-10-19T16:02:16]i319: Applied rollback package: maininstall.x64, result: 0x0, restart: None
Ensure that the prerequisites are installed:
- Make sure the Windows Server is fully up to date.
- Install the Replication component for SQL 2005 or SQL 2008. (depending on your environment)
- Download and install the SQL server component from http://go.microsoft.com/fwlink/?LinkId=158865.
- Perform the following troubleshooting steps:
- Make sure you are logged in as a domain administrator
- Go to Start > Run > type %temp% and hit Enter.
- Clear as many files as you can from the temporary folder (purge C:\Windows\Temp).
- Disable any Antivirus/Backup software running at the moment on the machine.
- Disable User Account Control (UAC) and reboot to apply.
- Right-click the install file > Properties, click on the Unblock button if available. For more information, please refer to Microsoft Windows Blocks Downloaded GFI Software File.
- Try installing again with Right-click > Run as Administrator.
Scenario 5. Remnant registry keys
In this rare scenario, MailEssentials has been uninstalled, the MailEssentials Folder removed and the primary registry key, HKML\Software\Wow6432Node\GFI
is missing or removed.
[9B94:A444][2018-10-04T1616:28:42]i000: WARN: Configuration Load ... Failed [System.ArgumentNullException: Value cannot be null. Parameter name: path1
Log Capture:
The install log will also say it detected MailEssentials and tries to do an upgrade, but we see a warning showing that the path to the product cannot be found.
This may happen when incorrectly doing a manual uninstall of the product.
The installation detected a previous version of MailEssentials and failed to upgrade because the path to the product doesn't exist.
Manual removal of the UpgradeCode and other remnant keys from Regedit is required. Follow the instructions in the "Manually Uninstalling GFI MailEssentials" article and then attempt to install again.