简体   繁体   中英

“Unable to open the Security Manager Database” Error while installing a windows service using service installer on Windows 7

I am on win 7 and trying to install a .NET windows service using the service installer. And get the error as shown in the pic. I thought Its becuase I was not admin on that machine and got that error. but then I used an admin account and got the same error. Any idea what could be the reason.

在此处输入图片说明

Run your process elevated. Right click -> Run as administrator.

If you suspect the problem in the installer, it is easy to install service from command line. The command is

sc create <MyServiceName> binPath= <PathToServiceExe>

You will need to execute this command from elevated cmd window.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM