[tasque/windows] [wix] Added UI to install process



commit 75aeedd947f7c45ecdf3309440d6a02ddb89e506
Author: Antonius Riha <antoniusriha gmail com>
Date:   Sat Oct 27 16:05:15 2012 +0200

    [wix] Added UI to install process
    
    * Shows license
    * select install folder dialog
    * fancy, shiny, shiny install dialog :)
    
    source of inspiration: tomboy

 WindowsSetup/BannrBmp.bmp         |  Bin 0 -> 126054 bytes
 WindowsSetup/DlgBmp.bmp           |  Bin 0 -> 628054 bytes
 WindowsSetup/Product.wxs          |   19 +++++++++++++++++--
 WindowsSetup/WindowsSetup.wixproj |    4 ++++
 WindowsSetup/license.rtf          |  Bin 0 -> 1357 bytes
 5 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/WindowsSetup/BannrBmp.bmp b/WindowsSetup/BannrBmp.bmp
new file mode 100644
index 0000000..69ab075
Binary files /dev/null and b/WindowsSetup/BannrBmp.bmp differ
diff --git a/WindowsSetup/DlgBmp.bmp b/WindowsSetup/DlgBmp.bmp
new file mode 100644
index 0000000..61a87b1
Binary files /dev/null and b/WindowsSetup/DlgBmp.bmp differ
diff --git a/WindowsSetup/Product.wxs b/WindowsSetup/Product.wxs
index 2f5f82b..89c5a6b 100644
--- a/WindowsSetup/Product.wxs
+++ b/WindowsSetup/Product.wxs
@@ -33,12 +33,26 @@
       <![CDATA[Installed OR NETFRAMEWORK40CLIENT]]>
     </Condition>
 
-    <Feature Id="Complete" Title="Complete" Level="1">
+    <Feature Id="Complete" Title="Tasque" Description="The complete package." Display="expand" Level="1" ConfigurableDirectory="INSTALLFOLDER">
       <ComponentGroupRef Id="TasqueComponents" />
       <ComponentGroupRef Id="TasqueResources" />
       <ComponentGroupRef Id="TasqueLocales" />
     </Feature>
 
+    <WixVariable Id="WixUIDialogBmp" Value="DlgBmp.bmp" />
+    <WixVariable Id="WixUIBannerBmp" Value="BannrBmp.bmp" />
+    <WixVariable Id="WixUILicenseRtf" Value="license.rtf" />
+
+    <!-- 
+			Using the Wix UI library
+ 
+			WixUI_InstallDir does not allow the user to choose 
+			features but adds a dialog to let the user choose a 
+			directory where the product will be installed
+		-->
+    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
+    <UIRef Id="WixUI_InstallDir"/>
+
     <Icon Id="Tasque.exe" SourceFile="..\data\images\tasque.ico" />
 
     <!-- Icon for "Add/Remove programs" entry and help link -->
@@ -49,7 +63,8 @@
   
   <Fragment>
     <ComponentGroup Id="TasqueComponents" Directory="INSTALLFOLDER">
-      <Component Id="TasqueCore" Guid="4A92C71A-7FE4-463D-B307-EE79C63614AF">
+      <Component Id="TasqueCore" Guid="FD3B5D67-A2C7-4A69-B243-AAF405748FF5">
+        <File Id="LicenseFile" Source="license.rtf" Name="license.rtf" />
         <File Source="..\build\bin\lib\tasque\Tasque.exe" KeyPath="yes">
           <Shortcut Id="startmenuTasque" Directory="ProgramMenuFolder" Name="Tasque"
                     WorkingDirectory="INSTALLFOLDER" Icon="Tasque.exe" IconIndex="0" Advertise="yes" />
diff --git a/WindowsSetup/WindowsSetup.wixproj b/WindowsSetup/WindowsSetup.wixproj
index 53b8cac..b5a6ee7 100644
--- a/WindowsSetup/WindowsSetup.wixproj
+++ b/WindowsSetup/WindowsSetup.wixproj
@@ -27,6 +27,10 @@
     <Compile Include="Resources.wxs" />
   </ItemGroup>
   <ItemGroup>
+    <WixExtension Include="WixUIExtension">
+      <HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
+      <Name>WixUIExtension</Name>
+    </WixExtension>
     <WixExtension Include="WixNetFxExtension">
       <HintPath>$(WixExtDir)\WixNetFxExtension.dll</HintPath>
       <Name>WixNetFxExtension</Name>
diff --git a/WindowsSetup/license.rtf b/WindowsSetup/license.rtf
new file mode 100644
index 0000000..02430c6
Binary files /dev/null and b/WindowsSetup/license.rtf differ



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