Я прочитал Как пройти msiexec в настраиваемое действие WiX C #?, но это не ответило на мой вопрос, или, может быть, я просто не понимаю, что делаю неправильно. Не удается установить мой установочный пакет, а в журналах указано, что мое свойство не найдено в коллекции настраиваемых действий. Мой код:
<CustomAction Id="SetCustomActionDataValue" Return="check" Property="Itp.Configurator.WixCustomAction" Value="G=G2" />
<CustomAction Id="CreateDatabase" BinaryKey="Binary1" DllEntry="CreateDatabase" Execute="deferred" Return="check" />
<InstallExecuteSequence>
<Custom Action='SetCustomActionDataValue' After="InstallFiles"/>
<Custom Action='CreateDatabase' After="SetCustomActionDataValue">
NOT Installed AND NOT PATCH
</Custom>
</InstallExecuteSequence>
И код внутри настраиваемого действия:
string Property1 = session.CustomActionData["G"];