프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / MarkusAutoUpdate / SetupWix / Product.wxs @ 5622deac

이력 | 보기 | 이력해설 | 다운로드 (10.5 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2

    
3
<!-- The name of the product -->
4
<?define Name = "Markus Auto Update" ?>
5
<!-- The Description of the product -->
6
<?define Description = "Automatic update when running Markus." ?>
7
<!-- The manufacturer, for setup package publisher and folder info -->
8
<?define Manufacturer = "Doftech (c)" ?>
9
<!-- The version number of this setup package-->
10
<?define Version = "1.7.2" ?>
11
<!-- UpgradeCode must be unique and not changed once the first version of the program is installed. -->
12
<?define UpgradeCode = "{16D0E8BF-31DD-439C-BCB8-C3C414B18A44}" ?>
13
<!-- The name of the Cabinet -->
14
<?define CabName = "MarkusUpdate.cab" ?>
15

    
16
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"  xmlns:utilExt="http://schemas.microsoft.com/wix/UtilExtension" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
17
	<!-- Projects Build Path-->
18
	<?define NetSparkle.Samples.NetFramework.WPF_TargetDir=$(var.NetSparkle.Samples.NetFramework.WPF.TargetDir)?>
19
	<?define NetSparkle_TargetDir=$(var.NetSparkle.Samples.NetFramework.WPF.TargetDir)?>
20
	<?define NetSparkle.UI.WPF_TargetDir=$(var.NetSparkle.Samples.NetFramework.WPF.TargetDir)?>
21
	<?define IIpc_TargetDir=$(var.NetSparkle.Samples.NetFramework.WPF.TargetDir)?>
22
	<?define Kcom_TargetDir=$(var.Kcom.TargetDir)?>
23
	<?define MarkusUpdateExtract_Net_TargetDir=$(var.MarkusUpdateExtract_Net.TargetDir)?>
24
	<!--<?define NetSparkle_TargetDir=$(var.NetSparkle.UI.WPF.TargetDir)net452\?>
25
	<?define NetSparkle.UI.WPF_TargetDir=$(var.NetSparkle.UI.WPF.TargetDir)net452\?>
26
	<?define IIpc_TargetDir=$(var.IIpc.TargetDir)?>
27
	<?define Kcom_TargetDir=$(var.Kcom.TargetDir)?>-->
28
	
29
	<Product Id="*" Name="$(var.Name)" Language="1033" Version="$(var.Version)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
30
		<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Manufacturer="$(var.Manufacturer)" />
31
		<!--<Media Id="1" Cabinet="$(var.CabName)" EmbedCab="yes" />-->
32
		<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
33
		<!--Embed Cabinet into single msi file-->
34
		<Media Id="1" Cabinet="$(var.CabName)" EmbedCab="yes" />
35
		<WixVariable Id="WixUILicenseRtf" Value="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Resources/license.rtf" />
36
		<WixVariable Id="WixUIBannerBmp" Value="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Resources/DOFTECH_LOGO.bmp" />
37
		<WixVariable Id="WixUIDialogBmp" Value="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Resources/DialogImage.bmp" />
38
		<!--<Condition Message="This application requires .NET Framework 4.5.2 Please install the .NET Framework then run this installer again.">
39
			<![CDATA[Installed OR WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED]]>
40
		</Condition>-->
41
		<PropertyRef Id="WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED" />
42
		<Condition Message="This application requires .NET Framework 4.5.2 Please install the .NET Framework then run this installer again.">
43
			  <![CDATA[Installed OR WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED]]>
44
		</Condition>
45
		<Feature Id="ProductFeature" Title="$(var.Name)" Level="1">
46
			<ComponentGroupRef Id="ProductComponents" />
47
		</Feature>
48
		<Feature Id="Complete">
49
			<ComponentRef Id="REG_PROTOCOL_WRITE"/>
50
			<ComponentRef Id="REG_WARNONOPEN_WRITE"/>
51
		</Feature>
52
		<UI>
53
			<UIRef Id="WixUI_Minimal"/>
54
		</UI>
55
	</Product>
56
	<Fragment>
57
		<Directory Id="TARGETDIR" Name="SourceDir">
58
			<Directory Id="ProgramFiles64Folder">
59
				<Directory Id="ROOTDIRECTORY" Name="DOFTECH">
60
					<!-- Create a folder inside Company Name folder with Product Name-->
61
					<Directory Id="INSTALLFOLDER" Name="MarkusUpdate">
62
						<Directory Id="EXTRACT_INSTALLFOLDER" Name="MarkusExtractUpdate"/>
63
					</Directory>
64
				</Directory>
65
			</Directory>
66
		</Directory>
67
	</Fragment>
68
	<Fragment>
69
		<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
70
			<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
71
			<!-- <Component Id="ProductComponent"> -->
72
				<!-- TODO: Insert files, registry keys, and other resources here. -->
73
			<!-- </Component> -->
74
			<ComponentGroupRef Id="ProgramFilesFolder_files"/>
75
			<ComponentGroupRef Id="MarkusUpdateExtract_files"/>
76
		</ComponentGroup>
77
	</Fragment>
78
   <!--<Fragment>
79
    <DirectoryRef Id="TARGETDIR">
80
      <Component Id="cmp67889FD2219FCD1ECDA0BD9FE906CD7A" Guid="57D045D4-AFC0-4874-8BA9-A1E8B9C348F9" KeyPath="yes">
81
        <RegistryKey ForceCreateOnInstall="yes" Key="KCOM\shell\open" Root="HKCR" />
82
      </Component>
83
    </DirectoryRef>
84
  </Fragment>-->
85
  
86
  <!--Kcom:// url open-->
87
   <Fragment>
88
    <DirectoryRef Id="INSTALLFOLDER">
89
      <Component Id="REG_PROTOCOL_WRITE" Guid="D8795ADA-D3EC-4F34-86C3-7D6BE54420EA" KeyPath="yes">
90
        <RegistryKey Key="KCOM" Root="HKCR" Action="createAndRemoveOnUninstall">
91
          <RegistryValue Name="URL Protocol" Value="" Type="string" />
92
        </RegistryKey>
93
		<RegistryKey ForceCreateOnInstall="yes" Key="KCOM\shell" Root="HKCR" />
94
	       <RegistryKey Key="KCOM\shell\open\command" Root="HKCR" Action="createAndRemoveOnUninstall">
95
          <RegistryValue Value="&quot;[INSTALLFOLDER]Markus.AppUpdate.exe&quot; &quot;%1&quot;" Type="string" />
96
        </RegistryKey>
97
      </Component>
98
    </DirectoryRef>
99
  </Fragment>
100
  <Fragment>
101
    <DirectoryRef  Id="INSTALLFOLDER">
102
      <Component Id="REG_WARNONOPEN_WRITE" Guid="171260E2-66FC-4088-9F1F-3FAEB29250CA">
103
        <RegistryKey Key="Software\KCOM" Root="HKCU" Action="createAndRemoveOnUninstall" />
104
		<RegistryKey Key="Software\Microsoft\Internet Explorer\KCOM" Root="HKCU" Action="createAndRemoveOnUninstall">
105
			<RegistryValue Name="WarnOnOpen" Value="0" Type="integer" />
106
        </RegistryKey>
107
		 <RegistryKey Key="Software\KCOM" Root="HKLM" Action="createAndRemoveOnUninstall" />
108
      </Component>
109
    </DirectoryRef>
110
  </Fragment>
111
	<Fragment>
112
	  <ComponentGroup Id="ProgramFilesFolder_files" Directory="INSTALLFOLDER">
113
	    <Component Id="Log.config" Guid="9bac7a56-e2be-41d4-b869-fc9730d89dfc">
114
	      <File Id="Log.config" Name="Log.config" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Log.config" />
115
	    </Component>
116
	    <Component Id="Markus.AppUpdate.ini" Guid="531ed1f4-148c-4849-9fb8-b45425f028be">
117
			<RemoveFile Id="remove_comp_12D9BA535F5443E0B23AF72ED10A3385" Name="Markus.AppUpdate.ini" On="install"/>
118
			<File Id="Markus.AppUpdate.ini" Name="Markus.AppUpdate.ini" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Markus.AppUpdate.ini" />
119
	    </Component>
120
	    <Component Id="MARKUS.ini" Guid="406e6027-fcfc-47e9-bff8-868bae6b9498">
121
			<RemoveFile Id="remove_comp_12D9BA535F5443E0B23AF72ED10A3381" Name="MARKUS.ini" On="install"/>
122
	      <File Id="MARKUS.ini" Name="MARKUS.ini" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)MARKUS.ini" />
