Click here to Skip to main content
15,909,953 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I would like to install a service and have 3 questions.

1) Why does the first work and the second does not
sc create Test5000 binPath= "C:\dev\test.exe"
sc create Test5001 binPath= "C:\Program Files (x86)\Test\test.exe"

I have tried double quotes, triple quotes, quad quotes. The binary is present but all I get is Error 193:0xc1

2) Where is the standard place to put data associated with the service

3) Should I create and account?

I am on Windows 7, 64-bit attempting to run a 32-bit binary.

Thanks,
Iain

UPDATE:
Solved by OP himself. Posted as one of the answers.
Posted
Updated 1-Mar-11 19:32pm
v2

1 solution

Hi,

1) was solved by looking at the NMindexing service and noticing that there are quotes around the ImagePath. So passing four quotes each side resolves this to one set of quotes.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900