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 Interop and .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 other companies is time and money, not quality :'(
 
Simon


From: Rob Mensching [mailto:[EMAIL PROTECTED]]
Sent: 07 July 2006 16:14
To: '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 AM
To: '[EMAIL PROTECTED] '; Simon Topley
Cc: '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:29
To: '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 AM
To: ' [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: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. 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 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 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 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=lnk&kid=120709&bid=263057&dat=121642


_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



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=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to