Re: [WiX-users] Installing/Starting a service, the simple way.
Heh, they are not as mutually exclusive as you might think. I haven't tried it myself, but WiX 3.0 will (I'm told) generate the registry entries for you using heat.exe - they come out as a Fragment element which can be slotted into the main install. I'm using WiX 2.0 and achieve the same thing using tallow.exe and some Ruby script. The result is that every build (in theory once a day, in practice much more often), COM dlls, ,NET COM Interopand .NET services (haven't tried with native Windows Services) have tallow run against them. The Ruby script turns the tallow output into something that can be plugged into the install, setting the correct component ids and Guids, and so on. It can be done, and saves us so much time and hassle (which, of course, translates into a smoother release) John On 7/7/06, Simon Topley [EMAIL PROTECTED] wrote: You will get no argument from me. We have an abundance of self registering dll's too. Sadly the driving force of this and most othercompanies is time and money, not quality :'( Simon From: Rob Mensching [mailto:[EMAIL PROTECTED]] Sent: 07 July 2006 16:14To: 'Simon Topley' Cc: wix-users@lists.sourceforge.net Subject: RE: [WiX-users] Installing/Starting a service, the simple way. That is SelfReg (although most services use the words -RegServer and -UnregServer to do it instead of -i and -u). I'd encourage you to get them to pull whatever the SelfReg is in those services out and have them declaratively described in the MSI instead. Life typically just works better that way. From: Simon Topley [mailto: [EMAIL PROTECTED]] Sent: Friday, July 07, 2006 4:00 AMTo: '[EMAIL PROTECTED] '; Simon TopleyCc: 'wix-users@lists.sourceforge.net 'Subject: RE: [WiX-users] Installing/Starting a service, the simple way. Well that's is the end of that saga. It seems we have some pretty funky services here, self registering almost. The services install/uninstall themselves by running them with a -i or -u switch. Information's so precious, if only people would share it. Thanks all the same guys, have a good weekend. Simon From: Rob Mensching [mailto:[EMAIL PROTECTED]] Sent: 06 July 2006 15:29To: 'Simon Topley'Subject: RE: [WiX-users] Installing/Starting a service, the simple way. To be clear, I wasn't suggesting managed code services work better. They actually are more prone to hitting this problem. I was simply pointing that out as an example of how to hit the problem. From: Simon Topley [mailto: [EMAIL PROTECTED]] Sent: Thursday, July 06, 2006 1:55 AMTo: ' [EMAIL PROTECTED]'Subject: RE: [WiX-users] Installing/Starting a service, the simple way. interesting work around, sadly I don't have control of the services in question.. and getting thhere owners to convert them to managed code is likely to get me a room full of people laughing at me. I'll keep hammering it and update the mailing list as I go. From: Rob Mensching [mailto:[EMAIL PROTECTED]] Sent: 05 July 2006 16:13To: 'Simon Topley'; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] Installing/Starting a service, the simple way. Usually, this means your service has some dependency that hasn't been completely installed by the time StartServices is called. A favorite way to hit this is to have a managed code service that depends on an assembly that is being installed to the GAC. Because assemblies aren't committed to the GAC until InstallFinalize, the assembly won't be found in the GAC until the install is complete. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Simon TopleySent: Wednesday, July 05, 2006 6:50 AMTo: ' wix-users@lists.sourceforge.net'Subject: Re: [WiX-users] Installing/Starting a service, the simple way. I have managed to get it to install my services using the code below, however I still get errored when it tries to start the service. I can start the services manually post installation (if I supress the StartService action). Any ideas anyone? Simon From: Simon Topley Sent: 05 July 2006 10:27To: wix-users@lists.sourceforge.netSubject: Installing/Starting a service, the simple way. Hello again all, I'm having real trouble installing and starting a service, I have made a simple installer that just installs one file and tries to install it as a service and start it... I get the standard error message when installing Failed to start service My Service Here is the wxs file... ANYONE please is there something simple I'm missing here? ?xml version ='1.0' encoding ='windows-1252'? Wix xmlns=' http://schemas.microsoft.com/wix/2003/01/wi' Product Name='Foobar 1.0' Id ='A85C6ED8-D384-4275-9E1A-CA3D9960DC26' Language='1033' Codepage ='1252' Version ='1.0.0' Manufacturer='Acme Ltd.' Package Id='----' Keywords ='Installer' Description=Acme's Foobar 1.0 Installer Comments='Foobar is a registered trademark of Acme Ltd.' Manufacturer ='Acme Ltd.' InstallerVersion='100' Languages ='1033' Compressed
Re: [WiX-users] Installing/Starting a service, the simple way.
Hi Rob (Hamflett), I've not come across "allusers", where would I find it? ..I'm on WIX 2.0.3719.0 (this in itself could be a problem) Simon Message: 1 Date: Wed, 05 Jul 2006 15:07:06 +0100 From: Rob Hamflett [EMAIL PROTECTED] Subject: Re: [WiX-users] Installing/Starting a service, the simple way. To: wix-users@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Out of interest, what happens if you set the ALLUSERS property to 1? Rob Simon Topley wrote: I have managed to get it to install my services using the code below, however I still get errored when it tries to start the service. I can start the services manually post installation (if I supress the "StartService" action). Any ideas anyone? Simon From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: 05 July 2006 16:13To: 'Simon Topley'; wix-users@lists.sourceforge.netSubject: RE: [WiX-users] Installing/Starting a service, the simple way. Usually, this means your service has some dependency that hasn't been completely installed by the time StartServices is called. A favorite way to hit this is to have a managed code service that depends on an assembly that is being installed to the GAC. Because assemblies aren't committed to the GAC until InstallFinalize, the assembly won't be found in the GAC until the install is complete. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon TopleySent: Wednesday, July 05, 2006 6:50 AMTo: 'wix-users@lists.sourceforge.net'Subject: Re: [WiX-users] Installing/Starting a service, the simple way. I have managed to get it to install my services using the code below, however I still get errored when it tries to start the service. I can start the services manually post installation (if I supress the "StartService" action). Any ideas anyone? Simon From: Simon Topley Sent: 05 July 2006 10:27To: wix-users@lists.sourceforge.netSubject: Installing/Starting a service, the simple way. Hello again all, I'm having real trouble installing and starting a service, I have made a simple installer that just installs one file and tries to install it as a service and start it... I get the standard error message when installing "Failed to start service "My Service"" Here is the wxs file... ANYONE please is there something simple I'm missing here? ?xml version='1.0' encoding='windows-1252'? Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' Product Name='Foobar 1.0' Id='A85C6ED8-D384-4275-9E1A-CA3D9960DC26' Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme Ltd.' Package Id='----' Keywords='Installer' Description="Acme's Foobar 1.0 Installer" Comments='Foobar is a registered trademark of Acme Ltd.' Manufacturer='Acme Ltd.' InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' / Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" / Property Id='DiskPrompt' Value="Acme's Foobar 1.0 Installation [1]" / Directory Id='TARGETDIR' Name='SourceDir' Directory Id='ProgramFilesFolder' Name='PFiles' Directory Id='InstallDir' Name='Acme' Component Id='ServiceExeComponent' Guid='209C6668-1A64-43e9-AFCC-3373A846A40D' SharedDllRefCount='no' KeyPath='no' NeverOverwrite='no' Permanent='no' Transitive='no' Win64='no' Location='either' File Id='ServiceExeFile' Name="WSSESS_1.EXE" LongName="WSSession.exe" src="d:\FWRedist\WSSession.exe" ReadOnly='no' Compressed='yes' KeyPath='yes' Vital='yes' Hidden='no' System='no' Checksum='no' DiskId="1"/ ServiceInstall Id='MyServiceInstall' DisplayName='My Test Service' Name='MyServiceExeName' ErrorControl='normal' Start='auto' Type='ownProcess' Vital='yes' / ServiceControl Id='MyServiceControl' Name='MyServiceExeName' Start='install' Stop='uninstall' Remove='uninstall' / /Component /Directory /Directory /Directory Binary Id='CreateTable' SourceFile='CreateTable.sql' / Feature Id='ServiceFeature' Title='SqlFeature' Level='1' ComponentRef Id='ServiceExeComponent' / /Feature /Product /Wix Loads of love, Simon The information contained in this e-mail is likely to be confidential and may be legally privileged. It is intended only for the addressee. If you have received this message in error please notify the sender immediately at the above address. The disclosure, copying or distribution of this message or its contents without the prior approval of Wallingford Software Ltd. is strictly prohibited. Wallingford Software Ltd. is not liable for unauthorised disclosures nor for subsequent actions or omissions in reliance upon them. The information contained in this e-mail is likely to be confidential and may be legally privileged. It is intended only for the addressee. If you have received this message in error please notify the sender imm
Re: [WiX-users] Installing/Starting a service, the simple way.
It's just a property. Create it like you would any other. What it will do is enforce you to have administrative rights in order to run the installer. I suggested it because if that worked then it would definitely be just a rights issue, instead of some setting being wrong. Rob Simon Topley wrote: Hi Rob (Hamflett), I've not come across allusers, where would I find it? ..I'm on WIX 2.0.3719.0 (this in itself could be a problem) Simon Message: 1 Date: Wed, 05 Jul 2006 15:07:06 +0100 From: Rob Hamflett [EMAIL PROTECTED] Subject: Re: [WiX-users] Installing/Starting a service, the simple way. To: wix-users@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Out of interest, what happens if you set the ALLUSERS property to 1? Rob Simon Topley wrote: I have managed to get it to install my services using the code below, however I still get errored when it tries to start the service. I can start the services manually post installation (if I supress the StartService action). Any ideas anyone? Simon *From:* Rob Mensching [mailto:[EMAIL PROTECTED] *Sent:* 05 July 2006 16:13 *To:* 'Simon Topley'; wix-users@lists.sourceforge.net *Subject:* RE: [WiX-users] Installing/Starting a service, the simple way. Usually, this means your service has some dependency that hasn't been completely installed by the time StartServices is called. A favorite way to hit this is to have a managed code service that depends on an assembly that is being installed to the GAC. Because assemblies aren't committed to the GAC until InstallFinalize, the assembly won't be found in the GAC until the install is complete. *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Simon Topley *Sent:* Wednesday, July 05, 2006 6:50 AM *To:* 'wix-users@lists.sourceforge.net' *Subject:* Re: [WiX-users] Installing/Starting a service, the simple way. I have managed to get it to install my services using the code below, however I still get errored when it tries to start the service. I can start the services manually post installation (if I supress the StartService action). Any ideas anyone? Simon *From:* Simon Topley *Sent:* 05 July 2006 10:27 *To:* wix-users@lists.sourceforge.net *Subject:* Installing/Starting a service, the simple way. Hello again all, I'm having real trouble installing and starting a service, I have made a simple installer that just installs one file and tries to install it as a service and start it... I get the standard error message when installing Failed to start service My Service Here is the wxs file... ANYONE please is there something simple I'm missing here? ?xml version='1.0' encoding='windows-1252'? Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' Product Name='Foobar 1.0' Id='A85C6ED8-D384-4275-9E1A-CA3D9960DC26' Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme Ltd.' Package Id='----' Keywords='Installer' Description=Acme's Foobar 1.0 Installer Comments='Foobar is a registered trademark of Acme Ltd.' Manufacturer='Acme Ltd.' InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' / Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt=CD-ROM #1 / Property Id='DiskPrompt' Value=Acme's Foobar 1.0 Installation [1] / Directory Id='TARGETDIR' Name='SourceDir' Directory Id='ProgramFilesFolder' Name='PFiles' Directory Id='InstallDir' Name='Acme' Component Id='ServiceExeComponent' Guid='209C6668-1A64-43e9-AFCC-3373A846A40D' SharedDllRefCount='no' KeyPath='no' NeverOverwrite='no' Permanent='no' Transitive='no' Win64='no' Location='either' File Id='ServiceExeFile' Name=WSSESS_1.EXE LongName=WSSession.exe src=d:\FWRedist\WSSession.exe ReadOnly='no' Compressed='yes' KeyPath='yes' Vital='yes' Hidden='no' System='no' Checksum='no' DiskId=1/ ServiceInstall Id='MyServiceInstall' DisplayName='My Test Service' Name='MyServiceExeName' ErrorControl='normal' Start='auto' Type='ownProcess' Vital='yes' / ServiceControl Id='MyServiceControl' Name='MyServiceExeName' Start='install' Stop='uninstall' Remove='uninstall' / /Component /Directory /Directory /Directory Binary Id='CreateTable' SourceFile='CreateTable.sql' / Feature Id='ServiceFeature' Title='SqlFeature' Level='1' ComponentRef Id='ServiceExeComponent' / /Feature /Product /Wix Loads of love, Simon The information contained in this e-mail is likely to be confidential and may be legally privileged. It is intended only for the addressee
Re: [WiX-users] Installing/Starting a service, the simple way.
Title: Re: Installing/Starting a service, the simple way. Oh sorry, I misunderstood, I have this: Condition Message=You must be an administrator to install this product. Privileged /Condition I have managed to resolve the issue, it turns out that for this project the services don't even have to be started! I did however manage to get it to work with a custom action that ran a batchfile.. Tastes like fudge. Thanks for all the help anyway y'all, I love it when problems fix themselves.. Simon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED] Sent: 06 July 2006 12:57 To: wix-users@lists.sourceforge.net Subject: WiX-users Digest, Vol 2, Issue 24 Send WiX-users mailing list submissions to wix-users@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/wix-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of WiX-users digest... Today's Topics: 1. Re: Installing/Starting a service, the simple way. (Rob Hamflett) 2. (no subject) ([EMAIL PROTECTED]) 3. HTTP Shortcut Woes ([EMAIL PROTECTED]) 4. Re: HTTP Shortcut Woes (Rob Hamflett) 5. Re: HTTP Shortcut Woes ([EMAIL PROTECTED]) 6. (no subject) (Hanison, Jack) -- Message: 1 Date: Thu, 06 Jul 2006 10:14:41 +0100 From: Rob Hamflett [EMAIL PROTECTED] Subject: Re: [WiX-users] Installing/Starting a service, the simple way. To: wix-users@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed It's just a property. Create it like you would any other. What it will do is enforce you to have administrative rights in order to run the installer. I suggested it because if that worked then it would definitely be just a rights issue, instead of some setting being wrong. Rob Simon Topley wrote: Hi Rob (Hamflett), I've not come across allusers, where would I find it? ..I'm on WIX 2.0.3719.0 (this in itself could be a problem) Simon Message: 1 Date: Wed, 05 Jul 2006 15:07:06 +0100 From: Rob Hamflett [EMAIL PROTECTED] Subject: Re: [WiX-users] Installing/Starting a service, the simple way. To: wix-users@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Out of interest, what happens if you set the ALLUSERS property to 1? Rob Simon Topley wrote: I have managed to get it to install my services using the code below, however I still get errored when it tries to start the service. I can start the services manually post installation (if I supress the StartService action). Any ideas anyone? Simon -- -- *From:* Rob Mensching [mailto:[EMAIL PROTECTED]] *Sent:* 05 July 2006 16:13 *To:* 'Simon Topley'; wix-users@lists.sourceforge.net *Subject:* RE: [WiX-users] Installing/Starting a service, the simple way. Usually, this means your service has some dependency that hasn't been completely installed by the time StartServices is called. A favorite way to hit this is to have a managed code service that depends on an assembly that is being installed to the GAC. Because assemblies aren't committed to the GAC until InstallFinalize, the assembly won't be found in the GAC until the install is complete. *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] *On Behalf Of *Simon Topley *Sent:* Wednesday, July 05, 2006 6:50 AM *To:* 'wix-users@lists.sourceforge.net' *Subject:* Re: [WiX-users] Installing/Starting a service, the simple way. I have managed to get it to install my services using the code below, however I still get errored when it tries to start the service. I can start the services manually post installation (if I supress the StartService action). Any ideas anyone? Simon -- -- *From:* Simon Topley *Sent:* 05 July 2006 10:27 *To:* wix-users@lists.sourceforge.net *Subject:* Installing/Starting a service, the simple way. Hello again all, I'm having real trouble installing and starting a service, I have made a simple installer that just installs one file and tries to install it as a service and start it... I get the standard error message when installing Failed to start service My Service Here is the wxs file... ANYONE please is there something simple I'm missing here? ?xml version='1.0' encoding='windows-1252'? Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' Product Name='Foobar 1.0' Id='A85C6ED8-D384
[WiX-users] Installing/Starting a service, the simple way.
Hello again all, I'm having real trouble installing and starting a service, I have made a simple installer that just installs one file and tries to install it as a service and start it... I get the standard error message when installing "Failed to start service "My Service"" Here is the wxs file... ANYONE please is there something simple I'm missing here? ?xml version='1.0' encoding='windows-1252'? Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' Product Name='Foobar 1.0' Id='A85C6ED8-D384-4275-9E1A-CA3D9960DC26' Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme Ltd.' Package Id='----' Keywords='Installer' Description="Acme's Foobar 1.0 Installer" Comments='Foobar is a registered trademark of Acme Ltd.' Manufacturer='Acme Ltd.' InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' / Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" / Property Id='DiskPrompt' Value="Acme's Foobar 1.0 Installation [1]" / Directory Id='TARGETDIR' Name='SourceDir' Directory Id='ProgramFilesFolder' Name='PFiles' Directory Id='InstallDir' Name='Acme' Component Id='ServiceExeComponent' Guid='209C6668-1A64-43e9-AFCC-3373A846A40D' SharedDllRefCount='no' KeyPath='no' NeverOverwrite='no' Permanent='no' Transitive='no' Win64='no' Location='either' File Id='ServiceExeFile' Name="WSSESS_1.EXE" LongName="WSSession.exe" src="d:\FWRedist\WSSession.exe" ReadOnly='no' Compressed='yes' KeyPath='yes' Vital='yes' Hidden='no' System='no' Checksum='no' DiskId="1"/ ServiceInstall Id='MyServiceInstall' DisplayName='My Test Service' Name='MyServiceExeName' ErrorControl='normal' Start='auto' Type='ownProcess' Vital='yes' / ServiceControl Id='MyServiceControl' Name='MyServiceExeName' Start='install' Stop='uninstall' Remove='uninstall' / /Component /Directory /Directory /Directory Binary Id='CreateTable' SourceFile='CreateTable.sql' / Feature Id='ServiceFeature' Title='SqlFeature' Level='1' ComponentRef Id='ServiceExeComponent' / /Feature /Product /Wix Loads of love, Simon The information contained in this e-mail is likely to be confidential and may be legally privileged. It is intended only for the addressee. If you have received this message in error please notify the sender immediately at the above address. The disclosure, copying or distribution of this message or its contents without the prior approval of Wallingford Software Ltd. is strictly prohibited. Wallingford Software Ltd. is not liable for unauthorised disclosures nor for subsequent actions or omissions in reliance upon them. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users