0

簡単に言うと、これは機能しません。

<Icon Id="msiexec.ico" SourceFile="[SystemFolder]msiexec.exe"/>

(エラー 4 システムはファイル '[SystemFolder]msiexec.exe' を見つけることができません)

そして、これもうまくいきません:

<Icon Id="msiexec.ico" SourceFile="$(var.SystemFolder)msiexec.exe"/>

エラー 3 未定義のプリプロセッサ変数 '$(var.SystemFolder)'。

4

1 に答える 1

2

The second sample in your question will work if you pass var.SystemFolder as a parameter to candle.exe.

The <Icon> element is mapped to the Icon MSI table. At build time it tries to find the path you specify in SourceFile attribute and stream it as binary data to the Data column of the Icon table. This means, the path should be known at build time. But this is not true in your first sample - SystemFolder is resolved at install time.

于 2012-06-21T11:07:24.540 に答える