とっちゃん's Blog

WindowsInstaller に WiX はいかがですか~

目次

Blog 利用状況

ニュース

とっちゃんって?

コミュニティ

@ITの記事

CodeZineの記事

WiX チュートリアル

Windows ユーザー エクスペリエンス ガイドライン

唯一の日本語書籍

記事カテゴリ

書庫

日記カテゴリ

インストーラ関連

旧館

WindowsInstaller を取り巻くツールたち:Part.2

前回は、作成ツールを紹介しましたので、今回はSDKに搭載されているツールを紹介しておきます。

まずは、やっぱり ORCA。msi や msm などをごにょごにょしたり、msp を開発環境上で疑似的に適用させて違いを見たりと、およそ、WindowsInstaller に関係するもろもろの段取りすべてができます。

もちろん、根性入れて作業するつもりがあるなら、これ一つで msi を作ることも...昔はできたんですが、今はだめですね。不可能ですw

ま、実際に出来ないのはハッシュの取り出し程度なので、それを除けば作れるわけですが...普通はやりません。今更パンチカードでプログラミングの時代には戻りたくないでしょ?

?

続いては、通称 instmsi.exe と呼ばれる、WindowsInstaller のインストーラです。9x系であれば、InstMsiA.exe, NT4(2000のSP1まで)なら、InstMsiW.exe は必須コンポーネントとなります。

ちなみにこれら2つは、Windows Installer 2.0 までのものです。3.0 以降は、長ったらしい名前がついています。このあたりはサポートするOSのSPまで含めて慎重に選択する必要があるので注意する必要があります。

今更、2000 の SP3までとか NT4 だとか、9xだとかという対象を持ってるのは世界中でも数える程度でしょうから、昔は面倒だったのねで十分です。あ、もしまだやってるというようなところは、まだ1割もあるのか...のリンク先見せて、上を説得しましょう。権力に弱い上の人なら一発でおれますよw

?

まだまだ続きます。次は Msizap.exe。?何らかの理由でアンインストールできなくなってしまったという場合に、強制的にインストール情報「だけ」削除するツールです。CUI 版なので誰でも使えるというものではありませんが、開発中にカスタムアクションがバグっていたなどで、アンインストールできなくなっちゃったというときに便利です。

これの GUI 版にWindows Installer CleanUp ユーティリティというものがあります。こちらは、GUIツールなので、選んでバッサリ!ということができます。これらのツールのお世話になるというのは、Setup Auther としては屈辱なので、お世話になりたくないツールの一つです。

?

続いては msiinfo.exe。msi(msm)の SummaryInfomation ストリームを参照/編集するツールですが、普通は使いません。変わった使い方としては、2003までのオフィスドキュメントファイルなんかを渡してみると面白いかと。

コマンドラインツールですが、へぇ。。。というくらいには思えると。

?

気を取り直して続けましょう。次は Wilogutl.exe。msi のインストールログ解析ツールです。ただし、日本語環境では、Verbose ログ以外は解析できません。ログフォーマットが日本語化されてしまっているため、どうにもならないんですね。

まそれはさておき、インストール時にどうもおかしいという場合には、msiexec /i Hoge.msi /l*v Hoge.log としてログをとり、このツールで解析することで、さまざまな情報を表示することができます。

HTML にして表示などもできるので、開発中にはよくお世話になるツールの一つと言えます。

特に、デバッガを動かせないような環境での威力は絶大です。カスタムアクションが強制終了したような理由まではわかりませんが、その原因となりうる情報はおそらく吸い上げられるはずです。

前哨戦の最後は、Msival2.exe。msi のバリデータです。ICE(Internal Consistency Evaluators)?のチェックを行うコマンドラインツールとなります。

msi の正当性(ComponentId の重複とか、欠落とかいろいろ)を調査する際、非常に便利です。

Orca でも同じことができるので、こちらは、自動ビルドの最後に呼び出して自動的にエラーチェックするなどで使うためのものと言えます。

続きは、次のエントリーでw

投稿日時 : 2007年6月7日 21:57

コメントを追加

# re: WindowsInstaller を取り巻くツールたち:Part.2 2007/06/08 10:20 ぽぴ王子

>> Windows Installer CleanUp ユーティリティ
> Setup Auther としては屈辱なので、お世話になりたくないツールの一つです

えーと…諸般の事情でよくお世話になってました orz
自分は悪くないんだけど、いろんな大人の事情でよく使わざるを得ないハメになってました。
詳細はいつか勉強会で聞いてください(ぉぃ)

# 暗号化ソフトなんて大嫌い!とだけ。

# re: WindowsInstaller を取り巻くツールたち:Part.2 2007/06/08 12:25 とっちゃん

あははw

CAのバグは、ローカルキャッシュの「中身」入れ替えなんぞというあら技で抜き取ることもありますよw
CA呼ばないようにとか細工することもあるけどw

どっちも開発初期(それも大がかりに入れ替えたとき)によくある事例の一つですw

でも、お世話にはなりたくねーですね。自分が悪くないとしても...w

# WindowsInstaller を取り巻くツールたち:Part.3 2007/06/08 18:05 とっちゃん's Blog

WindowsInstaller を取り巻くツールたち:Part.3

# When someone writes an paragraph he/she retains the plan of a user in his/her brain that how a user can be aware of it. So that's why this post is amazing. Thanks! 2019/05/16 0:12 When someone writes an paragraph he/she retains th

When someone writes an paragraph he/she retains the plan of a user in his/her
brain that how a user can be aware of it. So that's why this post is amazing.
Thanks!

# Good day! I simply want to offer you a big thumbs up for the excellent information you've got here on this post. I'll be returning to your web site for more soon. 2019/06/02 16:17 Good day! I simply want to offer you a big thumbs

Good day! I simply want to offer you a big thumbs up for the excellent information you've got here on this post.
I'll be returning to your web site for more soon.

# This web site truly has all of the information and facts I wanted concerning this subject and didn't know who to ask. 2019/06/04 20:50 This web site truly has all of the information and

This web site truly has all of the information and facts I wanted concerning this subject and didn't know who to ask.

# Hi there, You have done an incredible job. I'll definitely digg it and personally recommend to my friends. I'm sure they will be benefited from this website. 2019/06/17 0:24 Hi there, You have done an incredible job. I'll d

Hi there, You have done an incredible job. I'll definitely digg it and personally recommend to my
friends. I'm sure they will be benefited from this website.

# I've read some excellent stuff here. Definitely worth bookmarking for revisiting. I wonder how so much effort you put to create the sort of excellent informative web site. 2019/07/09 12:50 I've read some excellent stuff here. Definitely wo

I've read some excellent stuff here. Definitely worth bookmarking for revisiting.

I wonder how so much effort you put to create the sort of
excellent informative web site.

# What's Taking place i'm new to this, I stumbled upon this I've found It absolutely useful and it has aided me out loads. I'm hoping to contribute & aid other customers like its helped me. Good job. 2019/08/15 10:19 What's Taking place i'm new to this, I stumbled up

What's Taking place i'm new to this, I stumbled upon this
I've found It absolutely useful and it has aided me out
loads. I'm hoping to contribute & aid other customers
like its helped me. Good job.

# re: WindowsInstaller ??????????:Part.2 2021/08/08 8:09 hydochloroquine

chloroquine phosphate side effects https://chloroquineorigin.com/# can hydroxychloroquine get you high

タイトル
名前
URL
コメント