0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

cscの作法 その263

Posted at

概要

cscの作法、調べてみた。
インストーラーやってみたいので、wixいれてみた。
練習問題やってみた。

練習問題

msbuildを使って、msiをmakeせよ。

方針

  • ターゲットは、buildとmakemsi
  • Exec Commandを使う。

サンプルコード

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<Target Name="Build">
		<Exec Command='csc beep0.cs' ContinueOnError="false" WorkingDirectory="." />
		<Message Text="ok0" />
	</Target>
	<Target Name="makemsi">
		<Exec Command='candle test1.wxs' ContinueOnError="false" WorkingDirectory="." />
		<Exec Command='light -ext WixUIExtension test1.wixobj' ContinueOnError="false" WorkingDirectory="." />
		<Message Text="ok1" />
	</Target>
</Project>

コンパイル手順

>set PATH=C:\Program Files (x86)\WiX Toolset v3.10\bin;%PATH%

>set PATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;%PATH%

>msbuild test1.wixproj /t:build

>msbuild test1.wixproj /t:makemsi

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?