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:
Please log in to answer
Posted by:
anonymous_9363
11 years ago
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 11 years ago
Posted by:
anonymous_89761
11 years ago
i've fixed it.
at first the service was set by registry entries, ive deleted the entries.
- in Installshield i did go to [organization]->[components] (left pane)
- searched for the service executable in the list
- opened the [advanced settings]
- right-clicked on services
- add-service
- give the service a name
- set the "display name"
- set the "description"
- set "service type" to: Win32 that runs in its own process
- set "start type" to: automatic
- set "error control" to: log the error and continue
- @control settings ive created a new event
- set "install start" to: yes
- 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 11 years ago