如何在Wix安装程序中关闭对话框的自定义操作中停止进度栏 我已经在C++中编写了进度条代码,并在Wix中自定义的动作代码中集成了DLL,这里是我在Wix中为继续按钮和自定义动作所写的内容。 <Control Id="proceedButton" Type="PushButton" Text="[Proceed]" Height="62" Width="222" X="90" Y="180" Bitmap="yes"> <Publish Event="DoAction" Value="RegistrationInfoCustomAction">1</Publish> <Publish Event="EndDialog" Value="Return">1</Publish> </Control> <Binary Id="CustomActionBinary" SourceFile="$(var.RegistrationInfoCustomAction.TargetDir)$(var.RegistrationInfoCustomAction.TargetName).dll"/> <CustomAction Id="RegistrationInfoCustomAction" BinaryKey="CustomActionBinary" DllEntry="CAProgress" /> 1. 1.

如何在Wix安装程序中关闭对话框的自定义操作中停止进度栏 我已经在C++中编写了进度条代码,并在Wix中自定义的动作代码中集成了DLL,这里是我在Wix中为继续按钮和自定义动作所写的内容。 <Control Id="proceedButton" Type="PushButton" Text="[Proceed]" Height="62" Width="222" X="90" Y="180" Bitmap="yes"> <Publish Event="DoAction" Value="RegistrationInfoCustomAction">1</Publish> <Publish Event="EndDialog" Value="Return">1</Publish> </Control> <Binary Id="CustomActionBinary" SourceFile="$(var.RegistrationInfoCustomAction.TargetDir)$(var.RegistrationInfoCustomAction.TargetName).dll"/> <CustomAction Id="RegistrationInfoCustomAction" BinaryKey="CustomActionBinary" DllEntry="CAProgress" /> 1. 1.,wix,windows-installer,progress-bar,custom-action,wix3.7,Wix,Windows Installer,Progress Bar,Custom Action,Wix3.7,我的dll的代码出现在MSDN上- 单击“继续”按钮时,将显示一个新对话框,其中包含控制操作进度条- <Control Id="InfoText" Type="Text" X="50" Y="30" Width="200" Height="17"> <Subscribe Event="ActionData" Attribute="Text" /> 有两个问题是- 进度条未填满100% 进度条填充后,对话框将自动关闭。尽管我尝试过使用Modeless=“ye

我的dll的代码出现在MSDN上-

单击“继续”按钮时,将显示一个新对话框,其中包含控制操作进度条-

<Control Id="InfoText" Type="Text" X="50" Y="30" Width="200" Height="17">
 <Subscribe Event="ActionData" Attribute="Text" />


有两个问题是-

  • 进度条未填满100%
  • 进度条填充后,对话框将自动关闭。尽管我尝试过使用Modeless=“yes”和KeepModeless=“no”的所有组合

  • 请告诉我如何解决这些问题。

    只需将下一个对话框的“显示”标记放在保留进度条控件的同一对话框中即可。
    这肯定会奏效。

    您能提供更多详细信息吗?
    <Control Id="ProgressBar" Type="ProgressBar" X="20" Y="115" Width="330" Height="10" ProgressBlocks="yes" Text="Hello">
     <Subscribe Event="SetProgress" Attribute="Progress" />
    </Control>