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