1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
<?xml version="1.0" encoding="UTF-8"?>
<?include .\defines.wxi ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="$(var.ProductName)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
<Package Id="*" Description="$(var.ProductName)" Comments="Contact: your local administrator" InstallerVersion="405" Compressed="yes" Keywords="TEXT,EDITOR,GNOME" Languages="1033" Manufacturer="$(var.Manufacturer)" InstallScope="perMachine"/>
<Icon Id="icon.ico" SourceFile="$(var.TopDir)\gitg\resources\pixmaps\gitg.ico"/>
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
<Media Id="1" Cabinet="data.cab" EmbedCab="yes" />
<!-- Features -->
<Feature Id="gitg" Title="gitg" Level="1">
<ComponentGroupRef Id="binaries" />
<ComponentGroupRef Id="startMenuShortcuts" />
<ComponentGroupRef Id="contextMenuShortcuts" />
<ComponentGroupRef Id="licenseFiles" />
</Feature>
<!-- UI -->
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<WixVariable Id="WixUIBannerBmp" Value="$(var.TopDir)\win32\installer\WixUIBannerBmp.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="$(var.TopDir)\win32\installer\WixUIDialogBmp.bmp" />
<WixVariable Id="WixUILicenseRtf" Value="$(var.LicenseFile)" />
<Condition Message="[ProductName] requires that your computer is running at least Windows 7">VersionNT>=601</Condition>
<UI>
<UIRef Id="WixUI_InstallDir" />
</UI>
<!-- Installer actions -->
<CustomAction Id="SetCompileSchemasCommand" Property="CompileSchemas" Value=""[INSTALLDIR]bin\glib-compile-schemas.exe" "[INSTALLDIR]share\glib-2.0\schemas""/>
<CustomAction Id="CompileSchemas" BinaryKey="WixCA" DllEntry="CAQuietExec" Return="ignore" Execute="deferred" Impersonate="no" />
<CustomAction Id="SetUpdateIconCacheCommand" Property="UpdateIconCache" Value=""[INSTALLDIR]bin\gtk-update-icon-cache-3.0.exe" "[INSTALLDIR]share\icons\hicolor""/>
<CustomAction Id="UpdateIconCache" BinaryKey="WixCA" DllEntry="CAQuietExec" Return="ignore" Execute="deferred" Impersonate="no" />
<CustomAction Id="SetUpdatePixbufLoadersCommand" Property="UpdatePixbufLoaders" Value=""[INSTALLDIR]bin\gdk-pixbuf-query-loaders.exe" --update-cache"/>
<CustomAction Id="UpdatePixbufLoaders" BinaryKey="WixCA" DllEntry="CAQuietExec" Return="ignore" Execute="deferred" Impersonate="no" />
<InstallExecuteSequence>
<RemoveExistingProducts Before="InstallInitialize" />
<Custom Action="SetCompileSchemasCommand" After="InstallFiles">Not Installed</Custom>
<Custom Action="CompileSchemas" After="SetCompileSchemasCommand">Not Installed</Custom>
<Custom Action="SetUpdateIconCacheCommand" After="CompileSchemas">Not Installed</Custom>
<Custom Action="UpdateIconCache" After="SetUpdateIconCacheCommand">Not Installed</Custom>
<Custom Action="SetUpdatePixbufLoadersCommand" After="UpdateIconCache">Not Installed</Custom>
<Custom Action="UpdatePixbufLoaders" After="SetUpdatePixbufLoadersCommand">Not Installed</Custom>
</InstallExecuteSequence>
</Product>
<!-- Directory Tree -->
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.PlatformProgramFilesFolder)" Name="$(var.PlatformProgramFilesFolder)">
<Directory Name="gitg" Id="gitg_dir">
<Directory Id="INSTALLDIR">
<Directory Name="license" Id="gitg_license" />
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ProgramMenuDir" Name="gitg" />
</Directory>
</Directory>
</Fragment>
<!-- Components -->
<Fragment>
<ComponentGroup Id="startMenuShortcuts">
<Component Id="programShortcuts" Guid="{A071C7AE-C657-4FAD-B0CC-11A6D794D0D3}" Directory="ProgramMenuDir">
<RegistryValue Key="Software\[Manufacturer]\[ProductName]" Root="HKCU" Type="string" Value="[INSTALLDIR]" Name="InstallPath" />
<Shortcut Id="gitgExec" Name="gitg" Description="gitg" Target="[INSTALLDIR]\bin\gitg.exe" />
<Shortcut Id="uninstallProduct" Name="Uninstall gitg" Arguments="/x [ProductCode]" Description="Uninstall gitg" Target="[System64Folder]msiexec.exe" />
<RemoveFolder Id="ProgramMenuDir" On="uninstall" />
</Component>
</ComponentGroup>
<ComponentGroup Id="contextMenuShortcuts">
<Component Id="contextShortcuts" Guid="A457CA3A-AA5E-42BA-A3B6-6D650561B565" Directory="INSTALLDIR">
<RegistryValue Key="Software\Classes\Directory\Background\shell\gitg" Root="HKCU" Type="string" Value="Gitg Here" />
<RegistryValue Key="Software\Classes\Directory\Background\shell\gitg\command" Root="HKCU" Type="string" Value="[INSTALLDIR]bin\gitg.exe" />
<RegistryValue Key="Software\Classes\Directory\shell\gitg" Root="HKCU" Type="string" Value="Gitg Here" />
<RegistryValue Key="Software\Classes\Directory\shell\gitg\command" Root="HKCU" Type="string" Value="[INSTALLDIR]bin\gitg.exe "%1"" />
</Component>
</ComponentGroup>
<ComponentGroup Id="licenseFiles" Directory="gitg_license">
<Component Id="COPYING.rtf" Guid="*">
<File Id="COPYING.rtf" Name="COPYING.rtf" Source="$(var.LicenseFile)" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
|