2017-03-03 2 views
0

설치 후 exe를 실행하려고합니다. 다음은이 작업을 수행하는 방법입니다. 여기에서Wix에서 사용자 정의 액션 exe에 인수를 추가하는 방법은 무엇입니까?

<Property Id="WixShellExecTarget" Value="[#fil7D28AEF774656849395A2FA20A5C963D]" /> 
    <CustomAction Id="LaunchMosquitto" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" /> 

    <InstallExecuteSequence> 
     <Custom Action="LaunchMosquitto" After="InstallFinalize" /> 
    </InstallExecuteSequence> 

는 [# fil7D28AEF774656849395A2FA20A5C963D는 상기 파일의 ID를 의미한다. 이 exe를 "-c config.conf"매개 변수와 함께 실행해야합니다. 이것을 어떻게 할 수 있습니까? 어떤 도움이라도 대단히 감사 할 것입니다. 명령 프롬프트를 시작하지 않고이 작업이 필요합니다. 대답 후

로그 : 얀은 조용한 CA를 사용해야합니다

MSI (s) (D0:24) [18:32:16:273]: Executing op: ActionStart(Name=LaunchMosquitto,,) 
MSI (s) (D0:24) [18:32:16:273]: Executing op: CustomActionSchedule(Action=LaunchMosquitto,ActionType=3137,Source=BinaryData,Ta rget=WixQuietExec64,CustomActionData="C:\Kube2.0\Mosquitto\mosquitto.exe" -c C:\Kube2.0\Mosquitto\mosquitto.conf) 
+0

설명서의이 기사는 사용자의 질문에 대한 답변을 제공합니다 : http://wixtoolset.org/documentation/manual/v3/customactions/qtexec.html. 특히 "지연된 실행"섹션 –

답변

0

제안으로

<SetProperty Id="LaunchMosquitto" Value="&quot;[#fil7D28AEF774656849395A2FA20A5C963D]&quot; -c config.conf" Before="LaunchMosquitto" Sequence="execute"/> 
<CustomAction Id="LaunchMosquitto" 
       BinaryKey="WixCA" 
       DllEntry="WixQuietExec64" 
       Execute="deferred" 
       Return="check" 
       Impersonate="no"/> 

<InstallExecuteSequence> 
    <Custom Action="LaunchMosquitto" Before="InstallFinalize" /> 
</InstallExecuteSequence> 
+0

안녕하세요, 명령을 성공적으로 실행 중이며 프로세스가 시작되었습니다. 그러나 설치가 완료되지 않습니다! 나는 그것이 산란 된 과정 때문이라고 생각하니? 어떤 아이디어? – mayooran

+0

변경 Return = "무시" –

+0

예, 친구도 시도했습니다. 여전히 같은 문제가 계속됩니다. – mayooran

관련 문제