If services are all you need to worry about then you're in great shape. Just delete all the .NET Installer based classes that are installing your service now and replace it with WiX that looks something like this:
<Component Id="YourApp" Guid="3CB5599B-5FD8-4e34-8805-9EA171A472B3" Win64="no"> <File Id="YourAppEXE" Name="YOURAPP.EXE" LongName="YourApp.exe" src="..\YourApp.exe" Vital="yes" KeyPath="yes" AssemblyManifest="YourAppEXE" AssemblyApplication="YourAppEXE" Assembly=".net" DiskId="1" /> <ServiceInstall Id="YourAppService" Description="Your app description." EraseDescription="no" DisplayName="Your App" ErrorControl="normal" Interactive="no" Name="YourApp" Start="auto" Type="ownProcess" Vital="yes"> <ServiceConfig FirstFailureActionType="restart" SecondFailureActionType="restart" ThirdFailureActionType="none" RestartServiceDelayInSeconds="60" ResetPeriodInDays="1" /> </ServiceInstall> <ServiceControl Id="YourAppServiceControl" Name="YourApp" Start="install" Stop="both" Remove="uninstall" Wait="no" /> </Component> > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Eric Fesh > Sent: Friday, August 25, 2006 12:26 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] InstallUtil considered harmful... What next? > > 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