x86 アプリケーション用の WiX インストーラーがあります。ただし、単一のコンポーネントのレジストリの x64 領域に書き込む必要があります。これを行うには、次のようなものがあります
<Component Id=foo"..." Win64="yes">
<Condition>VersionNT64</Condition>
<RegistryValue
Root="HKLM" Key="SOFTWARE\Microsoft\...."
....
</Component>
.....
<Feature Id='MyFeature' Level='0'>
<ComponentRef Id='foo' />
<Condition Level='1'>VersionNT64</Condition>
</Feature>
x64 システムでインストーラーを実行しようとすると、これは正常に機能します。x86 システムで実行すると (条件によりこのコンポーネントがインストールされるとは思わないにもかかわらず)、次のエラーが発生します。
SchedSecureObjectsRollback_x64 3: SchedSecureObjectsRollback 4: C:\Windows\Installer\MSIA98C.tmp
MSI (c) (84:80) [20:31:05:701]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. ............
Win64 属性を取り出すと、すべて正常に動作します。ただし、x64 システムには Win64 属性が必要です。
どんなアイデアでも大歓迎です、ありがとう!