Improve error reporting
[TortoiseGit.git] / Languages / LanguagePack.wxs
blobed61913e00ad8e731410a0d97b904c9540767dd6
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'
15 Description="$LANGUI$ language pack for TortoiseGit"
16 Comments='http://tortoisegit.org/'
17 Manufacturer="Frank Li, Sven Strickroth"
18 Platform="$(var.PackagePlatforms)"
19 InstallerVersion='301'
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 <?if $(var.Platform) = "x86" ?>
32 <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>
33 <?endif ?>
35 <Property Id="INSTALLDIR" Secure="yes">
36 <RegistrySearch Id="TGitInstallationDir" Root="HKLM" Key="Software\[Manufacturer]" Name="Directory" Type="raw" Win64="$(var.Win64YesNo)"/>
37 </Property>
38 <Condition Message="TortoiseGit is not installed. Please install TortoiseGit before installing the language pack">INSTALLDIR</Condition>
40 <Directory Id='TARGETDIR' Name='SourceDir'>
41 <Directory Id='D__ProgramFilesFolder' ShortName="PFiles" Name="Program Files">
42 <Directory Id='INSTALLDIR' Name='TortoiseGit'>
43 <Directory Id='LanguagesFolder' Name='Languages'>
44 <Component Id='Main' Guid='9D004446-94B4-4b9d-8C95-0BD46008A2A5'>
45 <?if $(var.TSVNHelpFile) = "$COUNTRYCODE$" ?>
46 <File Id='HELPPROC' Name='TortoiseSVN_$COUNTRYCODE$.chm' DiskId='1' Source='..\doc\output\TortoiseSVN_$COUNTRYCODE$.chm' Vital='no'></File>
47 <?endif?>
48 <?if $(var.TMergeHelpFile) = "$COUNTRYCODE$" ?>
49 <File Id='HELPMERG' Name='TortoiseMerge_$COUNTRYCODE$.chm' DiskId='1' Source='..\doc\output\TortoiseMerge_$COUNTRYCODE$.chm' Vital='no'></File>
50 <?endif?>
51 <?ifdef var.SPELL ?>
52 <?include spell/$(var.COUNTRYID).wxi?>
53 <?endif?>
54 <File Id='PROCDLL' Name='TortoiseProc$(var.COUNTRYID).dll' DiskId='1' Source='..\bin\$(var.ReleasePath)\bin\TortoiseProc$(var.COUNTRYID).dll' Vital='yes'></File>
55 <File Id='MERGDLL' Name='TortoiseMerge$(var.COUNTRYID).dll' DiskId='1' Source='..\bin\$(var.ReleasePath)\bin\TortoiseMerge$(var.COUNTRYID).dll' Vital='yes'></File>
56 <File Id='BLAMDLL' Name='TortoiseGitBlame$(var.COUNTRYID).dll' DiskId='1' Source='..\bin\$(var.ReleasePath)\bin\TortoiseGitBlame$(var.COUNTRYID).dll' Vital='yes'></File>
57 <File Id='IDIFDLL' Name='TortoiseIDiff$(var.COUNTRYID).dll' DiskId='1' Source='..\bin\$(var.ReleasePath)\bin\TortoiseIDiff$(var.COUNTRYID).dll' Vital='yes'></File>
59 <?if $(var.Platform) = "x64" ?>
60 <File Id='PROCDLL32' Name='TortoiseProc32$(var.COUNTRYID).dll' DiskId='1' Source='..\bin\$(var.ReleasePath32)\bin\TortoiseProc$(var.COUNTRYID).dll' Vital='yes'></File>
61 <?endif ?>
63 </Component>
64 <?if $(var.TSVNMoFile) = "$COUNTRYCODE$" ?>
65 <Directory Id='SVNLANG' Name='$COUNTRYCODE$' >
66 <Directory Id='LCMESG' Name='LC_MESSAGES'>
67 <Component Id='SVNMO' Guid='3CD420FC-32B4-4413-84EE-BAEB77E04B06'>
68 <File Id='MO' Name='Subversion.mo' DiskId='1' Source='Subversion.mo' Vital='no'></File>
69 </Component>
70 </Directory>
71 </Directory>
72 <?endif?>
73 </Directory>
74 </Directory>
75 </Directory>
77 </Directory>
79 <Feature Id='Complete' Title='Binaries' Description='The complete language pack.'
80 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'>
81 <Feature Id='Main' Title='Program' Description='The language pack files.' Level='1'>
82 <ComponentRef Id='Main' />
83 <?if $(var.TSVNMoFile) = "$COUNTRYCODE$" ?>
84 <ComponentRef Id='SVNMO' />
85 <?endif?>
86 </Feature>
87 </Feature>
89 <UIRef Id="WixUI_LanguagePack" />
90 <UIRef Id="WixUI_ErrorProgressText" />
92 <WixVariable Id="WixUIBannerBmp" Value="Banner.jpg" />
93 <WixVariable Id="WixUIDialogBmp" Value="Dialog.jpg" />
97 <InstallExecuteSequence>
98 <!-- These 'Suppress' statements prevent the installer from getting
99 registered and from being shown in the software panel. With both
100 suppressed, the installer simply copies the files without any
101 trace left. -->
102 <PublishProduct Suppress='yes' />
103 <RegisterProduct Suppress='yes' />
104 <RegisterUser Suppress='yes' />
105 <PublishFeatures Suppress='yes' />
106 </InstallExecuteSequence>
108 </Product>
109 </Wix>