I was able to achieve the same behavior using the ServiceControl,
<ServiceControl Id="AdminService" Name="admin-srv" Stop='uninstall'
Remove='uninstall' Wait='yes'/>
But similarly as before the installer prompts me to 'Restart the system', which
is actually fine. (At this point there some files and directories left in the
installation directory and the service is removed. The leftover files are the
library jars which were used by the service).
After the restart, the files get removed automatically, but the directories
where those files where remains. Is there something to do, to make sure that
these directories are also removed.
Before restart,
lib/
dir1/
file1.jar
file2.jar
dir2/
file11.jar
file12.jar
After restart,
lib/
dir1/
dir2/
Thanks,
-----Original Message-----
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2008 10:57 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] ServiceInstall for a file not part of MSI
Yes, ServiceControl controls services by name.
-----Original Message-----
From: Sarva Bellan [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2008 10:42
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] ServiceInstall for a file not part of MSI
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
------------------------------------------------------------------------------
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