"Key not valid for use in specified state" dialog during install

I’ve downloaded the most recent installer, and am attempting to install it on a Windows 7 machine (up-to-date with Microsoft updates). At the same time as the ‘congratulations’ page is opened in the browser, I get this dialog:

Hitting ‘OK’ then takes me to the main wizard dialog saying ‘The install was interrupted’ and only offering the ‘Finish’ button.

Any ideas?

  • Paul

Hi Paul,
was the application installed? Can you run the application?

Thank you,
Paul.

No, the application was not installed.

Hi, can you please try to run the installer using Run (WinKey+R)  and this command line:

msiexec /i “C:\MyPackage\Example.msi” /L*V “C:\log\example.log”

Change the paths to your installer and to a folder where you’d like to create an installation log (that’s what this is going to do).
When the log is created please send me the log to [email protected]

Thank you,
Paul.

I used the command line:

msiexec /i “%HOMEDRIVE%%HOMEPATH%\Downloads\setup.msi” /L*V “%HOMEDRIVE%%HOMEPATH%\Desktop\emclient-install.log”

for convenience…

I’ve emailed the entire log to you, but this looks like the crucial piece:

MSI (s) (FC:E4) [12:12:19:753]: Source type from package 'setup.msi': 2 MSI (s) (FC:E4) [12:12:19:754]: SECREPAIR: Hash Database: C:\Windows\Installer\SourceHash{82AA05E0-C204-4057-A5B2-014F43A280C1} MSI (s) (FC:E4) [12:12:19:754]: SECREPAIR: SourceHash database file already exists. Deleting it. MSI (s) (FC:E4) [12:12:19:755]: Note: 1: 2262 2: SourceHash 3: -2147287038 MSI (s) (FC:E4) [12:12:19:763]: SECREPAIR: New Hash Database creation complete. MSI (s) (FC:E4) [12:12:19:765]: SECREPAIR: A general error running CryptAcquireContext MSI (s) (FC:E4) [12:12:19:765]: SECREPAIR: Crypt Provider not initialized. Error:-2146893813 MSI (s) (FC:E4) [12:12:19:765]: SECUREREPAIR: Failed to CreateContentHash of the file: setup.msi: for computing its hash. Error: -2146893813 MSI (s) (FC:E4) [12:12:19:765]: SECREPAIR: Failed to create hash for the install source files MSI (s) (FC:E4) [12:12:19:765]: Note: 1: 2262 2: SourceHash 3: -2147287038 MSI (s) (FC:E4) [12:12:19:765]: SECUREREPAIR: SecureRepair Failed. Error code: 8009000bF91B34B8 Key not valid for use in specified state. MSI (s) (FC:E4) [12:12:25:231]: Note: 1: 2205 2: 3: Error MSI (s) (FC:E4) [12:12:25:231]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 MSI (s) (FC:E4) [12:12:25:231]: 
  • Paul

Removing the ‘SourceHash’ file and letting it create a new one didn’t help, so it must be the ‘Crypt Provider not initialized’ error that trips things up.

  • Paul

Hi Paul, I’ve discussed the issue with the developers and unfortunately only reference to this error that we were able to find is an Windows update that might be causing this.
Try to go to Uninstall Programs > Uninstall Updates and uninstall update: KB2918614.

Let me know if this helped.

Thank you,
Paul.

Yes, that did the trick. I’ve been able to successfully install and use eM Client.

Microsoft strikes again.

Thank you,

  • Paul

Great, glad we’ve solved this, let us know if you come across any other issues or questions, we’ll be happy to help.

Thank you,
Paul.