Recursive MSI installs don't work (an oversimplification, but a complete
explanation is too complex). General approaches are to use Burn to install
them separately, or to have one be a prerequisite for the other.  This
restriction is why VC Redist runtimes and other MSI-based setups are never
run from custom actions. 
Phil  

-----Original Message-----
From: StevenOgilvie [mailto:sogil...@msn.com] 
Sent: Monday, September 10, 2012 9:51 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] running a msi via a custom action...

I am trying to run a MSI that I have installed onto the desktop (via a
custom
action) but I get  a MSI error 1603.
I have run the code via a cmd line after the install has finished and it
works properly, I just don't understand why it doesn't work via the custom
action??

CustomAction:
<CustomAction Id="SetRunSynchronization" Property="RunSynchronizationInst"
Value="&quot;msiexec.exe&quot; /i &quot;C:\Program Files
(x86)\TITUS\Gloria\Services\Synchronization-v2.1-$(var.Platform)-ENU.msi&quo
t;"
Execute="immediate"/>
    <CustomAction Id="RunSynchronization" Impersonate="no" BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="deferred" Return="asyncWait" />
    <UI>
      <ProgressText Action="RunSynchronization">Installing
Synchronization-v2.1-$(var.Platform)-ENU.msi...</ProgressText>
    </UI>

Install execute sequence:
<InstallExecuteSequence>
      <Custom Action="SetRunSynchronization" After="CostInitialize">NOT
Installed</Custom>
      <Custom Action="RunSynchronization" Before="InstallFinalize">NOT
Installed</Custom>

Error in MSI:
MSI (s) (40:DC) [12:39:50:228]: PROPERTY CHANGE: Adding
RunSynchronizationInst.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7 property. Its
value is '"msiexec.exe" /i "C:\Program Files
(x86)\TITUS\Gloria\Services\Synchronization-v2.1-x86-ENU.msi"'.

MSI (s) (40:DC) [12:39:51:102]: Doing action:
RunSynchronization.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7
Action 12:39:51: RunSynchronization.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7.
Installing Synchronization-v2.1-x86-ENU.msi...
Action start 12:39:51:
RunSynchronization.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7.
1: Installing Synchronization-v2.1-x86-ENU.msi... 
Action ended 12:39:51:
RunSynchronization.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7. Return value 1.

MSI (s) (40:DC) [12:40:21:756]: Executing op:
ActionStart(Name=RunSynchronization.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7,Des
cription=Installing
Synchronization-v2.1-x86-ENU.msi...,)
Action 12:40:21: RunSynchronization.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7.
Installing Synchronization-v2.1-x86-ENU.msi...
MSI (s) (40:5C) [12:40:21:757]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSI3E11.tmp, Entrypoint: CAQuietExec MSI (s) (40:DC)
[12:40:21:758]: Executing op:
CustomActionSchedule(Action=RunSynchronization.CA23A0DC_B2DE_4F2C_9E74_FD373
F99E9D7,ActionType=3201,Source=BinaryData,Target=CAQuietExec,)
MSI (s) (40!98) [12:40:21:759]: Creating MSIHANDLE (1473) of type 790531 for
thread 8600
CAQuietExec:  Error 0x80070057: failed to get command line data MSI (s)
(40!98) [12:40:21:759]: Closing MSIHANDLE (1473) of type 790531 for thread
8600 MSI (s) (40!98) [12:40:21:759]: Creating MSIHANDLE (1474) of type
790531 for thread 8600
CAQuietExec:  Error 0x80070057: failed to get Command Line MSI (s) (40!98)
[12:40:21:759]: Closing MSIHANDLE (1474) of type 790531 for thread 8600
CustomAction RunSynchronization.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7
returned actual error code 1603 (note this may not be 100% accurate if
translation happened inside sandbox)
1: RunSynchronization.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7 2: 1603

Thanks,

Steve




--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/running-a-msi-
via-a-custom-action-tp7580398.html
Sent from the wix-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will
include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to