For general use questions, please contact wix-users mailing list. This list is 
for the development of the WiX toolset itself.

_______________________________________________________________
FireGiant  |  Dedicated support for the WiX toolset  |  
http://www.firegiant.com/


From: Joseph Larson [mailto:joealar...@gmail.com]
Sent: Wednesday, October 29, 2014 9:52 AM
To: wix-devs@lists.sourceforge.net
Subject: [WiX-devs] Problems writing an installer for ActiveMQ

So our company needs an installer for ActiveMQ to go with our app that uses
ActiveMQ. Only thing is ActiveMQ doesn't have an installer, just a "copy
these files here, run this batch file, then start the service" set of
instructions. So my first wix project is writing writing an installer for
someone else's app who can't be bothered to make their own. At least it's an
easy set of instructions.

Copying the file was easy enough, but I'm stuck on the running the batch
file step. The fragment to run InstallService.bat looks like this:

        <Fragment>
                <Property Id="QtExecCmdLine" Value="unset"/>
                <CustomAction Id="CA_InstallActiveMQService_Property"
Property="QtExecCmdLine" Value='"[INSTALL_Win64_FOLDER]InstallService.bat"'
Execute="immediate" />
                <CustomAction Id="CA_InstallActiveMQService" BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="immediate" Return="ignore"/>
                <InstallExecuteSequence>
                        <Custom Action="CA_InstallActiveMQService_Property"
Before="InstallServices">NOT Installed</Custom>
                        <Custom Action="CA_InstallActiveMQService"
After="CA_InstallActiveMQService_Property"></Custom>
                </InstallExecuteSequence>
        </Fragment>

When I run it the files are moved over right, but the service isn't
installed and the log for this step says:

MSI (s) (B8:E0) [14:18:53:853]: Doing action:
CA_InstallActiveMQService_Property
MSI (s) (B8:E0) [14:18:53:853]: Note: 1: 2205 2:  3: ActionText
Action 14:18:53: CA_InstallActiveMQService_Property.
Action start 14:18:53: CA_InstallActiveMQService_Property.
MSI (s) (B8:E0) [14:18:53:854]: PROPERTY CHANGE: Modifying QtExecCmdLine
property. Its current value is 'unset'. Its new value:
'"d:\biomerieux\programs\gene-up\activeMQ\bin\Win64\InstallService.bat"'.
Action ended 14:18:53: CA_InstallActiveMQService_Property. Return value 1.
MSI (s) (B8:E0) [14:18:53:854]: Doing action: CA_InstallActiveMQService
MSI (s) (B8:E0) [14:18:53:854]: Note: 1: 2205 2:  3: ActionText
Action 14:18:53: CA_InstallActiveMQService.
Action start 14:18:53: CA_InstallActiveMQService.
MSI (s) (B8:48) [14:18:53:859]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSIE669.tmp, Entrypoint: CAQuietExec
MSI (s) (B8:60) [14:18:53:860]: Generating random cookie.
MSI (s) (B8:60) [14:18:53:863]: Created Custom Action Server with PID 2324
(0x914).
MSI (s) (B8:80) [14:18:54:715]: Running as a service.
MSI (s) (B8:80) [14:18:54:730]: Hello, I'm your 32bit Impersonated custom
action server.
MSI (s) (B8!10) [14:18:54:746]: PROPERTY CHANGE: Deleting QtExecCmdLine
property. Its current value is
'"d:\biomerieux\programs\gene-up\activeMQ\bin\Win64\InstallService.bat"'.
CAQuietExec:  Error 0x80070002: *Command failed to execute.*
CAQuietExec:  Error 0x80070002: *CAQuietExec Failed*
CustomAction CA_InstallActiveMQService returned actual error code 1603 but
will be translated to success due to continue marking

I am trying this thing from every angle I can and getting all the help I can
and I just can't figure this out.

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

Reply via email to