Tallow won't reverse engineer Installer classes.  You'll need to figure out 
how the service is actually installed and create the authoring for the 
ServiceInstall elements.  That should not be too hard though.  You'll also 
get a lot more functionality this way, as you can set a lot of things that 
aren't even exposed by the installer classes such as the service restart 
behaviors and the friendly description.

There is a gotcha though with the managed service installer classes.  Not 
only does it create a service in the service database, but it also installs 
an event source for you in the application log for the service to write to. 
In order to support this behavior, you'll need to create some WiX authoring 
to create an Event Source.  This is done by setting the proper registry 
elements in HKLM to create an Event Source.

I'm not sure if anyone has created a sample of this or not.  You might be 
able to get tallow to help you here by saving the registry key settings to a 
file and reverse engineering that into WiX authoring.  There is another 
trick to be aware though, in that .NET event sources use the message DLL 
that comes with the .NET framework, and the registry will contain a path to 
that.  You may need to make that dynamic based on the version of the .NET 
framework you are supporting.  It could get a little tricky, but should not 
be too hard.

I hope that helps some.  Luckily, you aren't doing perf counters or WMI or 
you would be looking at something much more difficult.  :)

Joe K.

----- Original Message ----- 
From: "Eric Fesh" <[EMAIL PROTECTED]>
To: <wix-users@lists.sourceforge.net>
Sent: Friday, August 25, 2006 12:06 PM
Subject: Re: [WiX-users] InstallUtil considered harmful... What next?


> So tallow works for .NET assemblies? I thought it would only capture that
> information from COM objects... Or do I need to go to 3.0.x for that? I'd 
> been
> holding off upgrading until 3.0 stabilized, but I may not have a choice...
>
> --
>
> Eric Fesh
> Customer Support Engineer/Software Test Engineer
> Verari Systems Software, Inc.
> 110 12th Street North, Suite D103
> Birmingham, AL 35203
> Phone +1-205-397-3141 ext. 3149
> Fax +1-205-397-3142
> [EMAIL PROTECTED]
> http://www.verarisoft.com/
>
> The information contained in this communication may be confidential and is
> intended only for the use of the recipient(s) named above.  If the reader 
> of
> this communication is not the intended recipient(s), you are hereby 
> notified
> that any dissemination, distribution, or copying of this communication, or
> any of its contents, is strictly prohibited.  If you are not a named
> recipient or received this communication by mistake, please notify the 
> sender
> and delete the communication and all copies of it.
>
>
> John Ludlow wrote:
>> Depending on the version of WiX, you would use either tallow (in 2.0.x) 
>> or
>> heat (3.0.x) to generate the registration information.  This dumps a
>> load of
>> stuff into the registry table, essentially mimicking what 
>> self-registration
>> does but within the MSI transaction (meaning it gets rolled back during 
>> an
>> error, and removed during an uninstall).
>>
>> On 8/25/06, Eric Fesh <[EMAIL PROTECTED]> wrote:
>>>
>>> I've seen it said often enough that use of InstallUtil (and
>>> self-registering
>>> components in general) in custom actions isn't a good idea. In my google
>>> searches, I have found this quote from Rob to the effect that
>>>
>>> "My suggestion (which is rarely popular <smile/>) is to just do the 
>>> right
>>> thing
>>> the first time and save yourself the time you'll spend later trying to
>>> manage
>>> the InstallUtil hack."
>>>
>>> I accept this and want to do the right thing. Problem is, I'm not
>>> clear on
>>> what
>>> the right thing is... I'm trying to repackage an installer a co-worker
>>> built
>>> with VS.NET because there's some manual setup that needs to be automated
>>> once
>>> it's been installed. Unfortunately, it's got a number of .NET assemblies
>>> that
>>> need to be installed (of which one or more are services), and VS.NET 
>>> uses
>>> the
>>> InstallUtil hack.
>>>
>>> How would one go about doing the "right thing" in this situation? Is 
>>> this
>>> a
>>> matter of having to know how to write .NET code that plays nice with
>>> Windows
>>> Installer? How would one use the ServiceInstall and ServiceControl
>>> elements on
>>> .NET assemblies instead of InstallUtil? Is that even possible?
>>>
>>> I don't mean to come off as rude here... I just can't seem to formulate
>>> the
>>> correct Google search to get at this information. Even pointers on where
>>> to look
>>> for the information would be useful... And as always, I greatly
>>> appreciate
>>> any
>>> help you all could provide.
>>>
>>> -- 
>>> -- 
>>>
>>> Eric Fesh
>>> Customer Support Engineer/Software Test Engineer
>>> Verari Systems Software, Inc.
>>> 110 12th Street North, Suite D103
>>> Birmingham, AL 35203
>>> Phone +1-205-397-3141 ext. 3149
>>> Fax +1-205-397-3142
>>> [EMAIL PROTECTED]
>>> http://www.verarisoft.com/
>>>
>>> The information contained in this communication may be confidential
>>> and is
>>> intended only for the use of the recipient(s) named above.  If the 
>>> reader
>>> of
>>> this communication is not the intended recipient(s), you are hereby
>>> notified
>>> that any dissemination, distribution, or copying of this
>>> communication, or
>>> any of its contents, is strictly prohibited.  If you are not a named
>>> recipient or received this communication by mistake, please notify the
>>> sender
>>> and delete the communication and all copies of it.
>>>
>>> -------------------------------------------------------------------------
>>> 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 


-------------------------------------------------------------------------
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