質問
他の人が書いたWIXスクリプトを読んでいます。いくつかのコードが本当に私を混乱させています。
<Custom Action='UnLoadSchedulerPerfCounters' After='InstallInitialize'>
<![CDATA[(Installed) AND (!Scheduler = 3)]]>
</Custom>
<Custom Action='RollbackSchedulerPerfCounters' After='WriteRegistryValues'>
<![CDATA[(&Scheduler = 3)]]>
</Custom>
では、!Scheduler
と&amp; Scheduler
の違いは何ですか?
プロパティの前に&amp;
または!
が付いている場合、特別な意味はありますか?
解決
http://www.tramontana.co.hu/wix/からlesson5.php#5.3 :
いくつかの特殊文字を 名前はそれらに余分を与えるでしょう 意味:
% environment variable (name is case insensitive) $ action state of component ? installed state of component & action state of feature ! installed state of feature
最後の4つは以下を返すことができます 整数値:
-1 no action to be taken 1 advertised (only for components) 2 not present 3 on the local computer 4 run from the source
他のヒント
これらは、Windowsインストーラーの条件構文の演算子です。完全なリストについては、MSI SDKのドキュメントを参照してください: http://msdn.microsoft。 com / en-us / library / aa368012.aspx 。
所属していません StackOverflow