OSDN Git Service

#30840 画面のデザインが崩れていたのを修正,
[wptscs/wpts.git] / Installer / Wptscs.wxs
1 <?xml version="1.0" encoding="utf-8"?>
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3   <?define ProductVersion="1.3.0" ?>
4   <?define ProductGUID="{3266949E-9E73-49B8-BC63-EB7B5ABE7586}" ?>
5   <?define ProductUpgradeCode="{8A17447B-F484-4b42-98C4-317216CCEB78}" ?>
6   <?define MainExecutableGUID="{3F07C4BD-A267-4E3D-B1A5-4F5F36ABC681}" ?>
7   <?define ResourceJAGUID="{A3DB3F56-B8EF-42ca-8891-26378B9A5DBE}" ?>
8   <?define DocumentGUID="{C703FEE3-D60F-476d-B5B0-3AAF157B506C}" ?>
9
10   <Product Name="!(loc.ProductName)"
11            Id="$(var.ProductGUID)"
12            UpgradeCode="$(var.ProductUpgradeCode)"
13            Language="!(loc.LanguageCode)"
14            Version="$(var.ProductVersion)" Manufacturer="!(loc.Manufacturer)">
15
16     <Package Id="*" Keywords="!(loc.PackageKeywords)"
17              Description="!(loc.PackageDescription)"
18              Manufacturer="!(loc.Manufacturer)" InstallerVersion="200"
19              Languages="!(loc.LanguageCode)" Compressed="yes" SummaryCodepage="!(loc.CodepageCode)" />
20
21     <Media Id="1" Cabinet="wptscs.cab" EmbedCab="yes" />
22     <Directory Id="TARGETDIR" Name="SourceDir">
23       <Directory Id="ProgramFilesFolder">
24         <Directory Id="HonememoDir" Name="Honememo">
25           <Directory Id="INSTALLDIR" Name="Wptscs">
26             <Component Id="MainExecutable" Guid="$(var.MainExecutableGUID)">
27               <File Id="WptscsEXE" Name="wptscs.exe"
28                     Source="..\Wptscs\bin\Release\wptscs.exe"
29                     KeyPath="yes" Checksum="yes">
30                 <Shortcut Id="startmenuWptscs" Directory="ProgramMenuFolder"
31                           Name="!(loc.ExeShortcutName)" WorkingDirectory="INSTALLDIR"
32                           Icon="App.ico" IconIndex="0" Advertise="yes" />
33               </File>
34               <File Id="WptscsConfig" Name="wptscs.exe.config"
35                     Source="..\Wptscs\bin\Release\wptscs.exe.config" />
36               <File Id="HmlibDLL" Name="hmlib.dll"
37                     Source="..\Wptscs\bin\Release\hmlib.dll" Checksum="yes" />
38               <File Id="WikipediaXML" Name="Wikipedia.xml"
39                     Source="..\Wptscs\Wikipedia.xml" />
40               <File Id="WikivoyageXML" Name="Wikivoyage.xml"
41                     Source="..\Wptscs\Wikivoyage.xml" Vital="no" />
42               <File Id="WiktionaryXML" Name="Wiktionary.xml"
43                     Source="..\Wptscs\Wiktionary.xml" Vital="no" />
44             </Component>
45
46             <Directory Id="ResourceDirJA" Name="ja">
47               <Component Id="ResourceJA" Guid="$(var.ResourceJAGUID)">
48                 <File Id="WptscsResourcesDLLJA" Name="wptscs.resources.dll"
49                       Source="..\Wptscs\bin\Release\ja/wptscs.resources.dll"
50                       KeyPath="yes" Vital="no" />
51               </Component>
52             </Directory>
53
54             <Component Id="Document" Guid="$(var.DocumentGUID)">
55               <File Id="ReadmeTXT" Name="Readme.txt"
56                     Source="..\Wptscs\Readme.txt" KeyPath="yes" Vital="no" />
57               <File Id="LicenseTXT" Name="License.txt"
58                     Source="..\Wptscs\License.txt" Vital="no" />
59             </Component>
60           </Directory>
61         </Directory>
62       </Directory>
63
64       <Directory Id="ProgramMenuFolder" Name="Programs" />
65     </Directory>
66
67     <Feature Id="Complete" Level="1">
68       <ComponentRef Id="MainExecutable" />
69       <ComponentRef Id="ResourceJA" />
70       <ComponentRef Id="Document" />
71     </Feature>
72
73     <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
74     <UIRef Id="WixUI_InstallDir" />
75     <WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
76
77     <Property Id='ARPURLINFOABOUT'>!(loc.AppUrlInfoAbout)</Property>
78     <Property Id='ARPPRODUCTICON'>App.ico</Property>
79
80     <Icon Id="App.ico" SourceFile="..\Wptscs\App.ico" />
81
82     <Upgrade Id="$(var.ProductUpgradeCode)">
83       <UpgradeVersion OnlyDetect="yes" Property="NEWERFOUND"
84                       Minimum="$(var.ProductVersion)" IncludeMinimum="no" />
85     </Upgrade>
86     <Upgrade Id='$(var.ProductUpgradeCode)'>
87       <UpgradeVersion OnlyDetect='no' Property='PREVIOUSFOUND'
88                       Maximum='$(var.ProductVersion)' IncludeMaximum='no' />
89     </Upgrade>
90
91     <CustomAction Id="NoDowngrade" Error="!(loc.NoDowngradeMsg)" />
92
93     <InstallUISequence>
94       <Custom Action="NoDowngrade" After="FindRelatedProducts">NEWERFOUND</Custom>
95     </InstallUISequence>
96     <InstallExecuteSequence>
97       <Custom Action="NoDowngrade" After="FindRelatedProducts">NEWERFOUND</Custom>
98       <RemoveExistingProducts After="InstallInitialize" />
99     </InstallExecuteSequence>
100
101     <PropertyRef Id="NETFRAMEWORK40CLIENT"/>
102     <Condition Message="!(loc.NetFrameworkMsg)">
103       <![CDATA[Installed OR NETFRAMEWORK40CLIENT]]>
104     </Condition>
105   </Product>
106 </Wix>