views:

120

answers:

2

Hi to all,

I have built a WIX project which installs and starts services. For the release version it all seems to work fine but for the debug version I get "insufficient privileges to start service". Any clues why this is happening?

Using .net/Visual studio.

JD.

+1  A: 

In my experience this error message is always misleading. Typically it's actually a fault of the service exe. With the messagebox displayed, go to a dos prompt and run the EXE. You'll most likely see a stack trace get displayed. If you see a File Not Found Exception then you are probably missing a dependency. Any other error and it's likely to just be a problem with the code.

Typically when integrating a new service into my installs I will set it to start automatically but not author any specific start events. This lets me work the kinks out with the developers before wiring it up fully into the installer.

Christopher Painter
Not clear why it happens on some machines and not others. On one machine I had to run the installer several times before it went through. For now, I will accept your answer, but will post if anything new comes to light. Thanks.
JD
A: 

Most probable cause: It works on computers that have (or have had) Visual Studio installed, because it means they have debug version of run-time libraries installed as well. It does not work on computers without Visual Studio.

Matus