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="{8771FF61-B4D9-4c35-A43D-946692E05E36}" ?>
7 <?define ResourceJAGUID="{A3DB3F56-B8EF-42ca-8891-26378B9A5DBE}" ?>
8 <?define DocumentGUID="{C703FEE3-D60F-476d-B5B0-3AAF157B506C}" ?>
10 <Product Name="!(loc.ProductName)"
11 Id="$(var.ProductGUID)"
12 UpgradeCode="$(var.ProductUpgradeCode)"
13 Language="!(loc.LanguageCode)"
14 Version="$(var.ProductVersion)" Manufacturer="!(loc.Manufacturer)">
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)" />
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" />
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="WikitravelXML" Name="Wikitravel.xml"
41 Source="..\Wptscs\Wikitravel.xml" Vital="no" />
42 <File Id="WiktionaryXML" Name="Wiktionary.xml"
43 Source="..\Wptscs\Wiktionary.xml" Vital="no" />
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" />
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" />
64 <Directory Id="ProgramMenuFolder" Name="Programs" />
67 <Feature Id="Complete" Level="1">
68 <ComponentRef Id="MainExecutable" />
69 <ComponentRef Id="ResourceJA" />
70 <ComponentRef Id="Document" />
73 <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
74 <UIRef Id="WixUI_InstallDir" />
75 <WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
77 <Property Id='ARPURLINFOABOUT'>!(loc.AppUrlInfoAbout)</Property>
78 <Property Id='ARPPRODUCTICON'>App.ico</Property>
80 <Icon Id="App.ico" SourceFile="..\Wptscs\App.ico" />
82 <Upgrade Id="$(var.ProductUpgradeCode)">
83 <UpgradeVersion OnlyDetect="yes" Property="NEWERFOUND"
84 Minimum="$(var.ProductVersion)" IncludeMinimum="no" />
86 <Upgrade Id='$(var.ProductUpgradeCode)'>
87 <UpgradeVersion OnlyDetect='no' Property='PREVIOUSFOUND'
88 Maximum='$(var.ProductVersion)' IncludeMaximum='no' />
91 <CustomAction Id="NoDowngrade" Error="!(loc.NoDowngradeMsg)" />
94 <Custom Action="NoDowngrade" After="FindRelatedProducts">NEWERFOUND</Custom>
96 <InstallExecuteSequence>
97 <Custom Action="NoDowngrade" After="FindRelatedProducts">NEWERFOUND</Custom>
98 <RemoveExistingProducts After="InstallFinalize" />
99 </InstallExecuteSequence>
101 <PropertyRef Id="NETFRAMEWORK40CLIENT"/>
102 <Condition Message="!(loc.NetFrameworkMsg)">
103 <![CDATA[Installed OR NETFRAMEWORK40CLIENT]]>