/build/static/layout/Breadcrumb_cap_w.png

Error 1920

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   [ + ] Show comments

Answers (1)

Posted by: brenthunter2005 17 years ago
Fifth Degree Brown Belt
2
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