설치 프로그램에 대해 정의한 custom action이 있습니다. 설치 프로그램이 실행중인 것 같지 않습니다. 내가 오카와 MSI하고 적절한 항목을 확인했습니다사용자 지정 작업이 실행되고 있지 않습니다.
<CustomAction Id="GetConfigProperties" BinaryKey="GetPropertiesDLL" DllEntry="GetPropertiesFromConfigFile" />
<InstallExecuteSequence>
<RemoveExistingProducts After="InstallInitialize" />
<Custom Action="NewerVersionDetected" After="FindRelatedProducts">NEWERVERSIONDETECTED</Custom>
<Custom Action="GetConfigProperties" After="FindRelatedProducts"></Custom>
. . .
</InstallExecuteSequence>
<Binary Id="GetPropertiesDLL" SourceFile="$(var.LPRCore Installer CBP Helper.TargetDir)\LPRCore Installer CBP Helper.CA.dll" />
의 MSI의 테이블에 있습니다
다음은 사용자 지정 작업을 정의하는 WXS 파일의 라인입니다.
는 여기에 CustomActions.cs
파일의 코드의 발췌 한 것입니다 :
[CustomAction]
public static ActionResult GetPropertiesFromConfigFile(Session session) {
// Output a start message to the install log
session.Log("Begin GetPropertiesFromConfigFile");
. . .
return ActionResult.Success;
}
내가 무슨 일이 있었는지보고 싶었다 장소에서 코드에서 몇 가지 다른 session.Log
문이 있습니다.
이제 로깅을 사용하도록 설정했습니다. 메모장에서 로그 파일을 볼 때 session.Log
으로 전화 한 메시지가 표시되지 않습니다. GetConfigProperties
에 대한 참조가 없습니다. 사용자 지정 작업이 전혀 실행되지 않는 것으로 보입니다. 나는 무엇을 잘못 했는가?
아니요. 사실이 아닙니다. 조건을 생략하면 기본적으로 1입니다. –