프로젝트

일반

사용자정보

개정판 2013a5bd

ID2013a5bd4ae22d12eadded0d690350b8682bee45
상위 4b5077f0
하위 a0fd1a4c

김태성이(가) 4년 이상 전에 추가함

wix setup 추가

Change-Id: I0919f7f3d23d8d11d9f7f811dc10a50ca38299df

차이점 보기:

MarkusAutoUpdate/SetupWix/Product.wxs
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.0.0" ?>
11
<!-- UpgradeCode must be unique and not changed once the first version of the program is installed. -->
12
<?define UpgradeCode = "{25DA3824-3F14-4040-826B-F8D1783E1288}" ?>
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
	<!-- 참조된 프로젝트의 빌드 후 경로(오류시 프로젝트 참조 추가)-->
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
		
36
		<!--<Condition Message="This application requires .NET Framework 4.5.2 Please install the .NET Framework then run this installer again.">
37
			<![CDATA[Installed OR WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED]]>
38
		</Condition>-->
39
		<PropertyRef Id="WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED" />
40
		<Condition Message="This application requires .NET Framework 4.5.2 Please install the .NET Framework then run this installer again.">
41
			  <![CDATA[Installed OR WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED]]>
42
		</Condition>
43
		<Feature Id="ProductFeature" Title="$(var.Name)" Level="1">
44
			<ComponentGroupRef Id="ProductComponents" />
45
		</Feature>
46
		<Feature Id="Complete">
47
			<ComponentRef Id="REG_PROTOCOL_WRITE"/>
48
			<ComponentRef Id="REG_WARNONOPEN_WRITE"/>
49
		</Feature>
50
	</Product>
51

  
52
	<Fragment>
53
		<Directory Id="TARGETDIR" Name="SourceDir">
54
			<Directory Id="ProgramFiles64Folder">
55
				<Directory Id="ROOTDIRECTORY" Name="DOFTECH">
56
					<!-- Create a folder inside Company Name folder with Product Name-->
57
					<Directory Id="INSTALLFOLDER" Name="MarkusUpdate">
58
						<Directory Id="EXTRACT_INSTALLFOLDER" Name="MarkusExtractUpdate"/>
59
					</Directory>
60
				</Directory>
61
			</Directory>
62
		</Directory>
63
	</Fragment>
64
	<Fragment>
65
		<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
66
			<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
67
			<!-- <Component Id="ProductComponent"> -->
68
				<!-- TODO: Insert files, registry keys, and other resources here. -->
69
			<!-- </Component> -->
70
			<ComponentGroupRef Id="ProgramFilesFolder_files"/>
71
			<ComponentGroupRef Id="MarkusUpdateExtract_files"/>
72
		</ComponentGroup>
73
	</Fragment>
74
   <!--<Fragment>
75
    <DirectoryRef Id="TARGETDIR">
76
      <Component Id="cmp67889FD2219FCD1ECDA0BD9FE906CD7A" Guid="57D045D4-AFC0-4874-8BA9-A1E8B9C348F9" KeyPath="yes">
77
        <RegistryKey ForceCreateOnInstall="yes" Key="KCOM\shell\open" Root="HKCR" />
78
      </Component>
79
    </DirectoryRef>
80
  </Fragment>-->
81
  
82
  <!--Kcom:// url open-->
83
   <Fragment>
84
    <DirectoryRef Id="INSTALLFOLDER">
85
      <Component Id="REG_PROTOCOL_WRITE" Guid="D8795ADA-D3EC-4F34-86C3-7D6BE54420EA" KeyPath="yes">
86
        <RegistryKey Key="KCOM" Root="HKCR" Action="createAndRemoveOnUninstall">
87
          <RegistryValue Name="URL Protocol" Value="" Type="string" />
88
        </RegistryKey>
89
		<RegistryKey ForceCreateOnInstall="yes" Key="KCOM\shell" Root="HKCR" />
90
	       <RegistryKey Key="KCOM\shell\open\command" Root="HKCR" Action="createAndRemoveOnUninstall">
91
          <RegistryValue Value="&quot;[INSTALLFOLDER]\Markus.AppUpdate.exe&quot; &quot;%1&quot;" Type="string" />
92
        </RegistryKey>
93
      </Component>
94
    </DirectoryRef>
95
  </Fragment>
96
  <Fragment>
