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 "[WixBundleName]"" RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]"" UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]"" 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