1 <?xml version='1.0' encoding='utf-8'?>
\r
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
\r
3 <?include ../src/TortoiseGitSetup/Includes.wxi?>
\r
6 UpgradeCode="9ECED698-D4D9-42fd-946D-51CC049D1F6F"
\r
7 Name='$(var.LANGNATIVE) Languagepack for TortoiseGit'
\r
11 Version='$(var.VersionNumberInternal)'
\r
12 Manufacturer='TortoiseGit'>
\r
14 <Package Id='*' Keywords='Installer;TortoiseGit;LanguagePack'
\r
15 Description="$(var.LANGNATIVE) language pack for TortoiseGit, v$(var.VersionNumberUserVisible)"
\r
16 Comments='https://tortoisegit.org/'
\r
17 Manufacturer="TortoiseGit team"
\r
18 Platform="$(var.PackagePlatforms)"
\r
19 InstallerVersion='405'
\r
22 SummaryCodepage='1252' />
\r
24 <MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallValidate" />
\r
26 <Media Id='1' Cabinet='langpack.cab' EmbedCab='yes' CompressionLevel="high" />
\r
27 <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" Secure="yes" />
\r
29 <Property Id="ALLUSERS" Secure="yes">1</Property>
\r
31 <Property Id="COUNTRYID" Value="$(var.COUNTRYID)" />
\r
33 <?if $(var.Platform) = "x86" ?>
\r
34 <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 the TortoiseGit language pack instead.">NOT Msix64</Condition>
\r
37 <Property Id="INSTALLDIR" Secure="yes">
\r
38 <RegistrySearch Id="TGitInstallationDir" Root="HKLM" Key="Software\[Manufacturer]" Name="Directory" Type="raw" Win64="$(var.Win64YesNo)"/>
\r
40 <Condition Message="TortoiseGit is not installed. Please install TortoiseGit before installing the language pack">INSTALLDIR</Condition>
\r
42 <CustomAction Id="SetLanguage" BinaryKey="CustomActionsDLL" DllEntry="SetLanguage" />
\r
43 <Binary Id="CustomActionsDLL" SourceFile="..\bin\$(var.ReleasePath)\bin\CustomActions.dll" />
\r
45 <Directory Id='TARGETDIR' Name='SourceDir'>
\r
46 <Directory Id='D__ProgramFilesFolder' ShortName="PFiles" Name="Program Files">
\r
47 <Directory Id='INSTALLDIR' Name='TortoiseGit'>
\r
48 <Directory Id='LanguagesFolder' Name='Languages'>
\r
49 <Component Id='Main' Guid='9D004446-94B4-4b9d-8C95-0BD46008A2A5'>
\r
50 <?if $(var.TSVNHelpFile) = "$COUNTRYCODE$" ?>
\r
51 <File Id='HELPPROC' Name='TortoiseSVN_$COUNTRYCODE$.chm' DiskId='1' Source='..\doc\output\TortoiseSVN_$COUNTRYCODE$.chm' Vital='no'></File>
\r
53 <?if $(var.TMergeHelpFile) = "$COUNTRYCODE$" ?>
\r
54 <File Id='HELPMERG' Name='TortoiseMerge_$COUNTRYCODE$.chm' DiskId='1' Source='..\doc\output\TortoiseMerge_$COUNTRYCODE$.chm' Vital='no'></File>
\r
56 <?ifdef var.SPELL ?>
\r
57 <?include spell/$(var.COUNTRYID).wxi?>
\r
59 <File Id='PROCDLL' Name='TortoiseProc$(var.COUNTRYID).dll' DiskId='1' Source='..\bin\$(var.ReleasePath)\Languages\TortoiseProc$(var.COUNTRYID).dll' Vital='yes'></File>
\r
60 <File Id='MERGDLL' Name='TortoiseMerge$(var.COUNTRYID).dll' DiskId='1' Source='..\bin\$(var.ReleasePath)\Languages\TortoiseMerge$(var.COUNTRYID).dll' Vital='yes'></File>
\r
61 <File Id='BLAMDLL' Name='TortoiseGitBlame$(var.COUNTRYID).dll' DiskId='1' Source='..\bin\$(var.ReleasePath)\Languages\TortoiseGitBlame$(var.COUNTRYID).dll' Vital='yes'></File>
\r
62 <File Id='IDIFDLL' Name='TortoiseIDiff$(var.COUNTRYID).dll' DiskId='1' Source='..\bin\$(var.ReleasePath)\Languages\TortoiseIDiff$(var.COUNTRYID).dll' Vital='yes'></File>
\r
63 <File Id='UDIFDLL' Name='TortoiseGitUDiff$(var.COUNTRYID).dll' DiskId='1' Source='..\bin\$(var.ReleasePath)\Languages\TortoiseGitUDiff$(var.COUNTRYID).dll' Vital='yes'></File>
\r
65 <?if $(var.Platform) = "x64" ?>
\r
66 <File Id='PROCDLL32' Name='TortoiseProc32$(var.COUNTRYID).dll' DiskId='1' Source='..\bin\$(var.ReleasePath32)\Languages\TortoiseProc$(var.COUNTRYID).dll' Vital='yes'></File>
\r
74 <Feature Id='Complete' Title='Binaries' Description='The complete language pack.'
\r
75 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'>
\r
76 <Feature Id='Main' Title='Program' Description='The language pack files.' Level='1'>
\r
77 <ComponentRef Id='Main' />
\r
81 <UIRef Id="WixUI_LanguagePack" />
\r
82 <UIRef Id="WixUI_ErrorProgressText" />
\r
84 <WixVariable Id="WixUIBannerBmp" Value="Banner.jpg" />
\r
85 <WixVariable Id="WixUIDialogBmp" Value="Dialog.jpg" />
\r
87 <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Configure TortoiseGit to use this language" />
\r
89 <Publish Dialog="MyExitDialog" Control="Finish" Event="DoAction" Value="SetLanguage">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
\r
92 <InstallExecuteSequence>
\r
93 <!-- These 'Suppress' statements prevent the installer from getting
\r
94 registered and from being shown in the software panel. With both
\r
95 suppressed, the installer simply copies the files without any
\r
97 <PublishProduct Suppress='yes' />
\r
98 <RegisterProduct Suppress='yes' />
\r
99 <RegisterUser Suppress='yes' />
\r
100 <PublishFeatures Suppress='yes' />
\r
101 </InstallExecuteSequence>
\r