以下のコードを製品ブロックに記述した場合は正常に動作しますが、別のファイルに記述した場合は動作しません。
なぜこのようなことが起こるのか誰か教えてください。
これは、カスタム アクションの別のファイル コードです。
<?xml version="1.0" encoding="UTF-8"?>
<?include SetupDefines.wxi?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<!-- The custom action DLL itself.-->
<Binary Id="CA" SourceFile="..\bin\debug\Name.CA.dll" />
<CustomAction Id="CustomAction1"
BinaryKey="CA"
DllEntry="CustomAction1"
Execute="immediate"
Return="check" />
<!--Custom Actions END-->
<InstallExecuteSequence>
<Custom Action="CustomAction1" Before="InstallFiles">
<![CDATA[NOT Installed]]>
</Custom>
</InstallExecuteSequence>
</Fragment>
</Wix>