123
	    </Component>
124
	    <Component Id="Markus.AppUpdate.exe" Guid="7855cf56-af12-40f8-8a44-3740268876e3">
125
	      <File Id="Markus.AppUpdate.exe" Name="Markus.AppUpdate.exe" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Markus.AppUpdate.exe" />
126
	    </Component>
127
	    <Component Id="Markus.AppUpdate.exe.config" Guid="992bc69f-c3c5-4e68-9e61-933017300ec7">
128
	      <File Id="Markus.AppUpdate.exe.config" Name="Markus.AppUpdate.exe.config" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Markus.AppUpdate.exe.config" />
129
	    </Component>
130
	    <Component Id="NetSparkle.dll" Guid="75b25671-7b5f-478f-9cc2-6190b9266e09">
131
	      <File Id="NetSparkle.dll" Name="NetSparkle.dll" Source="$(var.NetSparkle_TargetDir)NetSparkle.dll" />
132
	    </Component>
133
	    <Component Id="ConfigParser.dll" Guid="9ea73b97-bd10-489d-8fff-c4cdb94ef8eb">
134
	      <File Id="ConfigParser.dll" Name="ConfigParser.dll" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)ConfigParser.dll" />
135
	    </Component>
136
	    <Component Id="log4net.dll" Guid="28e72c39-3ded-4042-8679-394f23e19341">
