Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI
I am new to Wix and i have created a simple bootstrap to install .net framework.Check my bundle.wxs


but the output is exe, What i have to do if i want the output in msi . (Changing output of the project gives error). Please share the steps in detail

Also let me know how to install sybase also in this way

What I have tried:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle Name="WIXBoostrap" Version="1.0.0.0" Manufacturer="Microsoft" UpgradeCode="6751ee3a-4fd1-4136-a134-9ff66dc41213">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

<chain>

<PackageGroupRef Id="Netfx45"/>
<!--<MsiPackage Id="Setup" Compressed="yes" SourceFile="$(var.Installer.TargetPath)"
Vital="yes">-->
<!--<MsiProperty Name="INSTALLLOCATION" Value="[InstallFolder]" />-->
<!---->
<!-- TODO: Define the list of chained packages. -->
<!--<MsiPackage SourceFile="$(var.AppInstaller.TargetPath)" />-->
<!-- <MsiPackage SourceFile="path\to\your.msi" /> -->



<fragment>
<!-- Check for .NET 4.5 -->
<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="Netfx45">
<!--<MsiPackage
Visible="yes"
Cache="no"
Compressed="no"
ForcePerMachine="yes"
Permanent="yes"
Vital="yes"
SourceFile=".\dotnetfx45_full_x86_x64.msi"
InstallCondition="(VersionNT < v6.0 OR VersionNT64 < v6.0) AND (NOT (Netfx4FullVersion OR Netfx4x64FullVersion))" />-->
<ExePackage Id="Netfx45" Cache="no" Compressed="yes" PerMachine="yes" Protocol="netfx4" Permanent="yes" Vital="yes" InstallCommand="/norestart /passive /showrmui"
SourceFile=".\dotnetfx45_full_x86_x64.exe"
DetectCondition="(Netfx4FullVersion="4.5.50709") AND (NOT VersionNT64 OR (Netfx4x64FullVersion="4.5.50709"))"
InstallCondition="(VersionNT < v6.0 OR VersionNT64 < v6.0) AND (NOT (Netfx4FullVersion OR Netfx4x64FullVersion))"/>
Posted
Updated 20-Dec-16 1:41am
Comments
Dave Kreskowiak 20-Dec-16 10:42am    
You can't pack all of your pre-reqs into an .MSI package. Typically, the output of a project like this is an .EXE installer.
Jhanani Ravishankar 20-Dec-16 23:42pm    
Hi Thanks for your reply. Is there any way to refer the WIXBootstrapper(which is exe) into WIXSetup project (which is msi) and do some config changes in the product.wxs? If it is possible then kindly share the detailed steps as well as the product.wxs

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900