2

セットアップ プロジェクトに 2 つの WIX ダイアログがあります

インストーラーが「成功」ステータスで終了したときに表示される最終フォーム

<Dialog Id="FinishedForm">
   ...
</Dialog>

当社の製品に関するいくつかのスライドを表示するページ。

<Dialog Id="IntroductionTourPage">
   ...
   <Control Id="SkipTourButton" Type="PushButton">
      <Publish Event="NewDialog" Value="FinishedForm">1</Publish>
   </Control>
   ...
</Dialog>

IntroductionTourPage を製品のインストール後 (アップグレードまたは削除なし) にのみ表示したいのですが、その方法がわかりません。私は試した

<InstallUISequence>
    <Show Dialog="FinishedForm" OnExit="success">Condition</Show>
    <Show Dialog="IntroductionTourPage" OnExit="success">NOT Condition</Show>
</InstallUISequence>

しかし、Wix では有効ではないため、このアプローチは失敗しました。それから私は試しました

<InstallUISequence>
    <Show Dialog="FinishedForm" Sequence="1">Condition</Show>
    <Show Dialog="IntroductionTourPage" Sequence="2">NOT Condition</Show>
</InstallUISequence>

うまくいきませんでした。その時やってみた

<InstallUISequence>
    <Show Dialog="FinishedForm" OnExit="success"/>
    <Show Dialog="IntroductionTourPage" Before="FinishedForm">Condition</Show>
</InstallUISequence>

ただし、Wix でも有効ではありません。

今、私は次のように試してみたい:

<InstallUISequence>
    <Custom Action="CA_ChooseAndShowDialogBasedOnCondition" OnExit="success"/>
</InstallUISequence>

しかし、CA から Wix ダイアログを表示する方法の例が見つかりません。

何か案は?

前もってありがとう、アンドリー

4

1 に答える 1

1

私はあなたのために何か別の解決策を持っています。これが要件に適していることがわかった場合は、これを試してください。

FinishedFormのすべてのコントロールをIntroductionTourPageに追加します。IntroductionTourPageを成功終了ダイアログとして使用します。条件に基づいて、IntroductionTourPageダイアログにコントロールを表示します。

これで、 IntroductionTourPageFinishedFormはと条件の両方として機能しますIntroductionTourPage。必要に応じて、IntroductionTourPage の FinishedForm ダイアログを使用できます。

例: IntroductionTourPage のタイトル コントロール

   <Control Id="Title" Type="Text" X="188" Y="22" Width="330" Height="22" Transparent="yes" NoPrefix="yes" Text="Welcome to the IntroductionTourPage" >
            <Condition Action="hide">Condition</Condition>
   </Control>
  <Control Id="FinishTitle" Type="Text" X="188" Y="15" Width="316" Height="22" Transparent="yes" NoPrefix="yes" Text="Completed the Sample Setup Wizard" Hidden="yes">
            <Condition Action="show">Condition</Condition>
  </Control>
于 2013-05-28T10:57:55.347 に答える