【问题标题】:WiX - start application after installWiX - 安装后启动应用程序
【发布时间】:2013-06-02 20:38:37
【问题描述】:

我读了一篇文章http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm,它确实有效。

<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch MS" />
<Property Id="WixShellExecTarget" Value="[#MainExe]" />
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />

<UI Id="MyWixUI_Mondo">
  <UIRef Id="WixUI_Minimal" />
  <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
  <UIRef Id="WixUI_ErrorProgressText"/>
</UI>

但我希望默认选中复选框,而不是未选中。怎么做

【问题讨论】:

    标签: wix autostart


    【解决方案1】:

    添加&lt;Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" /&gt; 为复选框属性赋予“选中”值。

    它超出了UI 元素。这是一个完整的例子:

    <UI>
        <UIRef Id="WixUI_Minimal"/>
        <Publish Dialog="ExitDialog"
                 Control="Finish"
                 Event="DoAction"
                 Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed
        </Publish>
    </UI>
    <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1"/>
    

    【讨论】:

      猜你喜欢
      • 2021-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-09
      • 1970-01-01
      相关资源
      最近更新 更多