If you get an error message "Key not valid for use in specified state" during installation. This is caused by a bug in Windows update KB2918614. Here is the link to this Windows Update http://support.microsoft.com/kb/2918614.
Known issues with this security update
Known issue 1
After you install this security update and try to install any MSI package that uses a mandatory or temporary user profile, the MSI package installation fails, and you receive an error message that resembles the following:
The profile for the user is a temporary profile
When this problem occurs, the MSI log will contain an error message that resembles the following:
SECREPAIR: A general error running CryptAcquireContext / Crypt Provider not initialized. Error:-2146893813
For more information about how to enable the Windows Installer logging service, click the following article number to view the article in the Microsoft
Knowledge Base:
223300 How to enable Windows Installer logging
Resolution
To resolve this issue, install update 3000988:
3000988 "The profile for the user is a temporary profile" error when you install a MSI package in Windows