1

セットアップ中に機能がインストールされた場合、reg キーに書き込む最良の方法は何ですか?

4

1 に答える 1

0

条件を指定してコンポーネントを使用する必要があります。条件は、機能の状態を参照する場合があります (現在またはリクエスト済み - 詳細については、このリンクを参照してください)。「&」記号を使用します - 要求された (インストールで達成する必要がある) 機能の状態を取得します。

<Component Id="MyComponentSpecificReg" Guid="YOURGUID">
    <Condition>&MyFeatureId = 3</Condition> <!--install this component only of feature requested state is LOCAL (You may need other condition - please read the link I posted above)-->
    <RegistryKey Root="YOUR REG ROOT" Key="YOUR REGISTRY PATH" Action="create">
        <RegistryValue Name="YourKeyName" Type="string" Value="[YOUR_PROPERTY]"/>
    </RegistryKey>
</Component>
于 2012-12-17T17:59:34.513 に答える