cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jimmyliu
Level 2

How to create a Windows service based on pre-exist file

Hi, there,

I have 2 packages, one is base, another one is add-on product. When I install add-on product, I need to create another Windows service which the binary is already installed by base product. Instead of CA to create a service, is there a way to configure msi to automatic create Windows service based on pre-exist file? Any help?

By the way, I'm using basic msi project.
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

I think the built-in MSI service tables apply only to the key file of a component in the same installer, so a custom action might be necessary for a pre-existing file.
0 Kudos
jimmyliu
Level 2

But if code in CA, I have to test install, rollback, uninstall, uninstall rollback cases at least. May be more considering upgrade case. Why Windows installer limit this functionality? Sigh.
0 Kudos
RobertDickau
Flexera Alumni

More specifically, the service-control functionality can control a service that's already installed, but the initial installation apparently needs a key file.
0 Kudos