3

Visual Studio 2008 で Web 展開プロジェクトから .MSI パッケージを作成したいと考えています。現在、継続的インテグレーションを使用したいと考えており、ナイトリー ビルドで .MSI パッケージ ビルドが必要になります。
これまでは標準の Visual Studio Web Setup プロジェクトを使用していましたが、これは MSBuild と互換性がありません。そのため、WiX を使用することにしました。
問題は、これに関する適切なチュートリアル/ドキュメントが見つからないことです。Web デプロイメント プロジェクトから WiX インストーラー パッケージを実行する方法はありますか? はいの場合、どのように?
また、WiX プロジェクトの .wxs ファイルの XML を heat.exe で作成しようとしましたが、heat.exe は Web 展開プロジェクトの形式を認識しないようです。

ご回答ありがとうございます。
よろしく、
V.

4

3 に答える 3

3

最近これについてブログ記事を書きました - http://www.chrissurfleet.co.uk/post/2011/07/01/Using-Packaged-Project-Output-in-WiX-and-Visual-Studio.aspx

つまり、msbuild を使用して Web アプリをパッケージ化し、それを heat に渡してインストーラーを生成するのは非常に簡単です。

お役に立てれば。

于 2011-07-04T13:05:52.143 に答える
1

You've probably long since found a solution for this, but to elaborate on Tom Cabanski's answer, you can invoke Visual Studio to build the msi on the command line using "devenv.com" via an external process from within your build. It's not a pretty as using msbuild, but it gets the job done. Below is an example of how to invoke Visual Studio:

"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com" your.sln /build Release

Where your.sln is the solution file for the solution you wish to build, and Release is the configuration you wish to build, ensuring that the configuration you choose actually builds the vdproj project.

Following the successful execution, you can grab the msi from the appropriate configuration's bin, and do what you want with it.

I'd appreciate your response to this with your findings/approach, as I'm trying to decide whether to adopt WiX or InstallShield as the approach to building msi's for Web Applications within TFS Build, or to continue with the approach I just described. I haven't had to opportunity to try WiX out, and my very limited exposure to InstallShield suggests that this is far to involved for my need, which is to produce a simple deployment aid for some relatively straight-forward web applications to the company intranet via TFS Build.

于 2010-05-31T17:34:47.097 に答える
-2

最近のいくつかのプロジェクトでは、インストーラーで WIX を使用しましたが、結局後悔しました。私は VS 組み込みプロジェクトに固執し、CI ビルドのコマンド ラインから VS IDE を呼び出すだけです。

于 2010-04-13T14:41:29.950 に答える