Classification: Public
Try this

<?define NetFx452MinRelease = 379893 ?>

<Chain>
      <PackageGroupRef Id="Netfx452Full"/>

<!-- Check for .NET 4.52 -->
    <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx452Full" />
    <util:RegistrySearchRef Id="NETFRAMEWORK45"/>

    <PackageGroup Id="Netfx452Full">
      <ExePackage
        Id="Netfx4Full"
        DisplayName="Microsoft .NET Framework 4.52"
        Cache="no"
        Compressed="no"
        PerMachine="yes"
        Permanent="yes"
        Protocol="none"
        Vital="yes"
        
SourceFile="$(var.scSourcePath)\PreReqs\NDP452-KB2901907-x86-x64-AllOS-ENU.exe"
        Name="RedistServerAC\NDP452-KB2901907-x86-x64-AllOS-ENU.exe"
        InstallCommand="/passive /norestart"
        DetectCondition="NETFRAMEWORK45 &gt;= $(var.NetFx452MinRelease)" />
    </PackageGroup>

Where $(var.scSourcePath) is an env var

Steve

-----Original Message-----
From: Simon Palmer [mailto:s.pal...@acquire.com.au]
Sent: May-26-15 5:29 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Optionally package the .NET Framework

Hi,

I'm trying to package the .Net 4.5.2 redistributable into my burn application, 
by following the instructions in the documentation.
(http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_dotnet.html)

But it fails to find the .Net installer in the temporary location.

According to the log files burn tries to find the file here:

    [0A14:09C4][2015-05-12T16:48:52]w343: Prompt for source of package: 
NetFx452Redist, payload: NetFx452Redist, path: 
`C:\Users\simon\Desktop\redist\NDP452-KB2901907-x86-x64-AllOS-ENU.exe`

But the payload puts the file in a location like this:

    
C:\Users\simon\AppData\Local\Temp\{f5207472-d2a0-4b00-b9ee-c535385bde58}\redist\NDP452-KB2901907-x86-x64-AllOS-ENU.exe

The documentation say to do this:

    <PayloadGroup Id="NetFx452RedistPayload">
      <Payload Name="redist\NDP452-KB2901907-x86-x64-AllOS-ENU.exe"
               
SourceFile="..\..\Binaries\Microsoft\NetFramework\4.5.2\NDP452-KB2901907-x86-x64-AllOS-ENU.exe"/>
    </PayloadGroup>

How can I make Burn look in the correct location for the .net installer?

Thanks,
Simon

Simon Palmer
Principal Engineer

acQuire Technology Solutions Pty Ltd
T:  +61 8 9316 6600
F:  +61 8 9316 6699
E:  s.pal...@acquire.com.au
W: acquire.com.au

24 Moreau Mews, Applecross, Western Australia 6153 | PO Box 933, Canning 
Bridge, Western Australia 6153

AUSTRALIA | BRAZIL | CANADA | CHILE | SOUTH AFRICA | UNITED KINGDOM

This email (including all attachments) is the sole property of acQuire 
Technology Solutions Pty Ltd and may be confidential. If you are not the 
intended recipient, you must not use or forward the information contained in 
it. This message may not be reproduced or otherwise republished without the 
written consent of the sender. If you have received this message in error, 
please delete the email and notify the sender. To view our Privacy Policy 
please click here<http://www.acquire.com.au/acquire_privacy_policy.pdf>.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud Widest 
out-of-the-box monitoring support with 50+ applications Performance metrics, 
stats and reports that give you Actionable Insights Deep dive visibility with 
transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

 



 
This message has been marked as Public by Steven Ogilvie on May-26-15 8:03:33 
AM.

The above classification labels were added to the message by TITUS Message 
Classification. 
For more information visit www.titus.com.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to