WIX 3.x:如何从 powershell customaction 设置 属性?

WIX 3.x: How can I set a property from a powershell customaction ?

我是 wix 和 powerscript 的新手,我无法弄清楚如何从 customaction powershell 脚本设置 属性。

我无法对表格进行manual/hand调整

我一直以此为指导:How do I populate a ComboBox at install time in WiX?

看来我需要用Session.Database.OpenView()

我不知道如何 get/use powerscript 中的会话。

有什么建议吗?

您无法从 PowerShell 等可执行文件访问 MSI 会话。 DLL 自定义操作(本机或托管)可以。