97
    <DirectoryRef  Id="INSTALLFOLDER">
98
      <Component Id="REG_WARNONOPEN_WRITE" Guid="171260E2-66FC-4088-9F1F-3FAEB29250CA" KeyPath="yes">
99
        <RegistryKey Key="Software\KCOM" Root="HKCU" Action="createAndRemoveOnUninstall" />
100
		<RegistryKey Key="Software\Microsoft\Internet Explorer\KCOM" Root="HKCU" Action="createAndRemoveOnUninstall">
101
			<RegistryValue Name="WarnOnOpen" Value="0" Type="integer" />
102
        </RegistryKey>
103
		 <RegistryKey Key="Software\KCOM" Root="HKLM" Action="createAndRemoveOnUninstall" />
104
      </Component>
105
    </DirectoryRef>
106
  </Fragment>
107
<!--explorer의 확인창 표시여부--><!--
108
 <Fragment>
109
    <DirectoryRef Id="TARGETDIR">
110
      <Component Id="cmpEB1634EB055BA192F2B44B8310392EAD" Guid="D8795ADA-D3EC-4F34-86C3-7D6BE54420EA" KeyPath="yes">
111
        <RegistryKey Key="KCOM" Root="HKCR">
112
          <RegistryValue Name="URL Protocol" Value="" Type="expandable" />
113
        </RegistryKey>
114
      </Component>
115
    </DirectoryRef>
116
  </Fragment>-->
117
	<Fragment>
118
	  <ComponentGroup Id="ProgramFilesFolder_files" Directory="INSTALLFOLDER">
119
	    <Component Id="Log.config" Guid="9bac7a56-e2be-41d4-b869-fc9730d89dfc">
120
	      <File Id="Log.config" Name="Log.config" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Log.config" />
121
	    </Component>
122
	    <Component Id="Markus.AppUpdate.ini" Guid="531ed1f4-148c-4849-9fb8-b45425f028be">
123
	      <File Id="Markus.AppUpdate.ini" Name="Markus.AppUpdate.ini" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Markus.AppUpdate.ini" />
124
	    </Component>
125
	    <Component Id="MARKUS.ini" Guid="406e6027-fcfc-47e9-bff8-868bae6b9498">
126
	      <File Id="MARKUS.ini" Name="MARKUS.ini" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)MARKUS.ini" />
127
	    </Component>
128
	    <Component Id="Markus.AppUpdate.exe" Guid="7855cf56-af12-40f8-8a44-3740268876e3">
129
	      <File Id="Markus.AppUpdate.exe" Name="Markus.AppUpdate.exe" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Markus.AppUpdate.exe" />
130
	    </Component>
131
	    <Component Id="Markus.AppUpdate.exe.config" Guid="992bc69f-c3c5-4e68-9e61-933017300ec7">
132
	      <File Id="Markus.AppUpdate.exe.config" Name="Markus.AppUpdate.exe.config" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Markus.AppUpdate.exe.config" />
133
	    </Component>
134
	    <Component Id="NetSparkle.dll" Guid="75b25671-7b5f-478f-9cc2-6190b9266e09">
135
	      <File Id="NetSparkle.dll" Name="NetSparkle.dll" Source="$(var.NetSparkle_TargetDir)NetSparkle.dll" />
136
	    </Component>
137
	    <Component Id="ConfigParser.dll" Guid="9ea73b97-bd10-489d-8fff-c4cdb94ef8eb">
138
	      <File Id="ConfigParser.dll" Name="ConfigParser.dll" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)ConfigParser.dll" />
139
	    </Component>
140
	    <Component Id="log4net.dll" Guid="28e72c39-3ded-4042-8679-394f23e19341">
141
	      <File Id="log4net.dll" Name="log4net.dll" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)log4net.dll" />
142
	    </Component>
143
	    <Component Id="NetSparkle.UI.WPF.dll" Guid="74deb7fa-1d41-4bee-9713-c47eb970f3a8">
144
	      <File Id="NetSparkle.UI.WPF.dll" Name="NetSparkle.UI.WPF.dll" Source="$(var.NetSparkle.UI.WPF_TargetDir)NetSparkle.UI.WPF.dll" />
145
	    </Component>
146
	    <Component Id="IIpc.dll" Guid="996e8122-db02-4132-9de0-144dcb8635d9">
147
	      <File Id="IIpc.dll" Name="IIpc.dll" Source="$(var.IIpc_TargetDir)IIpc.dll" />
148
	    </Component>
149
	    <Component Id="BouncyCastle.Crypto.dll" Guid="4c7cf6c2-b024-48c3-bad1-c6af9d16c3af">
150
	      <File Id="BouncyCastle.Crypto.dll" Name="BouncyCastle.Crypto.dll" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)BouncyCastle.Crypto.dll" />
151
	    </Component>
152
	    <Component Id="Newtonsoft.Json.dll" Guid="8d3bdd17-ae86-4686-a51a-153143f29a76">
153
	      <File Id="Newtonsoft.Json.dll" Name="Newtonsoft.Json.dll" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Newtonsoft.Json.dll" />
154
	    </Component>
155
	    <Component Id="Kcom.exe" Guid="eb074842-fe01-4ee4-8440-ba6630a65e50">
156
	      <File Id="Kcom.exe" Name="Kcom.exe" Source="$(var.Kcom_TargetDir)Kcom.exe" />
157
	    </Component>
158
	    <Component Id="Kcom.exe.config" Guid="01d01d56-6de0-4844-b8f3-b1fae4a4bdae">
159
	      <File Id="Kcom.exe.config" Name="Kcom.exe.config" Source="$(var.Kcom_TargetDir)Kcom.exe.config" />
160
	    </Component>
161
	  </ComponentGroup>
162
	</Fragment>
163
	<Fragment>
164
	  <ComponentGroup Id="MarkusUpdateExtract_files" Directory="EXTRACT_INSTALLFOLDER">
165
	    <Component Id="MarkusUpdateExtract.exe" Guid="8f9a8aeb-d455-4c95-8730-63bafefe9541">
166
	      <File Id="MarkusUpdateExtract.exe" Name="MarkusUpdateExtract.exe" Source="$(var.MarkusUpdateExtract_Net_TargetDir)MarkusUpdateExtract.exe" />
167
	    </Component>
168
	    <Component Id="MarkusUpdateExtract.exe.config" Guid="72c14e98-001a-41ff-b81e-f2a2fe733175">
169
	      <File Id="MarkusUpdateExtract.exe.config" Name="MarkusUpdateExtract.exe.config" Source="$(var.MarkusUpdateExtract_Net_TargetDir)MarkusUpdateExtract.exe.config" />
170
	    </Component>
171
	  	<Component Id="log4net.dll2" Guid="28e72c39-3ded-4042-8679-394f23e19343">
172
	      <File Id="log4net.dll2" Name="log4net.dll" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)log4net.dll" />
173
	    </Component>
174
	    <Component Id="IIpc.dll2" Guid="996e8122-db02-4132-9de0-144dcb8635d1">
175
	      <File Id="IIpc.dll2" Name="IIpc.dll" Source="$(var.IIpc_TargetDir)IIpc.dll" />
176
	    </Component>
177
	     <Component Id="Log.config2" Guid="9bac7a56-e2be-41d4-b869-fc9730d89dfa">
178
	      <File Id="Log.config2" Name="Log.config" Source="$(var.NetSparkle.Samples.NetFramework.WPF_TargetDir)Log.config" />
179
	    </Component>
180
	  </ComponentGroup>
181
	</Fragment>
182
</Wix>
MarkusAutoUpdate/SetupWix/SetupWix.wixproj
1
<?xml version="1.0" encoding="utf-8"?>
2
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
  <PropertyGroup>
4
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6
    <ProductVersion>3.10</ProductVersion>
7
    <ProjectGuid>fc0a7eb0-d847-47eb-aba3-bbf0701758c9</ProjectGuid>
8
    <SchemaVersion>2.0</SchemaVersion>
9
    <OutputName>MarkusUpdate</OutputName>
10
    <OutputType>Package</OutputType>
11
  </PropertyGroup>
12
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
13
    <OutputPath>bin\$(Configuration)\</OutputPath>
14
    <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
15
    <DefineConstants>Debug</DefineConstants>
16
  </PropertyGroup>
17
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
18
    <OutputPath>bin\$(Configuration)\</OutputPath>
19
    <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
20
    <SuppressValidation>True</SuppressValidation>
21
  </PropertyGroup>
22
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
23
    <DefineConstants>Debug</DefineConstants>
24
    <OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
25
    <IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
26
  </PropertyGroup>
27
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
28
    <SuppressValidation>True</SuppressValidation>
29
    <OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
30
    <IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
31
  </PropertyGroup>
32
  <ItemGroup>
33
    <Compile Include="Product.wxs" />
34
  </ItemGroup>
35
  <ItemGroup>
36
    <Content Include="Resources\DoftechLogo.bmp" />
37
    <Content Include="SetupWix.wax" />
38
  </ItemGroup>
39
  <ItemGroup>
40
    <ProjectReference Include="..\Kcom\Kcom.csproj">
41
      <Name>Kcom</Name>
42
      <Project>{8d3750c2-4f3a-420c-9803-9e8a2fea4cf9}</Project>
43
      <Private>True</Private>
44
      <DoNotHarvest>True</DoNotHarvest>
45
      <RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
46
      <RefTargetDir>INSTALLFOLDER</RefTargetDir>
47
    </ProjectReference>
48
    <ProjectReference Include="..\src\IIpc\IIpc.csproj">
49
      <Name>IIpc</Name>
50
      <Project>{083a8fb7-bd6c-499c-865f-68dffcd73019}</Project>
51
      <Private>True</Private>
52
      <DoNotHarvest>True</DoNotHarvest>
53
      <RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
54
      <RefTargetDir>INSTALLFOLDER</RefTargetDir>
55
    </ProjectReference>
56
    <ProjectReference Include="..\src\MarkusUpdateExtract_Net\MarkusUpdateExtract_Net.csproj">
57
      <Name>MarkusUpdateExtract_Net</Name>
58
      <Project>{4f66792b-f3ba-473b-94ca-1b03b65cb524}</Project>
59
      <Private>True</Private>
60
      <DoNotHarvest>True</DoNotHarvest>
61
      <RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
62
      <RefTargetDir>INSTALLFOLDER</RefTargetDir>
63
    </ProjectReference>
64
    <ProjectReference Include="..\src\NetSparkle.Samples.NetFramework.WPF\NetSparkle.Samples.NetFramework.WPF.csproj">
65
      <Name>NetSparkle.Samples.NetFramework.WPF</Name>
66
      <Project>{bbe308bb-4096-4e7b-a458-85172f47c497}</Project>
67
      <Private>True</Private>
68
      <DoNotHarvest>True</DoNotHarvest>
69
      <RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
70
      <RefTargetDir>INSTALLFOLDER</RefTargetDir>
71
    </ProjectReference>
72
    <ProjectReference Include="..\src\NetSparkle.UI.WPF\NetSparkle.UI.WPF.csproj">
73
      <Name>NetSparkle.UI.WPF</Name>
74
      <Project>{6915843c-7947-4268-b569-6f5684651df4}</Project>
75
      <Private>True</Private>
76
      <DoNotHarvest>True</DoNotHarvest>
77
      <RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
78
      <RefTargetDir>INSTALLFOLDER</RefTargetDir>
79
    </ProjectReference>
80
    <ProjectReference Include="..\src\NetSparkle\NetSparkle.csproj">
81
      <Name>NetSparkle</Name>
82
      <Project>{74635a21-2bad-4522-ab95-e3e5703cd301}</Project>
83
      <Private>True</Private>
84
      <DoNotHarvest>True</DoNotHarvest>
85
      <RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
86
      <RefTargetDir>INSTALLFOLDER</RefTargetDir>
87
    </ProjectReference>
88
  </ItemGroup>
89
  <ItemGroup>
90
    <Folder Include="Resources" />
91
  </ItemGroup>
92
  <ItemGroup>
93
    <WixExtension Include="WixUIExtension">
94
      <HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
95
      <Name>WixUIExtension</Name>
96
    </WixExtension>
97
    <WixExtension Include="WixNetFxExtension">
98
      <HintPath>$(WixExtDir)\WixNetFxExtension.dll</HintPath>
99
      <Name>WixNetFxExtension</Name>
100
    </WixExtension>
101
  </ItemGroup>
102
  <Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
103
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
104
  <Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
105
    <Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
106
  </Target>
107
  <!--
108
	To modify your build process, add your task inside one of the targets below and uncomment it.
109
	Other similar extension points exist, see Wix.targets.
110
	<Target Name="BeforeBuild">
111
	</Target>
112
	<Target Name="AfterBuild">
113
	</Target>
114
	-->
115
</Project>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)