简体   繁体   中英

Error starting custom service using nsis script

I'm receiving the error "14001- wrong configuration of Side by Side" when I use InstallUtil via my NSIS script.

When I use the same command manually, the service install and start just fine, but when I put on NSIS it broke and show this error.

I'd tried to create a bat file and run but it works as well.

My flow is:

My script creates a folder into C:\\Program Files\\My Folder , add all files compressed into setup.exe and try to install a service using:

"InstallUtil.exe" -i "$INSTDIR\\GeneteLPRService.exe"

As I said, service install but isn't starting.

the Event log of windows is ID 59:
Failure generating context of ativation to "...\\exe.Manifest". Error on manifest file or policy "...exe.Config".

But as I'd said, manually this doens't happened.

Find that.

Looks like this is an generic error, in my case is because some config file broken!

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