[gedit/wip/wix] More stuff



commit b807334a67b8357453b95cc3e3107da67499e13f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Dec 22 12:07:18 2015 +0100

    More stuff

 win32/installer/gedit.wxs |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/win32/installer/gedit.wxs b/win32/installer/gedit.wxs
index 91b67f0..352dfc2 100644
--- a/win32/installer/gedit.wxs
+++ b/win32/installer/gedit.wxs
@@ -17,9 +17,6 @@
     <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
     <WixVariable Id="WixUILicenseRtf" Value="$(var.LicenseFile)" />
     <Condition Message="[ProductName] requires that your computer is running at least Windows 
7">VersionNT&gt;=601</Condition>
-    <?ifndef Win64 ?>
-    <Condition Message="You are attempting to run the 32-bit installer on a 64-bit version of Windows.">NOT 
VersionNT64</Condition>
-    <?endif ?>
 
     <!-- Installer actions -->
     <CustomAction Id="SetCompileSchemasCommand" Property="CompileSchemas" 
Value="&quot;[INSTALLDIR]\bin\glib-compile-schemas.exe&quot; 
&quot;[INSTALLDIR]\share\glib-2.0\schemas&quot;"/>
@@ -55,6 +52,18 @@
 
   <!-- Components -->
   <Fragment>
+    <ComponentGroup Id="startMenuShortcuts">
+      <Component Id="removeShortcut" Guid="{5FB5EA00-0995-49FC-A3E1-6DFBA2FFAA5F}" 
Directory="ProgramMenuDir">
+        <RegistryValue Key="Software\[Manufacturer]\[ProductName]" Root="HKCU" Type="string" Value="" />
+        <RemoveFolder Id="ProgramMenuDir" On="uninstall" />
+      </Component>
+      <Component Id="programShortcuts" Guid="{A071C7AE-C657-4FAD-B0CC-11A6D794D0D3}" 
Directory="ProgramMenuSubDir">
+        <RegistryValue Key="Software\[Manufacturer]\[ProductName]" Root="HKCU" Type="string" 
Value="[INSTALLDIR]" Name="InstallPath" />
+        <Shortcut Id="uninstallProduct" Name="Uninstall gedit Text Editor" Arguments="/x [ProductCode]" 
Description="Uninstall gedit Text Editor" Target="[System64Folder]msiexec.exe" />
+        <RemoveFolder Id="ProgramMenuDir" On="uninstall" />
+      </Component>
+    </ComponentGroup>
+
     <ComponentGroup Id="licenseFiles" Directory="gedit_license">
       <Component Id="COPYING.rtf" Guid="*">
         <File Id="COPYING.rtf" Name="COPYING.rtf" Source="$(var.LicenseFile)" />


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