如何将自定义消息退出对话框添加到wix安装程序

Dev*_*evT 1 c# windows-installer action wix wix3.6

我想ExitDialog在wix安装程序中添加消息.我怎样才能做到这一点?

我需要添加这样的消息 - 请重启机器进行更改.

我尝试过这样的事情.

  <Feature Id="ProductFeature" Title="TFSServiceInstaller" Level="1">
      <ComponentRef Id="MainExecutable" />
      <ComponentRef Id="TFSShortcut" />
    </Feature>

    <UI>
      <Property Id="WIXUI_INSTALLDIR" Value="TARGETDIR" />
      <Property Id="WixUI_Mode" Value="Custom" />

      <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
      <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="9" Bold="yes" />
      <TextStyle Id="WixUI_Font_Title"  FaceName="Tahoma" Size="9" Bold="yes" />

      <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />

      <DialogRef Id="ProgressDlg" />
      <DialogRef Id="ErrorDlg" />
      <DialogRef Id="FilesInUse" />
      <DialogRef Id="FatalError" />
      <DialogRef Id="UserExit" />

      <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
      <Publish Dialog="WelcomeDlg" Control="Next" Event="EndDialog" Value="Return" Order="2"></Publish>

    </UI>
    <UIRef Id="WixUI_Common" />
Run Code Online (Sandbox Code Playgroud)

只显示该消息对我来说足够了.(不需要复选框)

Dev*_*evT 5

为此需要添加以下属性.

 <Property Id="WIXUI_EXITDIALOGOPTIONALTEXT" Value="Please Restart your Computer." />
Run Code Online (Sandbox Code Playgroud)

然后它会在退出屏幕上添加文字.有关详细信息,请参阅此处