Thanks, this led me to the correct answer for me: http://sourceforge.net/projects/jslwin/
Hopefully it works for anyone else trying to do the same thing! Alain -----Original Message----- From: Christopher Painter [mailto:chr...@iswix.com] Sent: February 18, 2013 12:37 To: General discussion for Windows Installer XML toolset.; afor...@cmu.edu; General discussion for Windows Installer XML toolset.; Phil Wilson Subject: Re: [WiX-users] Service not starting See Java Service Wrapper: http://wrapper.tanukisoftware.com/doc/english/introduction.html ________________________________ From: "Castro, Edwin G. (Hillsboro)" <edwin.cas...@fiserv.com> Sent: Monday, February 18, 2013 10:54 AM To: "afor...@cmu.edu" <afor...@cmu.edu>, "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net>, "Phil Wilson" <phil.wil...@mvps.org> Subject: Re: [WiX-users] Service not starting Services in Windows are not background processes. They are processes that support a very specific API for service management (Start/Stop/Suspend/Resume/etc). My gut says that the java VM doesn't natively support that API which is going to cause problems when the system tells the "service" to start. Searching for java windows service on Google yielded a number of results that say you'll need to use a wrapper to execute your java app as a windows service. Edwin G. Castro Software Developer - Staff Digital Channels Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com > -----Original Message----- > From: Alain Forget [mailto:afor...@cmu.edu] > Sent: Sunday, February 17, 2013 1:05 PM > To: 'Phil Wilson'; 'General discussion for Windows Installer XML toolset.' > Subject: Re: [WiX-users] Service not starting > > The batch file starts several java programs, like this: > > start java -cp Dependencies1.jar ClassToRun1.class start java -cp > Dependencies2.jar ClassToRun2.class start java -cp Dependencies3.jar > ClassToRun3.class > > Although this is kind of getting out of the realm of WiX, how would > you recommend I start the Java programs as services (since I want to > make sure they run when the computer starts up and are very much in > the background)? > > Thanks, > Alain > > -----Original Message----- > From: Phil Wilson [mailto:phil.wil...@mvps.org] > Sent: February 17, 2013 13:58 > To: afor...@cmu.edu; 'General discussion for Windows Installer XML > toolset.' > Subject: RE: [WiX-users] Service not starting > > You have a .bat file for the name - that doesn't seem correct to me. > The ServiceInstall table in an MSI file requires a service executable. > > Phil > > -----Original Message----- > From: Alain Forget [mailto:afor...@cmu.edu] > Sent: Sunday, February 17, 2013 7:36 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Service not starting > > Hi all, > > Our installer creates and tries to start a service, but it fails to > start with the following error message: > > "Service 'My Service' (MyService) failed to start. Verify that you > have sufficient privileges to start system services." > > However, before files begin to be installed, the UAC prompts the user > for permission to make system changes, which we believe is invoked by > the following statement in our .wxs: > > <Condition Message="This installer requires administrator privileges > to run."> Privileged OR AdminUser </Condition> > > Here are the service-related statements: > > <Component Id='compMyService' Guid='XXXXXXXX-XXXX-XXXX-XXXX- > XXXXXXXXXXXX'> <File Id='fileMyService' Name='MyService.bat' > DiskId='1' > Source='MyService.bat' KeyPath='yes' /> <ServiceInstall Id="MyService" > Account="LocalSystem" > Description="Runs my sensor service" > DisplayName="My Service" > ErrorControl="ignore" > Interactive="no" > Name="MyService" > Start="auto" > Type="ownProcess" > Vital="yes" > > > </ServiceInstall> > > <ServiceControl > Id="StartService" > Name="MyService" > Remove="uninstall" > Start="install" > Stop="both" > Wait="yes" > /> > </Component> > > So any thoughts on why our service doesn't start? We haven't found > anything that seemed relevant searching the internet, so any ideas > would be most appreciated. > > Thanks, > Alain > > > ---------------------------------------------------------------------- > ------ > -- > The Go Parallel Website, sponsored by Intel - in partnership with > Geeknet, is your hub for all things parallel software development, > from weekly thought leadership blogs to news, videos, case studies, > tutorials, tech docs, whitepapers, evaluation guides, and opinion > stories. Check out the most recent posts - join the conversation now. > http://goparallel.sourceforge.net/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ---------------------------------------------------------------------- > -------- The Go Parallel Website, sponsored by Intel - in partnership > with Geeknet, is your hub for all things parallel software > development, from weekly thought leadership blogs to news, videos, > case studies, tutorials, tech docs, whitepapers, evaluation guides, > and opinion stories. Check out the most recent posts - join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users