Actually, in this case, it's failing because the CustomAction is trying to run 
*long* before the files are installed.  The CustomAction would need to be 
deferred and scheduled after InstallFiles to launch successfully.  *Then* it 
would hit the problem Jim notes below.  <smile/>

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Williams
Sent: Thursday, May 08, 2008 13:04
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Problem when trying to install .NET framwork 2.0 
duringMSI install , plz any idea

It is probably failing because you are trying to invoke an installer when an 
installer is already running.  You need to install separate installers 
sequentially, not from within one another.  You would need a bootstrapper to do 
that.

Jim

________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of mounir mds
Sent: Thursday, May 08, 2008 8:52 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem when trying to install .NET framwork 2.0 duringMSI 
install , plz any idea

hello All ,
i am using Wix 2 , and  i try to do a test on the version of .net framwork if 
is is lower then 2.0.50727 , i 'll install it during the msi install her is my 
code


here is some parts of my wxs file
<Directory Id="dotnet" Name="dotnet">
              <Component Id="dotnet" DiskId="1" 
Guid="58E34A31-44B9-46E2-9AF7-40AB28A18168">
                <File Id="dotnetfx.exe" Name="dotnetfx.exe" 
Source="dotnet\dotnetfx.exe" DiskId="1" />
              </Component>
</Directory>


<CustomAction Id="InstallDotNet" FileKey="dotnetfx.exe" ExeCommand="/Q" 
Return="ignore" Execute="commit"/>
 <InstallExecuteSequence>
      <!--
      <Custom Action="InstallDotNet" Sequence="1 " ><![CDATA[ 
MsiNetAssemblySupport >= "2.0.50727" ]]> </Custom>
          -->
      <Custom Action="InstallDotNet" Sequence="1"> </Custom>
   </InstallExecuteSequence>


and log file   :

Action start 15:48:13: InstallDotNet.
DEBUG: Error 2731:  Selection Manager not initialized.
The installer has encountered an unexpected error installing this package. This 
may indicate a problem with this package. The error code is 2731. The arguments 
are: 0, ,
MSI (s) (BC:D4) [15:48:16:897]: Product: IpDesktopSoftPhone v2.0.8   -- The 
installer has encountered an unexpected error installing this package. This may 
indicate a problem with this package. The error code is 2731. The arguments 
are: 0, ,

Action ended 15:48:16: InstallDotNet. Return value


Thanks in advance

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to