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

Reply via email to