Use Burn to install the prerequisites.  There is no proper way of doing a 
nested/concurrent install from within a single MSI.

Concurrent Installs - 
https://msdn.microsoft.com/en-us/library/aa368010%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
Windows Installer Best Practices - 
https://msdn.microsoft.com/en-us/library/windows/desktop/bb204770(v=vs.85).aspx


-----Original Message-----
From: Sarvagya Pant [mailto:sarvagya.p...@gmail.com] 
Sent: Tuesday, February 24, 2015 10:58 PM
To: General discussion about the WiX toolset.
Subject: [WiX-users] Installing the Visual Studio Redistributable from within 
MSI Failing

I am attempting to install the dependency of my program
*vcredist_x86_2008.exe* and *vcredist_x86_2010.exe* from my msi before it 
attempts to install the program itself. I have following piece of code.

<Binary Id="SetupCA"
SourceFile="..\..\ext_library\SetupCA\SetupCA\bin\Release\SetupCA.CA.dll"/><Binary
Id="VCREDIST_2008_FILE"
SourceFile="..\..\ext_library\vcredist_x86_2008.exe" /><Binary 
Id="VCREDIST_2010_FILE"
SourceFile="..\..\ext_library\vcredist_x86_2010.exe" /><CustomAction 
Id="VCREDIST_2008" BinaryKey="VCREDIST_2008_FILE" ExeCommand="/q:a"
Execute="immediate" Return="check" /><CustomAction Id="VCREDIST_2010"
BinaryKey="VCREDIST_2010_FILE" ExeCommand="/q /norestart"
Execute="immediate" Return="check" /><CustomAction Id="WRITEFILETODISK" 
Execute="immediate" BinaryKey="SetupCA"
DllEntry="WriteFileToDisk" /><CustomAction Id="ResidueRemove"
Execute="immediate" BinaryKey="SetupCA" DllEntry="DeleteResidue"
/><InstallExecuteSequence>
  <Custom Action="WRITEFILETODISK" Before="InstallFinalize">NOT 
Installed</Custom>
  <Custom Action="ResidueRemove" After="InstallFinalize">Installed</Custom>
  <Custom Action="VCREDIST_2008" Before="CostInitialize">NOT Installed</Custom>
  <Custom Action="VCREDIST_2010" Before="CostInitialize">NOT 
Installed</Custom></InstallExecuteSequence>

I have two other custom actions *WRITEFILETODISK*, which will get the 
parameters passed to installer and write config in file, and *ResidueRemove* 
that is to be run on uninstallation, which has to remove leftovers if any.
Installing the msi using /l*v mode, I get the following:

Error 1721. There is a problem with this Windows Installer package. A program 
required for this install to complete could not be run.
Contact your support personnel or package vendor. Action:
VCREDIST_2008, location: C:\Windows\Installer\MSIA422.tmp, command:
/q:a
    MSI (s) (D8:30) [10:14:20:867]: Note: 1: 2205 2:  3: Error
    MSI (s) (D8:30) [10:14:20:867]: Note: 1: 2228 2:  3: Error 4:
SELECT `Message` FROM `Error` WHERE `Error` = 1709
    MSI (s) (D8:30) [10:14:20:867]: Product: LogPointAgent -- Error 1721. There 
is a problem with this Windows Installer package. A program required for this 
install to complete could not be run.
Contact your support personnel or package vendor. Action:
VCREDIST_2008, location: C:\Windows\Installer\MSIA422.tmp, command:
/q:a

Isn't this the proper way of installing another exe from msi? please correct it 
if I'm wrong.

--
*sarvagya*
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and 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

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and 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