You need 2 projects. You have 2 outputs, an MSI & a Burn executable which wraps
the MSI and deals with your pre-reqs. You can configure your burn package not
to register itself or to not register your MSI. See the Burn documentation ->
http://wix.sourceforge.net/manual-wix3/authoring_bundle_intro.htm
BTW all that extra code Steven posted is completely superfluous. All you
literally need in your Burn bundle XML is
<Chain>
<PackageGroupRef Id=" Netfx4Full"/>
...your msi stuff goes here...
</Chain>
As WiXNetFxExtension has all the authoring required to do all the checks &
downloading etc. (and has been checked & tested by everyone who uses it on a
daily basis).
Personally I use
<PackageGroupRef Id="NetFx40ClientRedist"/>
because I hate those 'on-demand' installer bundle things.
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: Sam Boman [mailto:[email protected]]
Sent: 12 February 2013 14:29
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Install Prerequisites (.NET Framework)
Thanks Steven,
I try to get it to work.
Also a question regarding, how to arrange things.
I have two projects, one that gives me a MSI as output, Its just plain
msi-file, no check for .NET framework. The other is a Bootstrapper Project, it
hava a reference to the MSI-project.
Is this the best way to do it? Or can I keep it in one project? How?
Otherwise I seems to end up with two products / versions, one inner and one
outer?
Br,
Sam
On Tue, Feb 12, 2013 at 3:10 PM, Steven Ogilvie <[email protected]>wrote:
> You can have a copy of .NET with your package OR use the DownloadUrl=""
> element within the exepackage so if required, the .NET install is
> downloaded THEN installed...
>
> Steve
>
> -----Original Message-----
> From: Sam Boman [mailto:[email protected]]
> Sent: February-12-13 9:03 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Install Prerequisites (.NET Framework)
>
> Ok,
> But this isn't offering any help to the user to download the
> framework, am I right?
> I guess I need to do that also.
>
> //Sam
>
>
> On Tue, Feb 12, 2013 at 2:55 PM, Steven Ogilvie
> <[email protected]
> >wrote:
>
> > This is what I do to check for .NET 4.0 in the boostrapper...
> >
> > <Chain>
> > <PackageGroupRef Id="Netfx4Full"/>
> >
> > ....
> >
> > </Chain>
> > </Bundle>
> > <Fragment Id="InstallConditionChecks">
> > <!-- Check for .NET 4.0 -->
> > <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
> > <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"
> > DisplayName="Microsoft .NET Framework 4.0"
> > Cache="no"
> > Compressed="no"
> > PerMachine="yes"
> > Permanent="yes"
> > Protocol="netfx4"
> > Vital="yes"
> > SourceFile="..\PreReqs\dotNetFx40_Full_x86_x64.exe"
> > Name="RedistServer\dotNetFx40_Full_x86_x64.exe"
> > InstallCommand="/passive /norestart"
> > DetectCondition="Netfx4FullVersion AND (NOT
> > VersionNT64 OR Netfx4x64FullVersion)" />
> > </PackageGroup>
> >
> > </Fragment>
> > </Wix>
> >
> > -----Original Message-----
> > From: Sam Boman [mailto:[email protected]]
> > Sent: February-12-13 8:47 AM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] Install Prerequisites (.NET Framework)
> >
> > But my original Wix UI then goes away. I just want the bootstrapper
> > to check the .NET Framework.
> >
> > <?xml version="1.0" encoding="UTF-8"?><Wix
> > xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Bundle
> > Name="Bootstrapper" Version="1.0.0.0" Manufacturer="" UpgradeCode="">
> > <BootstrapperApplicationRef
> > Id="WixStandardBootstrapperApplication.RtfLicense"/> <Chain>
> > <!-- .NET 4.5: NetFx45Web --> <PackageGroupRef
> > Id="NetFx40ClientWeb"/> <MsiPackage Id="MyApplication"
> > SourceFile="$(var.Msi.TargetPath)"/> </Chain>
> > </Bundle></Wix>
> >
> >
> >
> > On Tue, Feb 12, 2013 at 1:34 PM, Sam Boman <[email protected]> wrote:
> >
> > > Thanks! Do this Bundle needs to be in a separate project? (I can
> > > create new project: Bootstrapper Project in the Add Project dialog
> > > in
> > VS).
> > >
> > >
> > > On Tue, Feb 12, 2013 at 1:06 PM, Pally Sandher
> > ><[email protected]
> > >wrote:
> > >
> > >> http://wix.sourceforge.net/manual-wix3/install_dotnet.htm
> > >>
> > >> 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: Sam Boman [mailto:[email protected]]
> > >> Sent: 12 February 2013 12:04
> > >> To: General discussion for Windows Installer XML toolset.
> > >> Subject: [WiX-users] Install Prerequisites (.NET Framework)
> > >>
> > >> Hi!
> > >>
> > >> Where can I find a simple example of how to just ensure the
> > >> installation will check if the user have got a specific version
> > >> of .NET Framework installed, and if not, download from Microsoft.com?
> > >>
> > >> Have this with burn.exe to do? Or is it abandoned?
> > >>
> > >> //Sam
> > >>
> > >> -----------------------------------------------------------------
> > >> --
> > >> --
> > >> --------- 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
> > >> [email protected]
> > >> 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
> > >> [email protected]
> > >> 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
> > [email protected]
> > 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
> > [email protected]
> > 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
> [email protected]
> 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
> [email protected]
> 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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users