OSDN Git Service

Add user Config and remote config to setting dialog
[tortoisegit/TortoiseGitJp.git] / src / TortoiseGitSetup / TortoiseSVN.wxs
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">\r
3         <?include Includes.wxi?>\r
4         <Product\r
5         UpgradeCode="$(var.UpgradeGuid)"\r
6         Name="$(var.ProductName) $(var.VersionNumberUserVisible) $(var.PlatformUserVisible)"\r
7         Id="EB66C774-5CFC-41f6-9C03-CE4F9037150A"\r
8         Version="$(var.VersionNumberInternal)"\r
9         Manufacturer="TortoiseGit"\r
10         Language="1033">\r
11                 <Package\r
12                 Id="82B77BC3-0ACD-4a53-A34F-3F203E59D51A"\r
13                 Keywords="$(var.PackageKeywords)"\r
14                 Description="$(var.PackageDescription)"\r
15                 Comments="$(var.PackageComments)"\r
16                 Manufacturer="$(var.PackageManufacturer)"\r
17                 InstallerVersion="300"\r
18                 Platform="$(var.PackagePlatforms)"\r
19                 Languages="1033"\r
20                 Compressed="yes"\r
21                 SummaryCodepage="1252"/>\r
22 \r
23                 <Upgrade Id="$(var.UpgradeGuid)" >\r
24                         <!-- upgrade is flagged if current-install is newer than or equal to package - TODO: should make a dialog appear asking user to confirm downgrade.  -->\r
25                         <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.VersionNumberInternal)" OnlyDetect="yes" />\r
26 \r
27                         <!-- flag is set if the install will trigger an upgrade of an existing install -->\r
28       <!--\r
29                         <UpgradeVersion Property="PREVIOUSVERSIONSINSTALLED" Maximum="$(var.VersionNumberInternal)" IncludeMaximum="no" />\r
30                 --></Upgrade>\r
31 \r
32                 <Media Id="1" Cabinet="TSVN.cab" EmbedCab="yes" CompressionLevel="high" />\r
33 \r
34                 <Icon Id="TSVNIcon" SourceFile="..\Resources\Tortoise.ico" />\r
35 \r
36                 <Property Id="SSHRadio">Plink</Property>\r
37                           \r
38                 <!-- Launch Condition related properties ................................................................................. -->\r
39                 <Property Id="VERSIONIE">\r
40                         <RegistrySearch Id="RegSearchIeVersion" Root="HKLM" Key="SOFTWARE\Microsoft\Internet Explorer" Name="Version" Type="raw" Win64="$(var.Win64YesNo)"/>\r
41                 </Property>\r
42                 <Condition Message="[ProductName] needs at least Internet Explorer 5">NOT ((VERSIONIE&lt;&lt;"1") OR (VERSIONIE&lt;&lt;"2") OR (VERSIONIE&lt;&lt;"3") OR (VERSIONIE&lt;&lt;"4"))</Condition>\r
43 \r
44                 <?if $(var.Platform) = "win32" ?>\r
45                 <Property Id="GDIPLUSINSTALLED">\r
46                         <DirectorySearch Id="WND" Path="[SystemFolder]">\r
47                                 <FileSearch LongName="GDIPlus.dll" />\r
48                         </DirectorySearch>\r
49                 </Property>\r
50                 <Condition Message="You must have GDIPlus installed. Please download it from Microsoft and copy the GDIPlus.dll into your Windows\System32 folder."><![CDATA[((GDIPLUSINSTALLED<>"") OR (VersionNT <> 500))]]></Condition>\r
51                 <?endif ?>\r
52 \r
53                 <Property Id="ShowChangelogCheck">1</Property>\r
54                 <Property Id="ALLUSERS">1</Property>\r
55                 \r
56                 <Condition Message="[ProductName] requires a Windows NT based OS (Windows 2000 or later, specifically).">VersionNT</Condition>\r
57                 <Condition Message="[ProductName] requires Windows 2000 or later."><![CDATA[VersionNT >= 500]]></Condition>\r
58 \r
59                 <!-- Show/Don't-show changelog related properties and custom actions ..................................................... -->\r
60                 <Property Id="TEXTEDITOR">\r
61                         <DirectorySearch Id="FileSearchTextEditorExe" Path="[WindowsFolder]">\r
62                                 <FileSearch Id="FileSearchTextEditorExe" Name="notepad.exe" />\r
63                         </DirectorySearch>\r
64                 </Property>\r
65                 <CustomAction Id="Set_ShowChangelog" Property="ShowChangelog" Value="Yes" Return="check" />\r
66                 <CustomAction Id="ShowChangelogAction" Property="TEXTEDITOR" ExeCommand="[INSTALLDIR]changelog.txt" Return="asyncNoWait" />\r
67         \r
68     <CustomAction Id="ShowDonatePage" BinaryKey="CustomActionsDLL" DllEntry="OpenDonatePage" />\r
69                 \r
70 \r
71     <CustomAction Id="KillCache" BinaryKey="CustomActionsDLL" DllEntry="TerminateCache" />\r
72                 <Binary Id="CustomActionsDLL" src="..\..\bin\$(var.ReleasePath)\bin\CustomActions.dll" />\r
73 \r
74                 <!-- Unsafe-check properties and custom actions .......................................................................... -->\r
75                 <Property Id="VSDUIANDADVERTISED">This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of the package to basic.</Property>\r
76                 <CustomAction Id="ERRCA_UIANDADVERTISED" Error="[VSDUIANDADVERTISED]" />\r
77 \r
78                 <!-- Figure out where a previous installation was, if any ................................................................ -->\r
79                 <?if $(var.Platform) = "x64" ?>\r
80                 <CustomAction Id="DefaultTargetDir" Property="INSTALLDIR" Value="[ProgramFiles64Folder]$(var.ProductName)" Execute="immediate" />\r
81                 <Property Id="INSTALLDIR">\r
82                         <RegistrySearch Id="PreviousInstallLocationRegistrySearch" Root="HKLM" Key="Software\[Manufacturer]" Name="Directory" Type="raw" Win64="$(var.Win64YesNo)"/>\r
83                 </Property>\r
84                 <?else ?>\r
85                 <CustomAction Id="DefaultTargetDir" Property="INSTALLDIR" Value="[ProgramFilesFolder]$(var.ProductName)" Execute="immediate" />\r
86                 <Property Id="INSTALLDIR">\r
87                         <RegistrySearch Id="PreviousInstallLocationRegistrySearch" Root="HKLM" Key="Software\[Manufacturer]" Name="Directory" Type="raw" Win64="$(var.Win64YesNo)"/>\r
88                 </Property>\r
89                 <?endif ?>\r
90     \r
91         \r
92     <?include FeaturesFragment.wxi?>\r
93     <?include StructureFragment.wxi?>\r
94     <?include UIFragment.wxi?>\r
95     \r
96     <!--\r
97                 <FragmentRef Id="StructureFragment"/>\r
98 \r
99                 <FragmentRef Id="FeaturesFragment" />\r
100 \r
101                 <FragmentRef Id="UIFragment" />\r
102     -->\r
103                 <!-- Execute Sequencing ................................................................................................. -->\r
104                 <AdminExecuteSequence />\r
105                 <InstallExecuteSequence>\r
106                         <!-- AppSearch must be done before RemoveExistingProducts and before FindRelatedProducts -->\r
107                         <AppSearch Sequence="1"></AppSearch>\r
108                         <LaunchConditions After="AppSearch" />\r
109                         <Custom Action="DefaultTargetDir" After="LaunchConditions">INSTALLDIR=""</Custom>\r
110       \r
111                         <RemoveExistingProducts After="InstallFinalize"><![CDATA[PREVIOUSVERSIONSINSTALLED OR (NOT NEWERVERSIONDETECTED AND OKTODOWNGRADE = 1)]]></RemoveExistingProducts>\r
112           \r
113       <Custom Action="KillCache" After="RemoveExistingProducts">Installed</Custom>\r
114       \r
115                         <ScheduleReboot After="RegisterProduct" />\r
116                 </InstallExecuteSequence>\r
117 \r
118                 <!-- UI Sequencing ...................................................................................................... -->\r
119                 <AdminUISequence>\r
120                         <Show Dialog="FatalErrorDlg" OnExit="error" />\r
121                         <Show Dialog="UserExit" OnExit="cancel" />\r
122                         <Show Dialog="ExitDlg" OnExit="success" />\r
123                         <Show Dialog="PrepareDlg" Before="CostInitialize"><![CDATA[]]></Show>\r
124                         <Show Dialog="AdminWelcomeDlg" After="CostFinalize" />\r
125                         <Show Dialog="ProgressDlg" After="AdminWelcomeDlg" />\r
126                 </AdminUISequence>\r
127                 <InstallUISequence>\r
128                         <Show Dialog="FatalErrorDlg" OnExit="error" />\r
129                         <Show Dialog="UserExit" OnExit="cancel" />\r
130                         <Show Dialog="ExitDlg" OnExit="success" />\r
131                         <Show Dialog="PrepareDlg" After="LaunchConditions" />\r
132                         <Show Dialog="WelcomeDlg" After="MigrateFeatureStates"><![CDATA[NOT Installed]]></Show>\r
133                         <Show Dialog="ResumeDlg" After="WelcomeDlg"><![CDATA[Installed AND (RESUME OR Preselected)]]></Show>\r
134                         <Show Dialog="MaintenanceWelcomeDlg" After="ResumeDlg"><![CDATA[Installed AND NOT RESUME AND NOT Preselected]]></Show>\r
135                         <Show Dialog="ProgressDlg" After="MaintenanceWelcomeDlg" />\r
136 \r
137                         <FindRelatedProducts Suppress="no">1</FindRelatedProducts>\r
138 \r
139                         <Custom Action="DefaultTargetDir" After="PrepareDlg">INSTALLDIR=""</Custom>\r
140                         <Custom Action="ERRCA_UIANDADVERTISED" Before="AppSearch">ProductState=1</Custom>\r
141                         <Custom Action="Set_ShowChangelog" After="AppSearch">NOT Installed</Custom>\r
142                 </InstallUISequence>\r
143         </Product>\r
144 </Wix>\r
145 \r
146 \r