Click here to Skip to main content
13,863,412 members
Rate this:
 
Please Sign up or sign in to 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 20:32pm
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
   

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190214.1 | Last Updated 2 Mar 2011
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100