Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (28 sloc) 2.08 KB
<?xml version="1.0" encoding="UTF-8"?>
<?include common.wxi ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle Name="$(var.ProductShortName) $(var.ProductVersionText)" Version="$(var.ProductVersion)"
Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)" IconSourceFile="Bitmaps/Pinta.ico">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
<bal:WixStandardBootstrapperApplication LicenseFile="license.rtf" LogoFile="Bitmaps/logo.bmp"/>
</BootstrapperApplicationRef>
<util:RegistrySearch Variable="GTKSHARPVERSION" Id="gsversion" Root="HKLM" Key="SOFTWARE\Xamarin\GtkSharp\Version" Result="value" Format="raw" />
<Variable Name="InstallFolder" Type="string" Value="[ProgramFilesFolder]Pinta" />
<!-- Allows Pinta to be launched after installation completes. -->
<Variable Name="LaunchTarget" Value="[InstallFolder]\Pinta.exe"/>
<Chain>
<!-- Ensure .Net 4.0 is installed. -->
<PackageGroupRef Id="NetFx40ClientRedist"/>
<!-- Ensure GTK# is installed, or download it if necessary. -->
<!-- Wix needs a local copy of the msi when building, but setting Compressed to No ensures that it's not bundled with the installer. -->
<!-- Set Permanent=Yes to prevent GTK# from being uninstalled when Pinta is uninstalled. -->
<MsiPackage Id="GtkSharpSetup" SourceFile="gtk-sharp-2.12.22.msi" Compressed="no" ForcePerMachine="yes" Visible="yes" Vital="yes" Cache="yes"
InstallCondition="NOT(GTKSHARPVERSION &gt;= &quot;2.12.22&quot;)" Permanent="yes" DisplayInternalUI="yes"
DownloadUrl="http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.22.msi" />
<!-- Install the Pinta msi. -->
<MsiPackage SourceFile="$(var.PintaWix.TargetPath)" Id="PintaSetup" Vital="yes" ForcePerMachine="yes">
<MsiProperty Name="INSTALLLOCATION" Value="[InstallFolder]" />
</MsiPackage>
</Chain>
</Bundle>
</Wix>