基本的なWIXカスタムアクションがあります。
UINT __stdcall MyCustomAction(MSIHANDLE hInstaller)
{
DWORD dwSize=0;
MsiGetProperty(hInstaller, TEXT("MyProperty"), TEXT(""), &dwSize);
return ERROR_SUCCESS;
}
インストーラーに追加:
<CustomAction Id="CustomActionId" FileKey="CustomDll" DllEntry="MyCustomAction"/>
<InstallExecuteSequence>
<Custom Action="CustomActionId" Before="InstallFinalize" />
</InstallExecuteSequence>
問題は、私が何をしても、ハンドルhInstallerが無効であるということです。コミット、延期、InstallExecuteシーケンスの場所の変更をアクションに設定しましたが、hInstallerは常に有効ではありません。
どんな助けでもいただければ幸いです。ありがとう。