I am writing my first MSI package so I suppose my question would be pretty simple for a common MSI user.

My package contains a service exe that I want to run upon package installation and delete upon uninstall.
To accomplish that I add one row in two tables correspondingly : ServiceControl and ServiceInstall.
In ServiceControl row I set 129 in Event field. In ServiceInstall table I specify 2 as StartType of the service.

When I install the package everything works fine and my service is started properly.
When I uninstall the package I see my service is gone from the service list but before my uninstall is completed I get an error 1920: "Service failed to start. Verify that you have sufficient privileges to start system services."
From some reason the MSI attempts to start the service again when it is removed from the disk and I can't understand why.

Please, help me to find what I am doing wrong.
Thanks in advance.
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


I'm going to take a guess that you are deleting the service, but not stopping it first.

Try adding a value of 32 to your existing 'Event' value in the ServiceControl table.
Answered 05/16/2006 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment