프로젝트

일반

사용자정보

개정판 74b0f4b1

ID74b0f4b1c9209455107bfd2c9a40504830b52fbf
상위 a0fd1a4c
하위 935687cb

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

VersionChange.ps1 추가

Change-Id: I38bb789e821a5f7bc559af23e62938d2f41d8b28

차이점 보기:

MarkusAutoUpdate/SetupWix/Product.wxs
14 14
<?define CabName = "MarkusUpdate.cab" ?>
15 15

  
16 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
	<!-- 참조된 프로젝트의 빌드 후 경로(오류시 프로젝트 참조 추가)-->
17
	<!-- Projects Build Path-->
18 18
	<?define NetSparkle.Samples.NetFramework.WPF_TargetDir=$(var.NetSparkle.Samples.NetFramework.WPF.TargetDir)?>
19 19
	<?define NetSparkle_TargetDir=$(var.NetSparkle.Samples.NetFramework.WPF.TargetDir)?>
20 20
	<?define NetSparkle.UI.WPF_TargetDir=$(var.NetSparkle.Samples.NetFramework.WPF.TargetDir)?>
......
104 104
      </Component>
105 105
    </DirectoryRef>
106 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 107
	<Fragment>
118 108
	  <ComponentGroup Id="ProgramFilesFolder_files" Directory="INSTALLFOLDER">
119 109
	    <Component Id="Log.config" Guid="9bac7a56-e2be-41d4-b869-fc9730d89dfc">
MarkusAutoUpdate/SetupWix/SetupWix.wixproj
23 23
    <SuppressValidation>True</SuppressValidation>
24 24
  </PropertyGroup>
25 25
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
26
    <DefineConstants>Debug</DefineConstants>
26
    <DefineConstants>
27
    </DefineConstants>
27 28
    <OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
28 29
    <IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
30
    <WixVariables>
31
    </WixVariables>
29 32
  </PropertyGroup>
30 33
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
31 34
    <SuppressValidation>True</SuppressValidation>
32 35
    <OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
33 36
    <IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
37
    <WixVariables>Version="1.2.1"</WixVariables>
38
    <DefineConstants>
39
    </DefineConstants>
34 40
  </PropertyGroup>
35 41
  <ItemGroup>
36 42
    <Compile Include="Product.wxs" />
MarkusAutoUpdate/SetupWix/SetupWix.wixproj.user
1
<?xml version="1.0" encoding="utf-8"?>
2
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
  <PropertyGroup>
4
    <ProjectView>ShowAllFiles</ProjectView>
5
  </PropertyGroup>
6
</Project>
MarkusAutoUpdate/SetupWix/VersionChange.ps1
1
$file=$args[0]
2
$version=$args[1]
3

  
4
$doc = [xml](Get-Content (Resolve-Path $file))
5

  
6
Write-Output $doc.Wix.Product.GetAttribute("Version")
7

  
8
$doc.Wix.Product.SetAttribute("Version",$version)
9
$doc.Wix.Product.SetAttribute("UpgradeCode",[GUID]::NewGuid().ToString('B'))
10
# write results to disk
11

  
12

  
13
$doc.save((Resolve-Path $file))
MarkusAutoUpdate/SetupWix/build.bat
1
@echo off
2

  
3
set updateVersion=%1
4
set BuildConfig=%2
5
set WORKSPACE=%3
6
set OutPut=%4
7

  
8
if [%updateVersion%]==[] goto :ERROR
9
IF [%BuildConfig%]==[] goto :ERROR
10
IF [%WORKSPACE%]==[] goto :ERROR
11
IF [%OutPut%]==[] goto :ERROR
12

  
13
set VS_PATH = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\\"
14

  
15
IF EXIST %VS_PATH% GOTO Continue
16
   set VS_PATH = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\\"
17
:Continue
18

  
19
"C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe" -dDevEnvDir="%VS_PATH%" -dSolutionDir=%WORKSPACE%\MarkusAutoUpdate\ -dSolutionExt=.sln -dSolutionFileName=NetSparkleUpdater.sln -dSolutionName=NetSparkleUpdater -dSolutionPath=%WORKSPACE%\MarkusAutoUpdate\NetSparkleUpdater.sln -dConfiguration=Release -dOutDir=bin\x64\Release\ -dPlatform=x64 -dProjectDir=%WORKSPACE%\MarkusAutoUpdate\SetupWix\ -dProjectExt=.wixproj -dProjectFileName=SetupWix.wixproj -dProjectName=SetupWix -dProjectPath=%WORKSPACE%\MarkusAutoUpdate\SetupWix\SetupWix.wixproj -dTargetDir=%WORKSPACE%\MarkusAutoUpdate\SetupWix\bin\x64\Release\ -dTargetExt=.msi -dTargetFileName=Setup.msi -dTargetName=Setup -dTargetPath="%OutPut%" -dKcom.Configuration=Release -dKcom.FullConfiguration="Release|AnyCPU" -dKcom.Platform=AnyCPU -dKcom.ProjectDir=%WORKSPACE%\MarkusAutoUpdate\Kcom\ -dKcom.ProjectExt=.csproj -dKcom.ProjectFileName=Kcom.csproj -dKcom.ProjectName=Kcom -dKcom.ProjectPath=%WORKSPACE%\MarkusAutoUpdate\Kcom\Kcom.csproj -dKcom.TargetDir=%WORKSPACE%\MarkusAutoUpdate\Kcom\bin\Release\ -dKcom.TargetExt=.exe -dKcom.TargetFileName=Kcom.exe -dKcom.TargetName=Kcom -dKcom.TargetPath=%WORKSPACE%\MarkusAutoUpdate\Kcom\bin\Release\Kcom.exe -dIIpc.Configuration=Release -dIIpc.FullConfiguration="Release|AnyCPU" -dIIpc.Platform=AnyCPU -dIIpc.ProjectDir=%WORKSPACE%\MarkusAutoUpdate\src\IIpc\ -dIIpc.ProjectExt=.csproj -dIIpc.ProjectFileName=IIpc.csproj -dIIpc.ProjectName=IIpc -dIIpc.ProjectPath=%WORKSPACE%\MarkusAutoUpdate\src\IIpc\IIpc.csproj -dIIpc.TargetDir=%WORKSPACE%\MarkusAutoUpdate\src\IIpc\bin\Release\ -dIIpc.TargetExt=.dll -dIIpc.TargetFileName=IIpc.dll -dIIpc.TargetName=IIpc -dIIpc.TargetPath=%WORKSPACE%\MarkusAutoUpdate\src\IIpc\bin\Release\IIpc.dll -dMarkusUpdateExtract_Net.Configuration=Release -dMarkusUpdateExtract_Net.FullConfiguration="Release|AnyCPU" -dMarkusUpdateExtract_Net.Platform=AnyCPU -dMarkusUpdateExtract_Net.ProjectDir=%WORKSPACE%\MarkusAutoUpdate\src\MarkusUpdateExtract_Net\ -dMarkusUpdateExtract_Net.ProjectExt=.csproj -dMarkusUpdateExtract_Net.ProjectFileName=MarkusUpdateExtract_Net.csproj -dMarkusUpdateExtract_Net.ProjectName=MarkusUpdateExtract_Net -dMarkusUpdateExtract_Net.ProjectPath=%WORKSPACE%\MarkusAutoUpdate\src\MarkusUpdateExtract_Net\MarkusUpdateExtract_Net.csproj -dMarkusUpdateExtract_Net.TargetDir=%WORKSPACE%\MarkusAutoUpdate\src\bin\Release\MarkusUpdateExtract\ -dMarkusUpdateExtract_Net.TargetExt=.exe -dMarkusUpdateExtract_Net.TargetFileName=MarkusUpdateExtract.exe -dMarkusUpdateExtract_Net.TargetName=MarkusUpdateExtract -dMarkusUpdateExtract_Net.TargetPath=%WORKSPACE%\MarkusAutoUpdate\src\bin\Release\MarkusUpdateExtract\MarkusUpdateExtract.exe -dNetSparkle.Samples.NetFramework.WPF.Configuration=Release_Daelim -dNetSparkle.Samples.NetFramework.WPF.FullConfiguration="Release_Daelim|AnyCPU" -dNetSparkle.Samples.NetFramework.WPF.Platform=AnyCPU -dNetSparkle.Samples.NetFramework.WPF.ProjectDir=%WORKSPACE%\MarkusAutoUpdate\src\NetSparkle.Samples.NetFramework.WPF\ -dNetSparkle.Samples.NetFramework.WPF.ProjectExt=.csproj -dNetSparkle.Samples.NetFramework.WPF.ProjectFileName=NetSparkle.Samples.NetFramework.WPF.csproj -dNetSparkle.Samples.NetFramework.WPF.ProjectName=NetSparkle.Samples.NetFramework.WPF -dNetSparkle.Samples.NetFramework.WPF.ProjectPath=%WORKSPACE%\MarkusAutoUpdate\src\NetSparkle.Samples.NetFramework.WPF\NetSparkle.Samples.NetFramework.WPF.csproj -dNetSparkle.Samples.NetFramework.WPF.TargetDir=%WORKSPACE%\MarkusAutoUpdate\src\NetSparkle.Samples.NetFramework.WPF\bin\%BuildConfig%\ -dNetSparkle.Samples.NetFramework.WPF.TargetExt=.exe -dNetSparkle.Samples.NetFramework.WPF.TargetFileName=Markus.AppUpdate.exe -dNetSparkle.Samples.NetFramework.WPF.TargetName=Markus.AppUpdate -dNetSparkle.Samples.NetFramework.WPF.TargetPath=%WORKSPACE%\MarkusAutoUpdate\src\NetSparkle.Samples.NetFramework.WPF\bin\%BuildConfig%\Markus.AppUpdate.exe -dNetSparkle.UI.WPF.Configuration=Release_Net452 -dNetSparkle.UI.WPF.FullConfiguration="Release_Net452|AnyCPU" -dNetSparkle.UI.WPF.Platform=AnyCPU -dNetSparkle.UI.WPF.ProjectDir=%WORKSPACE%\MarkusAutoUpdate\src\NetSparkle.UI.WPF\ -dNetSparkle.UI.WPF.ProjectExt=.csproj -dNetSparkle.UI.WPF.ProjectFileName=NetSparkle.UI.WPF.csproj -dNetSparkle.UI.WPF.ProjectName=NetSparkle.UI.WPF -dNetSparkle.UI.WPF.ProjectPath=%WORKSPACE%\MarkusAutoUpdate\src\NetSparkle.UI.WPF\NetSparkle.UI.WPF.csproj -dNetSparkle.UI.WPF.TargetDir=%WORKSPACE%\MarkusAutoUpdate\src\bin\Release\NetSparkle.UI.WPF\ -dNetSparkle.UI.WPF.TargetExt=.dll -dNetSparkle.UI.WPF.TargetFileName=NetSparkle.UI.WPF.dll -dNetSparkle.UI.WPF.TargetName=NetSparkle.UI.WPF -dNetSparkle.UI.WPF.TargetPath=%WORKSPACE%\MarkusAutoUpdate\src\bin\Release\NetSparkle.UI.WPF\NetSparkle.UI.WPF.dll -dNetSparkle.Configuration=Release_Net452 -dNetSparkle.FullConfiguration="Release_Net452|AnyCPU" -dNetSparkle.Platform=AnyCPU -dNetSparkle.ProjectDir=%WORKSPACE%\MarkusAutoUpdate\src\NetSparkle\ -dNetSparkle.ProjectExt=.csproj -dNetSparkle.ProjectFileName=NetSparkle.csproj -dNetSparkle.ProjectName=NetSparkle -dNetSparkle.ProjectPath=%WORKSPACE%\MarkusAutoUpdate\src\NetSparkle\NetSparkle.csproj -dNetSparkle.TargetDir=%WORKSPACE%\MarkusAutoUpdate\src\NetSparkle\bin\Release_Net452\ -dNetSparkle.TargetExt=.dll -dNetSparkle.TargetFileName=NetSparkle.dll -dNetSparkle.TargetName=NetSparkle -dNetSparkle.TargetPath=%WORKSPACE%\MarkusAutoUpdate\src\NetSparkle\bin\Release_Net452\NetSparkle.dll -out obj\x64\Release\ -arch x64 -ext WixNetFxExtension.dll Product.wxs
20

  
21
"C:\Program Files (x86)\WiX Toolset v3.11\bin\Light.exe" -out %OutPut% -pdbout %WORKSPACE%\MarkusAutoUpdate\SetupWix\bin\x64\Release\MarkusUpdate.wixpdb -cultures:null -ext WixNetFxExtension.dll -sval -contentsfile obj\x64\Release\SetupWix.wixproj.BindContentsFileListnull.txt -outputsfile obj\x64\Release\SetupWix.wixproj.BindOutputsFileListnull.txt -builtoutputsfile obj\x64\Release\SetupWix.wixproj.BindBuiltOutputsFileListnull.txt -wixprojectfile %WORKSPACE%\MarkusAutoUpdate\SetupWix\SetupWix.wixproj obj\x64\Release\Product.wixobj
22

  
23

  
24
:ERROR
25
echo Error - WixBuild.bat Version BuildConfig WORKSPACE OutPut
MarkusAutoUpdate/SetupWix/packages.config
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2
<packages>
3 3
  <package id="WiX" version="3.11.2" />
4
  <package id="WixFileVersionExtension" version="1.0.0.13" />
4 5
</packages>

내보내기 Unified diff

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