pulled latest translations from Transifex
[TortoiseGit.git] / src / TortoiseGitSetup / TortoiseGIT.wxs
blob039dda9a8f7e0c7c267ee0e47d53243e3a88f72f
1 <?xml version="1.0" encoding="utf-8"?>
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3 <?include Includes.wxi?>
4 <Product UpgradeCode="$(var.UpgradeGuid)" Name="$(var.ProductName) $(var.VersionNumberUserVisible) $(var.PlatformUserVisible)" Id="*" Version="$(var.VersionNumberInternal)" Manufacturer="TortoiseGit" Language="1033" Codepage="1252">
6 <Package Id="*" Keywords="$(var.PackageKeywords)" Description="$(var.PackageDescription)" Comments="$(var.PackageComments)" Manufacturer="$(var.PackageManufacturer)" InstallerVersion="301" Platform="$(var.PackagePlatforms)" Languages="1033" Compressed="yes" SummaryCodepage="1252" InstallPrivileges="elevated" />
7 <Upgrade Id="$(var.UpgradeGuid)">
8 <!-- upgrade is flagged if current-install is newer than or equal to package -->
9 <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.VersionNumberInternal)" OnlyDetect="yes" />
11 <!-- flag is set if the install will trigger an upgrade of an existing install -->
12 <UpgradeVersion Property="PREVIOUSVERSIONSINSTALLED" Maximum="$(var.VersionNumberInternal)" IncludeMaximum="no" MigrateFeatures="yes" />
13 </Upgrade>
15 <MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallValidate" />
16 <Media Id="1" Cabinet="TGIT.cab" EmbedCab="yes" CompressionLevel="high" />
18 <Icon Id="TGITIcon" SourceFile="..\Resources\Tortoise.ico" />
20 <Property Id="SSHRadio">Plink</Property>
22 <!-- Launch Condition related properties ................................................................................. -->
23 <Property Id="ShowChangelogCheck">1</Property>
24 <Property Id="ALLUSERS">1</Property>
26 <Condition Message="[ProductName] requires Windows XP SP3 or later."><![CDATA[(VersionNT > 501) OR ((VersionNT = 501) AND (ServicePackLevel >= 3))]]></Condition>
28 <?if $(var.Platform) = "x86" ?>
29 <Condition Message="You are attempting to run the 32-bit installer on a 64-bit version of Windows. Please install the 64-bit version of TortoiseGit instead.">NOT Msix64</Condition>
30 <?endif ?>
32 <?if $(var.Platform) = "x64" ?>
33 <Upgrade Id="$(var.UpgradeGuid32)">
34 <UpgradeVersion Minimum="0.0.0.0" OnlyDetect="yes" Property="WIN32TGITFOUND" />
35 </Upgrade>
36 <Condition Message="Please uninstall all 32-bit versions of TortoiseGit before installing [ProductName].">NOT WIN32TGITFOUND</Condition>
37 <?endif ?>
39 <!-- Show/Don't-show changelog related properties and custom actions ..................................................... -->
40 <Property Id="TEXTEDITOR">
41 <DirectorySearch Id="FileSearchTextEditorExe" Path="[WindowsFolder]">
42 <FileSearch Id="FileSearchTextEditorExe" Name="notepad.exe" />
43 </DirectorySearch>
44 </Property>
45 <CustomAction Id="Set_ShowChangelog" Property="ShowChangelog" Value="Yes" Return="check" />
46 <CustomAction Id="ShowChangelogAction" Property="TEXTEDITOR" ExeCommand="[INSTALLDIR]changelog.txt" Return="asyncNoWait" />
48 <CustomAction Id="ShowDonatePage" BinaryKey="CustomActionsDLL" DllEntry="OpenDonatePage" />
50 <CustomAction Id="KillCache" BinaryKey="CustomActionsDLL" DllEntry="TerminateCache" />
51 <Binary Id="CustomActionsDLL" SourceFile="..\..\bin\$(var.ReleasePath)\bin\CustomActions.dll" />
53 <!-- Unsafe-check properties and custom actions .......................................................................... -->
54 <Property Id="VSDUIANDADVERTISED">This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of the package to basic.</Property>
55 <CustomAction Id="ERRCA_UIANDADVERTISED" Error="[VSDUIANDADVERTISED]" />
57 <!-- Figure out where a previous installation was, if any ................................................................ -->
58 <?if $(var.Platform) = "x64" ?>
59 <CustomAction Id="DefaultTargetDir" Property="INSTALLDIR" Value="[ProgramFiles64Folder]$(var.ProductName)" Execute="immediate" />
60 <Property Id="INSTALLDIR">
61 <RegistrySearch Id="PreviousInstallLocationRegistrySearch" Root="HKLM" Key="Software\[Manufacturer]" Name="Directory" Type="raw" Win64="$(var.Win64YesNo)" />
62 </Property>
63 <?else ?>
64 <CustomAction Id="DefaultTargetDir" Property="INSTALLDIR" Value="[ProgramFilesFolder]$(var.ProductName)" Execute="immediate" />
65 <Property Id="INSTALLDIR">
66 <RegistrySearch Id="PreviousInstallLocationRegistrySearch" Root="HKLM" Key="Software\[Manufacturer]" Name="Directory" Type="raw" Win64="$(var.Win64YesNo)" />
67 </Property>
68 <?endif ?>
70 <?include FeaturesFragment.wxi?>
71 <?include StructureFragment.wxi?>
72 <?include UIFragment.wxi?>
74 <!--
75 <FragmentRef Id="StructureFragment" />
76 <FragmentRef Id="FeaturesFragment" />
77 <FragmentRef Id="UIFragment" />
78 -->
80 <!-- Execute Sequencing ................................................................................................. -->
81 <AdminExecuteSequence />
82 <InstallExecuteSequence>
83 <!-- AppSearch must be done before RemoveExistingProducts and before FindRelatedProducts -->
84 <AppSearch Sequence="1" />
85 <LaunchConditions After="AppSearch" />
86 <Custom Action="DefaultTargetDir" After="LaunchConditions">INSTALLDIR=""</Custom>
87 <Custom Action="KillCache" After="RemoveExistingProducts">Installed</Custom>
88 </InstallExecuteSequence>
90 <!-- UI Sequencing ...................................................................................................... -->
91 <AdminUISequence>
92 <Show Dialog="FatalErrorDlg" OnExit="error" />
93 <Show Dialog="UserExit" OnExit="cancel" />
94 <Show Dialog="ExitDlg" OnExit="success" />
95 <Show Dialog="PrepareDlg" Before="CostInitialize"><![CDATA[]]></Show>
96 <Show Dialog="AdminWelcomeDlg" After="CostFinalize" />
97 <Show Dialog="ProgressDlg" After="AdminWelcomeDlg" />
98 </AdminUISequence>
100 <InstallUISequence>
101 <Show Dialog="FatalErrorDlg" OnExit="error" />
102 <Show Dialog="UserExit" OnExit="cancel" />
103 <Show Dialog="ExitDlg" OnExit="success" />
104 <Show Dialog="PrepareDlg" After="LaunchConditions" />
105 <Show Dialog="WelcomeDlg" After="MigrateFeatureStates"><![CDATA[NOT Installed]]></Show>
106 <Show Dialog="ResumeDlg" After="WelcomeDlg"><![CDATA[Installed AND (RESUME OR Preselected)]]></Show>
107 <Show Dialog="MaintenanceWelcomeDlg" After="ResumeDlg"><![CDATA[Installed AND NOT RESUME AND NOT Preselected]]></Show>
108 <Show Dialog="ProgressDlg" After="MaintenanceWelcomeDlg" />
110 <FindRelatedProducts Suppress="no">1</FindRelatedProducts>
112 <Custom Action="DefaultTargetDir" After="PrepareDlg">INSTALLDIR=""</Custom>
113 <Custom Action="ERRCA_UIANDADVERTISED" Before="AppSearch">ProductState=1</Custom>
114 <Custom Action="Set_ShowChangelog" After="AppSearch">NOT Installed</Custom>
115 </InstallUISequence>
116 </Product>
117 </Wix>