2017-03-02 1 views
0

진행률 막대 코드를 C++로 작성하고 Wix의 사용자 지정 작업 코드에 해당 dll을 통합했습니다. 다음은 WIX for Proceed에서 작성한 내용입니다. 버튼과 사용자 정의 조치Wix Installer의 사용자 지정 작업에서 진행률 막대를 중지하는 방법 대화 상자 닫기

<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" /> 
내 DLL의 코드는 MSDN 여기에 존재

의 - 새로운 대화 상자가 제어 작업을 진행 표시 줄이 나타납니다 단추를 진행의 클릭에 https://msdn.microsoft.com/en-us/library/windows/desktop/aa367525(v=vs.85).aspx

-

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

<Control Id="ProgressBar" Type="ProgressBar" X="20" Y="115" Width="330" Height="10" ProgressBlocks="yes" Text="Hello"> 
<Subscribe Event="SetProgress" Attribute="Progress" /> 
</Control> 

두 가지 문제가 있습니다 - 진행률 표시 줄이 대화 상자가 자동으로 닫힙니다 채워 후

  1. 진행률 표시 줄이 100 %
  2. 를 기입하지 않습니다. 비록 내가 Modeless = "예"및 KeepModeless = "아니오"를 사용하여 시도해 보았습니다.

이 문제를 어떻게 해결해야하는지 알려주십시오.

답변

1

그냥 다음 대화 상자의 표시 태그를 진행률 막대의 컨트롤을 유지 한 동일한 대화 상자에 배치하십시오. 이것은 확실히 작동 할 것입니다.

+0

감사합니다. –

+0

자세한 내용을 제공해 주시겠습니까? – Ven

관련 문제