/build/static/layout/Breadcrumb_cap_w.png

auto start service after installing MSI (without a reboot)

Hello,

i've ceated a msi package which does contain a runing licensing service. The service does get installed and it does run... but only after a reboot. How can i tweak the msi to start the service directly after (or during) the msi installation?

 


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: anonymous_9363 10 years ago
Red Belt
1

Google for 'Windows Installer ServiceControl table'


Comments:
  • after more than an hour of googling i came across the solution (so i answered my own question for others to use) - anonymous_89761 10 years ago
Posted by: anonymous_89761 10 years ago
Third Degree Brown Belt
1

i've fixed it.

at first the service was set by registry entries, ive deleted the entries.

  1. in Installshield i did go to [organization]->[components] (left pane)
  2. searched for the service executable in the list
  3. opened the [advanced settings]
  4. right-clicked on services
  5. add-service
  6. give the service a name
  7. set the "display name"
  8. set the "description"
  9. set "service type" to: Win32 that runs in its own process
  10. set "start type" to: automatic
  11. set "error control" to: log the error and continue
  12. @control settings ive created a new event
  13. set "install start" to: yes
  14. set "uninstall delete" to: yes  (if you want to have service removed after uninstalling the package)

now it works and after installation it starts the service without a reboot.


Comments:
  • >at first the service was set by registry entries, ive deleted the entries

    Of course, all of the above was patiently reproduced in the target machine's registry during installation:-)

    Remember that apps are just a bunch of files and registry data. That's it! There's no magic! :-) - anonymous_9363 10 years ago
 
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