We have created a custom windows service. The deployment package is done in InstallShield and the installation prompts for the user name and password for the service Log On account.
We have had no issues at all installing on various Windows 7 (Professional) and Windows 8 machines, but we get the 1920 error when trying to deploy to a Windows 7 Ultimate machine. We have not yet confirmed whether the issue is to do with the OS or the specific machine that we are trying to install this on.
The installer is always run by right-clicking and "Run as Administrator", and the users (both, the user running the installer and the Logon User for which the credentials are supplied) are administrators on the machine. Usually the logged in user installing the service, and the Logon user running the service are the same.
Here are the things we have tried.
- Verified the Logon user is a member of Administrators.
- Verified the user account settings are exactly the same as another machine where it works.
- Verified from Control Panel - Administrative tools - Local Security Policy - Local Policies - Security Options = that these again match machine where it works.
- Ensured that all windows updates have been applied.
- Verified that the Windows Management Instrumentation Service is running. Restarted it.
- Rebooted the machine, then tried again.
- Added "generatePublisherEvidence" element in the service configuration file. (Service failed to start error 1920)
But none of the above work.
Hope that someone else has come across a similar issue and has a fix..
UPDATE:
I have also tried the following:
- Open SecPol.msc
- Navigate to Local Policies/User Rights Assigment
- Find "Log on as a service" policy and add the service account
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…