Hi all,

I have a problem which I cannot figure out - I created a bundle using WiX 3.6 
(build 2803).
The UI is a WPF component so I had to request the install of .NET Framework 3.5 
for this (UI modified from WiX installer UI - WixBA - changed target framework 
to 3.5).
The bundle fails to install the framework and I can't find figure which is the 
reason for this.
Can you give me some ideas about what could be wrong ?
I am trying to install it on a virtual machine which runs Windows XP 
Professional SP2. On some machines with Win7 the bundle installs correctly (but 
here the 3.5 framework is already installed).
dotnetfx35.exe included in the build is the full setup for the framework (not 
the bootstrapper).

Also, as I side problem for this - the .NET Framework 3.5 setup requires at 
least Windows Installer 3.1, which is not installed with XP SP2.
I manually installed Windows Installer 4.5  before attempting to install the 
bundle with the framework.
How can I solve this for a final bundle (how can I install Windows Installer 
4.5, then .NET Framework 3.5 so the UI gets a chance to run ?).

Code in the bundle and UI stuff as below.
Bundle:
    <Bundle Version="1.0.0.0" Name="... Bundle" 
UpgradeCode="{4F56AB12-BF24-4DA1-BC14-CF150091A761}" 
IconSourceFile='Support\....ico'>

        <BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'>
            <Payload Name='BootstrapperCore.config' 
SourceFile='$(var.BootstrapperSourceUI)\WixBA.BootstrapperCore.config' />
            <Payload SourceFile='$(var.BootstrapperSourceUI)\WixBA.dll'/>
        </BootstrapperApplicationRef>

        <WixVariable Id='WixMbaPrereqPackageId' Value="Netfx35" />
        <WixVariable Id='WixMbaPrereqLicenseUrl' Value='ignored' />

        <Chain>
            <!--.NET Framework 3.5-->
            <PackageGroupRef Id="Netfx35"/>
            
            <!--other packages here-->
        </Chain>
    </Bundle>

        <!--check if .NET Framework 3.5 is installed-->
        <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework 
Setup\NDP\v3.5" Value="Version" Variable="Netfx35Version" Result="exists" />

        <PackageGroup Id="Netfx35">
            <ExePackage Cache="no" Compressed="no" PerMachine="yes" 
Permanent="yes" Vital="yes" 
                       Name="Prerequisites\dotnetfx35.exe"
                    
SourceFile="$(var.BootstrapperSourcePrerequisites)\dotnetfx35.exe"
                
DownloadUrl="http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe";
                    InstallCommand="/q /norestart /lang:ENU"
                    RepairCommand="/q /norestart /lang:ENU"
                    UninstallCommand="/q /norestart /lang:ENU"
                    InstallCondition="NOT Netfx35Version"
                    DetectCondition="Netfx35Version">
                <ExitCode Value ="3010" Behavior="forceReboot" />
            </ExePackage>
        </PackageGroup>


WixBA.BootstrapperCore.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="wix.bootstrapper" 
type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperSectionGroup,
 BootstrapperCore">
            <section name="host" 
type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.HostSection, 
BootstrapperCore" />
        </sectionGroup>
    </configSections>
    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v2.0.50727" />
    </startup>
    <wix.bootstrapper>
        <host assemblyName="WixBA">
            <supportedFramework version="v3.5" />
        </host>
    </wix.bootstrapper>
</configuration>

Please let me know if you need some other data about this...

See below the bundle log entries which have something to do with my problem:
I don't see any attempt to install the framework in the log file...

Thanks for any hints.


[04C0:0208][2012-07-16T16:53:16]: Burn v3.6.2803.0, Windows v5.1 (Build 2600: 
Service Pack 2), path: \\...\Public\chainer\Setup.exe, cmdline: ''
...
[04C0:0208][2012-07-16T16:53:16]: Loading prerequisite bootstrapper application 
because managed host could not be loaded, error: 0x80070490.
[04C0:0208][2012-07-16T16:53:16]: Detect 1 packages
...
[04C0:0208][2012-07-16T16:53:16]: Registry key not found. Key = 
'SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.5'
[04C0:0208][2012-07-16T16:53:16]: Setting numeric variable 'Netfx35Version' to 
value 0
...
[04C0:0208][2012-07-16T16:53:16]: Condition 'Netfx35Version' evaluates to false.
[04C0:0208][2012-07-16T16:53:16]: Detected package: dotnetfx35.exe, state: 
Absent, cached: None
[04C0:0208][2012-07-16T16:53:16]: Detect complete, result: 0x0
[04C0:0208][2012-07-16T16:53:17]: Plan 1 packages, action: Install
[04C0:0208][2012-07-16T16:53:17]: Condition 'NOT Netfx35Version' evaluates to 
true.
[04C0:0208][2012-07-16T16:53:17]: Skipping dependency registration on package 
with no dependency providers: dotnetfx35.exe
[04C0:0208][2012-07-16T16:53:17]: Planned package: dotnetfx35.exe, state: 
Absent, default requested: Present, ba requested: None, execute: None, 
rollback: None, cache: No, uncache: No, dependency: None
[04C0:0208][2012-07-16T16:53:17]: Plan complete, result: 0x0
[04C0:0208][2012-07-16T16:53:17]: Apply begin
[04CC:06B4][2012-07-16T16:53:19]: Creating a system restore point.
[04CC:06B4][2012-07-16T16:53:20]: Created a system restore point.
[04CC:06B4][2012-07-16T16:53:20]: Caching bundle from: 
'C:\DOCUME~1\...\LOCALS~1\Temp\{72599d17-5f3a-48ec-9fab-cac29802a4d2}\.be\Setup.exe'
 to: 'C:\Documents and Settings\All Users\Application Data\Package 
Cache\{72599d17-5f3a-48ec-9fab-cac29802a4d2}\Setup.exe'
[04CC:06B4][2012-07-16T16:53:22]: Registering bundle dependency provider: 
{72599d17-5f3a-48ec-9fab-cac29802a4d2}, version: 1.0.0.0
[04C0:0208][2012-07-16T16:53:23]: Apply complete, result: 0x0, restart: None, 
ba requested restart:  No
[04C0:0208][2012-07-16T16:53:23]: Shutting down, exit code: 0x0
[04C0:0208][2012-07-16T16:53:23]: The prerequisites were not successfully 
installed, error: 0x0. The bootstrapper application will be not reloaded.
...
[04C0:0208][2012-07-16T16:53:23]: Variable: Netfx35Version = 0
...
[04C0:0208][2012-07-16T16:53:23]: Variable: WixBundleAction = 4
[04C0:0208][2012-07-16T16:53:23]: Variable: WixBundleElevated = 1
[04C0:0208][2012-07-16T16:53:23]: Variable: WixBundleInstalled = 0
[04C0:0208][2012-07-16T16:53:23]: Variable: WixBundleLog = 
C:\DOCUME~1\...\LOCALS~1\Temp\..._Bundle_20120716165316.log
[04C0:0208][2012-07-16T16:53:23]: Variable: WixBundleName = ... Bundle
[04C0:0208][2012-07-16T16:53:23]: Variable: WixBundleOriginalSource = 
\\...\Public\chainer\Setup.exe
[04C0:0208][2012-07-16T16:53:23]: Variable: WixBundleProviderKey = 
{72599d17-5f3a-48ec-9fab-cac29802a4d2}
[04C0:0208][2012-07-16T16:53:23]: Variable: WixBundleTag = 
[04C0:0208][2012-07-16T16:53:23]: Exit code: 0x0, restarting: No
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to