[tasque/windows] [wix] Add checks for GtkSharp and .net framework



commit e31f4b276947f07a4d99b2a064c773f2c51e6d4a
Author: Antonius Riha <antoniusriha gmail com>
Date:   Sat Oct 27 16:03:14 2012 +0200

    [wix] Add checks for GtkSharp and .net framework
    
    copied from tomboy and adapted for .NET profile 4.0

 WindowsSetup/Product.wxs          |   17 ++++++++++++++++-
 WindowsSetup/WindowsSetup.wixproj |    4 ++++
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/WindowsSetup/Product.wxs b/WindowsSetup/Product.wxs
index 1145eb0..2f5f82b 100644
--- a/WindowsSetup/Product.wxs
+++ b/WindowsSetup/Product.wxs
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"; xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension";>
 	<Product Id="*" Name="Tasque" Language="1033" Version="0.1.12" Manufacturer="Tasque Project" UpgradeCode="d4720f75-fd29-4014-9fbe-bd5a6473c48f">
 		<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
 
@@ -17,6 +17,21 @@
     <Property Id="INSTALLFOLDER">
       <RegistrySearch Id='SearchTasqueInstallFolder' Type='directory' Root='HKLM' Key='Software\Tasque' Name='InstallFolder' />
     </Property>
+    
+    <Property Id="GTKSHARPNOVELLINSTALLVERSION">
+      <RegistrySearch Id='GtksharpnovellRegistry' Type='raw' Root='HKLM' Key='Software\Novell\GtkSharp\Version' />
+    </Property>
+    <Condition Message="This setup requires Gtk# for .NET (version 2.12.10 or higher). Please download the latest installer from http://www.mono-project.com/GtkSharp ">
+      <![CDATA[GTKSHARPNOVELLINSTALLVERSION >= "2.12.10" OR (GTKSHARPNOVELLINSTALLVERSION << "2.12.1" AND GTKSHARPNOVELLINSTALLVERSION <> "2.12.1") OR REMOVE ~= "ALL"]]>
+    </Condition>
+    <Condition Message='This setup requires the .NET Framework 2.0 or higher.'>
+      <![CDATA[MsiNetAssemblySupport >= "2.0.50727"]]>
+    </Condition>
+
+    <PropertyRef Id="NETFRAMEWORK40CLIENT"/>
+    <Condition Message="This application requires .NET Framework 4.0 Client Profile. Please install the .NET Framework then run this installer again.">
+      <![CDATA[Installed OR NETFRAMEWORK40CLIENT]]>
+    </Condition>
 
     <Feature Id="Complete" Title="Complete" Level="1">
       <ComponentGroupRef Id="TasqueComponents" />
diff --git a/WindowsSetup/WindowsSetup.wixproj b/WindowsSetup/WindowsSetup.wixproj
index 550ec08..53b8cac 100644
--- a/WindowsSetup/WindowsSetup.wixproj
+++ b/WindowsSetup/WindowsSetup.wixproj
@@ -27,6 +27,10 @@
     <Compile Include="Resources.wxs" />
   </ItemGroup>
   <ItemGroup>
+    <WixExtension Include="WixNetFxExtension">
+      <HintPath>$(WixExtDir)\WixNetFxExtension.dll</HintPath>
+      <Name>WixNetFxExtension</Name>
+    </WixExtension>
     <WixExtension Include="WixUtilExtension">
       <HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
       <Name>WixUtilExtension</Name>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]