Thank you. I have a follow up question. Can ServiceControl be used to Stop and
Uninstall as service which is not installed as part of this MSI. What I
currently have is to have a custom action install the Service and custom
actions to stop and uninstall the service, like this,
<InstallExecuteSequence>
<Custom Action='SetJava' After='InstallFinalize' />
<Custom Action='InstallService' After='SetJava'>NOT
Installed</Custom>
<Custom Action='SetUninstallJava' Before='RemoveFiles'
/>
<Custom Action='StopService'
After='SetUninstallJava'>Installed AND NOT REINSTALL</Custom>
<Custom Action='UnInstallService'
After='StopService'>Installed AND NOT REINSTALL</Custom>
</InstallExecuteSequence>
Sometime I noticed that the files used as part of the service were not being
removed on uninstall and the installer prompts with 'You need to reboot your
computer'. So I wanted to try what would happen if try to stop and remove the
service using ServiceControl. Can it be done? If yes, under which component
would I need to put the ServiceControl.
Thanks,
-----Original Message-----
From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2008 8:11 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] ServiceInstall for a file not part of MSI
Sarva Bellan wrote:
> Is there a way to install a service for a file which is not part of the
> component/msi.
No, Windows Installer's ServiceInstall support requires that the service be
installed:
Note that to install this service using the InstallService[sic] table, the
KeyPath for this component must be the executable file for the service.
--
sig://boB
http://joyofsetup.com/
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users