OSDN Git Service

Remove mix platform build script.
[tortoisegit/TortoiseGitJp.git] / Languages / LanguagePack.wxs
1 <?xml version='1.0' encoding='utf-8'?>\r
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">\r
3         <?if $(env.Platform) = "x64" ?>\r
4         <?define Win64YesNo="yes" ?>\r
5         <?define PackagePlatforms="x64" ?>\r
6         <?else?>\r
7         <?define Win64YesNo="no" ?>\r
8         <?define PackagePlatforms="x86" ?>\r
9         <?endif?>\r
10 \r
11   <Product\r
12   UpgradeCode="9ECED698-D4D9-42fd-946D-51CC049D1F6F"\r
13   Name='$LANGNATIVE$ Languagepack for TortoiseSVN'\r
14   Id='*'\r
15   Language='1033'\r
16   Codepage='1252'\r
17   Version='$MajorVersion$.$MinorVersion$.$WCREV$'\r
18   Manufacturer='TortoiseSVN'>\r
19 \r
20     <Package Id='*' Keywords='Installer'\r
21       Description="$LANGUI$ language pack for TortoiseSVN"\r
22       Comments='http://tortoisesvn.net' \r
23       Manufacturer="Stefan Kueng" \r
24       Platform="$(var.PackagePlatforms)"  \r
25       InstallerVersion='200' \r
26       Languages='1033' \r
27       Compressed='yes' \r
28       SummaryCodepage='1252' />\r
29 \r
30     <Media Id='1' Cabinet='langpack.cab' EmbedCab='yes' CompressionLevel="high" />\r
31     <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />\r
32 \r
33         <Property Id="ALLUSERS">1</Property>\r
34 \r
35     <Property Id="INSTALLDIR">\r
36       <RegistrySearch Id="TSVNInstallationDir" Root="HKLM" Key="Software\[Manufacturer]" Name="Directory" Type="raw" Win64="$(var.Win64YesNo)"/>\r
37     </Property>\r
38     <Condition Message="TortoiseSVN is not installed. Please install TortoiseSVN before installing the language pack">INSTALLDIR</Condition>\r
39 \r
40     <Directory Id='TARGETDIR' Name='SourceDir'>\r
41       <Directory Id='ProgramFilesFolder' Name='PFiles'>\r
42         <Directory Id='INSTALLDIR' Name='TortoiseSVN'>\r
43           <Directory Id='LanguagesFolder' Name='Languages'>\r
44             <Component Id='Main' Guid='9D004446-94B4-4b9d-8C95-0BD46008A2A5'>\r
45               <?if $(env.TSVNHelpFile) = "$COUNTRYCODE$" ?>\r
46               <File Id='HELPPROC' Name='TortoiseSVN_$COUNTRYCODE$.chm' DiskId='1' Source='..\doc\output\TortoiseSVN_$COUNTRYCODE$.chm' Vital='no'></File>\r
47               <?endif?>\r
48               <?if $(env.TMergeHelpFile) = "$COUNTRYCODE$" ?>\r
49               <File Id='HELPMERG' Name='TortoiseMerge_$COUNTRYCODE$.chm' DiskId='1' Source='..\doc\output\TortoiseMerge_$COUNTRYCODE$.chm' Vital='no'></File>\r
50               <?endif?>\r
51 \r
52               $SPELLCHECKFILES$\r
53 \r
54               <File Id='PROCDLL' Name='TortoiseProc$COUNTRYID$.dll' DiskId='1' Source='..\bin\TortoiseProc$COUNTRYID$.dll' Vital='yes'></File>\r
55               <File Id='MERGDLL' Name='TortoiseMerge$COUNTRYID$.dll' DiskId='1' Source='..\bin\TortoiseMerge$COUNTRYID$.dll' Vital='yes'></File>\r
56               <File Id='BLAMDLL' Name='TortoiseBlame$COUNTRYID$.dll' DiskId='1' Source='..\bin\TortoiseBlame$COUNTRYID$.dll' Vital='yes'></File>\r
57               <File Id='IDIFDLL' Name='TortoiseIDiff$COUNTRYID$.dll' DiskId='1' Source='..\bin\TortoiseIDiff$COUNTRYID$.dll' Vital='yes'></File>\r
58 \r
59             </Component>\r
60             <?if $(env.TSVNMoFile) = "$COUNTRYCODE$" ?>\r
61             <Directory Id='SVNLANG' Name='$COUNTRYCODE$' >\r
62               <Directory Id='LCMESG' Name='LC_MESSAGES'>\r
63                 <Component Id='SVNMO' Guid='3CD420FC-32B4-4413-84EE-BAEB77E04B06'>\r
64                   <File Id='MO' Name='Subversion.mo' DiskId='1' Source='Subversion.mo' Vital='no'></File>\r
65                 </Component>\r
66               </Directory>\r
67             </Directory>\r
68             <?endif?>\r
69           </Directory>\r
70         </Directory>\r
71       </Directory>\r
72 \r
73     </Directory>\r
74 \r
75     <Feature Id='Complete' Title='Binaries' Description='The complete language pack.'\r
76       Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'>\r
77       <Feature Id='Main' Title='Program' Description='The language pack files.' Level='1'>\r
78         <ComponentRef Id='Main' />\r
79         <?if $(env.TSVNMoFile) = "$COUNTRYCODE$" ?>\r
80         <ComponentRef Id='SVNMO' />\r
81         <?endif?>\r
82       </Feature>\r
83     </Feature>\r
84 \r
85     <UIRef Id="WixUI_LanguagePack" />\r
86     <UIRef Id="WixUI_ErrorProgressText" />\r
87 \r
88     <WixVariable Id="WixUIBannerBmp" Value="Banner.jpg" />\r
89     <WixVariable Id="WixUIDialogBmp" Value="Dialog.jpg" />\r
90 \r
91 \r
92 \r
93     <InstallExecuteSequence>\r
94       <!-- These 'Suppress' statements prevent the installer from getting\r
95            registered and from being shown in the software panel. With both\r
96            suppressed, the installer simply copies the files without any\r
97            trace left. -->\r
98       <PublishProduct Suppress='yes' />\r
99       <RegisterProduct Suppress='yes' />\r
100       <RegisterUser Suppress='yes' />\r
101       <PublishFeatures Suppress='yes' />\r
102     </InstallExecuteSequence>\r
103 \r
104   </Product>\r
105 </Wix>\r