137
	      <File Id="log4net.dll" Name="log4net.dll" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)log4net.dll" />
138
	    </Component>
139
	    <Component Id="NetSparkle.UI.WPF.dll" Guid="74deb7fa-1d41-4bee-9713-c47eb970f3a8">
140
	      <File Id="NetSparkle.UI.WPF.dll" Name="NetSparkle.UI.WPF.dll" Source="$(var.NetSparkle.UI.WPF_TargetDir)NetSparkle.UI.WPF.dll" />
141
	    </Component>
142
	    <Component Id="IIpc.dll" Guid="996e8122-db02-4132-9de0-144dcb8635d9">
143
	      <File Id="IIpc.dll" Name="IIpc.dll" Source="$(var.IIpc_TargetDir)IIpc.dll" />
144
	    </Component>
145
	    <Component Id="BouncyCastle.Crypto.dll" Guid="4c7cf6c2-b024-48c3-bad1-c6af9d16c3af">
146
	      <File Id="BouncyCastle.Crypto.dll" Name="BouncyCastle.Crypto.dll" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)BouncyCastle.Crypto.dll" />
147
	    </Component>
148
	    <Component Id="Newtonsoft.Json.dll" Guid="8d3bdd17-ae86-4686-a51a-153143f29a76">
149
	      <File Id="Newtonsoft.Json.dll" Name="Newtonsoft.Json.dll" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Newtonsoft.Json.dll" />
150
	    </Component>
151
	    <Component Id="Kcom.exe" Guid="eb074842-fe01-4ee4-8440-ba6630a65e50">
152
	      <File Id="Kcom.exe" Name="Kcom.exe" Source="$(var.Kcom_TargetDir)Kcom.exe" />
153
	    </Component>
154
	    <Component Id="Kcom.exe.config" Guid="01d01d56-6de0-4844-b8f3-b1fae4a4bdae">
155
	      <File Id="Kcom.exe.config" Name="Kcom.exe.config" Source="$(var.Kcom_TargetDir)Kcom.exe.config" />
156
	    </Component>
157
	  </ComponentGroup>
158
	</Fragment>
159
	<Fragment>
160
	  <ComponentGroup Id="MarkusUpdateExtract_files" Directory="EXTRACT_INSTALLFOLDER">
161
	    <Component Id="MarkusUpdateExtract.exe" Guid="8f9a8aeb-d455-4c95-8730-63bafefe9541">
162
	      <File Id="MarkusUpdateExtract.exe" Name="MarkusUpdateExtract.exe" Source="$(var.MarkusUpdateExtract_Net_TargetDir)MarkusUpdateExtract.exe" />
163
	    </Component>
164
	    <Component Id="MarkusUpdateExtract.exe.config" Guid="72c14e98-001a-41ff-b81e-f2a2fe733175">
165
	      <File Id="MarkusUpdateExtract.exe.config" Name="MarkusUpdateExtract.exe.config" Source="$(var.MarkusUpdateExtract_Net_TargetDir)MarkusUpdateExtract.exe.config" />
166
	    </Component>
167
	  	<Component Id="log4net.dll2" Guid="28e72c39-3ded-4042-8679-394f23e19343">
168
	      <File Id="log4net.dll2" Name="log4net.dll" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)log4net.dll" />
169
	    </Component>
170
	    <Component Id="IIpc.dll2" Guid="996e8122-db02-4132-9de0-144dcb8635d1">
171
	      <File Id="IIpc.dll2" Name="IIpc.dll" Source="$(var.IIpc_TargetDir)IIpc.dll" />
172
	    </Component>
173
	     <Component Id="Log.config2" Guid="9bac7a56-e2be-41d4-b869-fc9730d89dfa">
174
	      <File Id="Log.config2" Name="Log.config" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Log.config" />
175
	    </Component>
176
	  </ComponentGroup>
177
	</Fragment>
178
</Wix>
클립보드 이미지 추가 (최대 크기: 500 MB)