OSDN Git Service

6f80ca1bf40e34564898d32af30a5e6a82e9b530
[completeeraser/CompleteEraser.git] / Installer / installer.xml
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"\r
3   xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">\r
4 \r
5   <!-- バージョンアップ時にはProductVersionとProductのId属性を更新すること -->\r
6   <?define UpgradeCode = "ABE07AF2-98D1-44B2-A05F-E2A94271F7A7"?>\r
7   <?define ProductVersion = "1.12.0"?>\r
8 \r
9   <Product Name="CompleteEraser"\r
10            Id="39D5D450-1F1F-4F57-9C98-0F64CDA051AA"\r
11            UpgradeCode="$(var.UpgradeCode)"\r
12            Language="1041" Codepage="932"\r
13            Version="$(var.ProductVersion)" Manufacturer="FooProject">\r
14 \r
15    <Package Id="*" Keywords="Installer"\r
16              Description="CompleteEraserインストーラー"\r
17              Comments="ファイルを復元不能にしてから削除します"\r
18              Manufacturer="FooProject" InstallerVersion="300"\r
19              Languages="1041" Compressed="yes" SummaryCodepage="932" />\r
20     <Media Id="1" Cabinet="Product.cab" EmbedCab="yes" />\r
21 \r
22     <PropertyRef Id="NETFRAMEWORK40FULL"/>\r
23     <Condition Message="このアプリケーションを実行するには.NET Framework4.0が必要です">\r
24       <![CDATA[Installed OR NETFRAMEWORK40FULL]]>\r
25     </Condition>\r
26 \r
27     <Directory Id="TARGETDIR" Name="SourceDir">\r
28      <?if $(sys.BUILDARCH) = "x64"?>\r
29      <Directory Id="ProgramFiles64Folder">\r
30       <Directory Id="PFFolder" />\r
31      </Directory>\r
32      <?else?>\r
33      <Directory Id="ProgramFilesFolder">\r
34       <Directory Id="PFFolder" />\r
35      </Directory>\r
36      <?endif?>\r
37     </Directory>\r
38 \r
39     <DirectoryRef Id="PFFolder">\r
40      <Directory Id="FooProject" Name="FooProject">\r
41       <Directory Id="INSTALLDIR" Name="CompleteEraser">\r
42         <Component Id="RegistryEntries" Guid="0B8DCAC5-6CB0-402A-9D39-66E63A886656" KeyPath="yes">\r
43          <RegistryKey Root="HKLM"\r
44           Key="Software\Classes\CLSID\{112143A6-62C1-4478-9E8F-872699255E2E}"\r
45           Action="createAndRemoveOnUninstall">\r
46           <RegistryValue Type="string" Value="ShellExtension Sample"/>\r
47          </RegistryKey>\r
48          <RegistryKey Root="HKLM"\r
49           Key="Software\Classes\CLSID\{112143A6-62C1-4478-9E8F-872699255E2E}\InprocServer32"\r
50           Action="createAndRemoveOnUninstall">\r
51           <RegistryValue Type="string" Value="[!File1]"/>\r
52           <RegistryValue Type="string" Name="ThreadingModel" Value="Apartment"/>\r
53          </RegistryKey>\r
54          <RegistryKey Root="HKLM"\r
55           Key="Software\Classes\*\shellex\ContextMenuHandlers\{112143A6-62C1-4478-9E8F-872699255E2E}"\r
56           Action="createAndRemoveOnUninstall">\r
57          </RegistryKey>\r
58          <RegistryKey Root="HKLM"\r
59           Key="Software\Classes\Directory\shellex\ContextMenuHandlers\{112143A6-62C1-4478-9E8F-872699255E2E}"\r
60           Action="createAndRemoveOnUninstall">\r
61          </RegistryKey>\r
62          <RegistryKey Root="HKLM"\r
63           Key="Software\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shellex\ContextMenuHandlers\{112143A6-62C1-4478-9E8F-872699255E2E}"\r
64           Action="createAndRemoveOnUninstall">\r
65          </RegistryKey>\r
66         </Component>\r
67 \r
68         <Component Id="Main"\r
69          Guid="C32A3290-9F3B-44BE-9248-A92898846E82" KeyPath="yes">\r
70          <?if $(sys.BUILDARCH) = "x64"?>\r
71            <File Id="File1" Name="ShellExtension.dll"\r
72             DiskId="1" Source="dist\ShellExtension.x64.dll"/>\r
73          <?else?>\r
74            <File Id="File1" Name="ShellExtension.dll"\r
75             DiskId="1" Source="dist\ShellExtension.x86.dll"/>\r
76          <?endif?>\r
77          <File Id="File2" Name="CompleteEraser.exe"\r
78           DiskId="1" Source="dist\CompleteEraser.exe"/>\r
79          <File Id="File3" Name="help.txt"\r
80           DiskId="1" Source="dist\help.txt"/>\r
81          <File Id="File4" Name="CompleteEraser.exe.config"\r
82           DiskId="1" Source="dist\CompleteEraser.exe.config"/>\r
83          </Component>\r
84        </Directory>\r
85       </Directory>\r
86     </DirectoryRef>\r
87 \r
88     <Feature Id="Complete" Title="CompleteEraser" Description="ファイルを復元不能にしてから削除します"\r
89       Display="expand" Level="1" ConfigurableDirectory="INSTALLDIR">\r
90       <ComponentRef Id="Main" />\r
91       <ComponentRef Id="RegistryEntries" />\r
92     </Feature>\r
93 \r
94     <UIRef Id="WixUI_Mondo" />\r
95     <UIRef Id="WixUI_ErrorProgressText" />\r
96 \r
97     <WixVariable Id="WixUILicenseRtf" Value="License.rtf" />\r
98 \r
99     <Property Id="ARPHELPLINK">http://sourceforge.jp/projects/completeeraser/forums/</Property>\r
100     <Property Id="ARPURLINFOABOUT">http://sourceforge.jp/projects/completeeraser/</Property>\r
101 \r
102     <InstallExecuteSequence>\r
103         <RemoveExistingProducts After="InstallInitialize"/>\r
104     </InstallExecuteSequence>\r
105 \r
106     <Condition Message="[ProductName]の最新バージョンは既にインストールされています">\r
107       NOT NEWERVERSIONDETECTED OR Installed\r
108     </Condition>\r
109 \r
110     <Upgrade Id="$(var.UpgradeCode)">\r
111         <UpgradeVersion Minimum="1.0.0"\r
112                         IncludeMinimum="yes"\r
113                         Maximum="$(var.ProductVersion)"\r
114                         Property="OLDERVERSIONBEINGUPGRADED" />\r
115         <UpgradeVersion Minimum="$(var.ProductVersion)"\r
116                         OnlyDetect="yes"\r
117                         Property="NEWERVERSIONDETECTED" />\r
118     </Upgrade>\r
119 \r
120   </Product>\r
121 </Wix>\r