I use the MSBuild GenerateBootstrapper task to create a
bootstrapper to install .NET 2.0, 3.0, and other dependencies. It's fairly
easy to add to your build process if you're running MSBuild.
If you're using Votive, edit your .wixproj project file and add the following
code to the bottom of your .wixproj file, before and after it imports the
Wix.targets file.
<ItemGroup>
<BootstrapperItem Include="Microsoft.Net.Framework.2.0">
<ProductName>Microsoft .NET Framework 2.0</ProductName>
</BootstrapperItem>
<BootstrapperItem Include="{511DAC48-6CBB-43a3-A64D-0182F2A9EBC2}">
<ProductName>Microsoft .NET Framework 3.0</ProductName>
</BootstrapperItem>
</ItemGroup>
<Target Name="GenerateBootstrapper">
<GenerateBootstrapper ApplicationName="My Application"
ApplicationFile="$(TargetFileName)" BootstrapperItems="@(BootstrapperItem)"
ComponentsLocation="HomeSite" OutputPath="$(OutputPath)" Culture="en-US" />
</Target>
<Import Project="$(WixToolPath)\Wix.targets" />
<PropertyGroup>
<BuildDependsOn>
PrepareForBuild;
Compile;
Link;
GenerateBootstrapper
</BuildDependsOn>
</PropertyGroup>
----------------------------------------
From: "Thomas Bjørnsen" <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2007 6:43 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Forcing a .NET 2.0 install as a prerequisite
Is there any way to make WIX install .NET 2.0 if it doesn't find it (currently
i just check if it exists with a FileSearch to check mscoree.dll for version
2.0). I guess some kind of bootstrapper?
And if I want a feature to only install on windows 2k/XP is it enough to create
the feature and put a conditional OS Version check inside it? Will WIX install
multiple features even though the user doesn't have the option of touching
features (mainfeature + extrafeature for 2k/XP)?
Thx
-T
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users