I trying to create simple bundle which will install .Net 4.0 before
installing my own msi package.
Of course .Net 4.0 should not be installed if it is already on the target
machine. Unfortunately during my testing i found my bundle shows "Microsoft
.NET Framework required for application setup" message even on machine with
.NET 4.0 installed. I checked registry location <util:RegistrySearch
Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full"
Value="Version" Variable="Netfx4FullVersion" /> where burn should search for
.Net version and it contains 4.0.30319 value. After that i checked
ExePackage/@DetectCondition and it also looks right.
Now i don't know what else i could check.
My project contains 3 files:
make.bat - build script
bundle.wxs - bundle itself
netfx.wxs - .Net PackageGroup copied from WiX 3.6 sources
(\wix36-2116-sources\src\Setup\Bundle\Netfx.wxs ).

make.bat does trivial things:

set path=e:\wix36-2116;%path%
candle.exe bundle.wxs netfx.wxs -ext WixBalExtension -ext WixUtilExtension
light.exe bundle.wixobj netfx.wixobj -ext WixBalExtension -ext
WixUtilExtension -out setup-ecrarch.exe

bundle.wxs has following content:

<?xml version='1.0' encoding='utf-8'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'
     xmlns:bal='http://schemas.microsoft.com/wix/BalExtension'
     xmlns:util='http://schemas.microsoft.com/wix/UtilExtension'>

    <Bundle Name='ecrarch application' Manufacturer='Microsoft Corporation'
            Version='1.0.0'
UpgradeCode='F055B442-9907-4E38-9B54-D6AAE5D71E13'
            IconSourceFile='ProjectFile.ico'
SplashScreenSourceFile='SplashScreen.bmp'
            AboutUrl='http://wixtoolset.org' UpdateUrl='
http://wix.sourceforge.net/releases/wix3.6.feed'>

        <BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'>
          <Payload SourceFile='License.rtf' />
          <Payload SourceFile='NetfxLicense.rtf' />
        </BootstrapperApplicationRef>

        <Chain DisableRollback='yes'>
            <PackageGroupRef Id='Netfx4Full' />

            <MsiPackage Id='ecrarch' Compressed='no' Vital='yes'
                        DownloadUrl='http://wix.sourceforge.net/releases/{2}
'
                        Name='data\ecrarch.msi' SourceFile='ecrarch.msi' />
        </Chain>
    </Bundle>

</Wix>

netfx.wxs has following content:

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="
http://schemas.microsoft.com/wix/UtilExtension";>
    <Fragment>
        <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
        <WixVariable Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" />

        <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net
Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx4FullVersion" />
        <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net
Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx4x64FullVersion"
Win64="yes" />

        <PackageGroup Id="Netfx4Full">
            <ExePackage Id="Netfx4Full" Cache="no" Compressed="no"
PerMachine="yes" Permanent="yes" Vital="yes"
SourceFile="dotNetFx40_Full_x86_x64.exe"
                        DownloadUrl="
http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe
"
                        DetectCondition="Netfx4FullVersion AND (NOT
VersionNT64 OR Netfx4x64FullVersion)" />

            <!-- ExePackage Id="Netfx4x86" DownloadUrl="
http://download.microsoft.com/download/5/6/4/5641DA81-E6FA-4550-9F80-A1D862D9CFAA/dotNetFx40_Full_x86.exe";
Compressed="no" PerMachine="yes" Permanent="yes"
SourceFile="dotNetFx40_Full_x86.exe" / -->
        </PackageGroup>
    </Fragment>
</Wix>

Please help me find solution for this problem.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to