Sujeeth Damodharan
Sujeeth Damodharan

Reputation: 477

Need a (script)procedure to install an application as windows service using NSIS script

I having 3 .exe files (1.exe, 2.exe and 3.exe) and 2 .msi files (1.msi and 2.msi). Using NSIS script I created a Package. By installing that package this service should be in Windows services window. But I do not know the script to register this service. Help me thanks.

Actually I used Exec '"C:\Windows\System32\sc.exe" "MY Service Name"' Even though I couldn’t find my service in this path Start Menu -> Control Panel -> Administrative Tools -> Services. Help me...

Upvotes: 0

Views: 917

Answers (2)

HX_unbanned
HX_unbanned

Reputation: 597

Use SERVICE plugin ( ServiceLib ) from here: http://nsis.sourceforge.net/NSIS_Service_Lib

Does the job well! ;)

Upvotes: 0

idleberg
idleberg

Reputation: 12882

have you tried NsSCM or any other service plug-in from the wiki?

Upvotes: 1

Related Questions