http://wix.sourceforge.net/manual-wix3/install_dotnet.htm

<Chain>
  <PackageGroupRef Id="NetFx40ClientRedist"/>
  ...your msi stuff goes here...
</Chain>

End.

Yes it's that simple using WiXNetFXExtension. All the extra code you have is 
just duplicating effort & causing you problems.

Palbinder Sandher 
Software Platform Engineer 
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501
http://www.iesve.com 

**Design, Simulate + Innovate with the <Virtual Environment>** 
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 
0SP
Email Disclaimer 

-----Original Message-----
From: Ogrodowski, Sabine (ehem. Frauenhoffer) 
[mailto:sabine.ogrodow...@haufe-lexware.com] 
Sent: 12 February 2013 15:13
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Bundle registered in ARP after prerequesites are installed

When we install our bundle on a machine that has no .Net 4 installed, it gets 
installed by the prerequisites installer. Afterwards our custom bootstrapper 
starts up, and the wix variable WixBundleInstalled is 0, which is correct. 
Unfortunately at this point there already exists an entry for our bootstrapper 
in ARP. So when we cancel installation and restart our bootstrapper, 
WixBundleInstalled returns 1 and we start in maintenance mode, although our 
bundle isn't installed.

 

Here is what I use to install .net 4:

  <Fragment>

    <util:RegistrySearchRef Id="NETFRAMEWORK40CLIENT"/>

 

    <?define NetFx40EulaLink =
http://go.microsoft.com/fwlink/?LinkID=188993 ?>

 

    <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx40Client" />

    <WixVariable Id="WixMbaPrereqLicenseUrl"
Value="$(var.NetFx40EulaLink)" />

 

    <PackageGroup Id="NetFx40Client">

      <ExePackage

          InstallCommand="/q /norestart /ChainingPackage 
&quot;[WixBundleName]&quot;"

          RepairCommand="/q /norestart /repair /ChainingPackage 
&quot;[WixBundleName]&quot;"

          UninstallCommand="/uninstall /q /norestart /ChainingPackage 
&quot;[WixBundleName]&quot;"

          PerMachine="yes"

          DetectCondition="NETFRAMEWORK40CLIENT"

          Id="NetFx40Client"

          Vital="yes"

          Permanent="yes"

          Protocol="netfx4"

          Compressed="no"

          Cache="no"

          SourceFile="..\dotnet_4_0\dotNetFx40_Client_x86_x64.exe"

          Name="data\dotnet\dotNetFx40_Client_x86_x64.exe">

      </ExePackage>

    </PackageGroup>

  </Fragment>

 

What would I have to change to get this scenario to work?

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 and get the 
hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to