Wix:CustomAction之后如何设置属性? 我需要自定义操作吗?
我想使用 Wix 安装程序安装插件。 在计算机上,可以安装更多版本的应用程序,因此用户必须决定应该使用哪个版本。 应用程序以这种方式写入注册表:
HKLM\Software\Company\Application\Version ....
这意味着 HKLM\Software\Company\Application 项没有直接值,我必须 询问其子项在 C# 中使用以下命令执行了什么操作:RegistryKey.GetSubKeyNames。
问题 1:
有没有办法在不使用 CustomAction 的情况下读取这些子项名称?
我没有发现这种可能性,这就是我使用自定义操作来完成此操作的原因。
问题 2:
但是如何将 CustomAction 中找到的结果设置为 wxs 中的属性? 是否可以?
如果你能帮助我,我会很高兴...
再见,Ivo
I want to install a plugin with the Wix Setup. On the computer, there could be installed more versions of the application, so the user has to decide, which version should be used.
The applications are written in the registry in this way:
HKLM\Software\Company\Application\Version ....
That meas that the key HKLM\Software\Company\Application has no direct values and i have to
ask for its children what is done in C# with: RegistryKey.GetSubKeyNames.
QUESTION 1:
Is there any way to read these subkey names without CustomAction?
I hadn't found that possibility and that's why I've done it with Custom action.
QUESTION 2:
But how can I set the results found in the CustomAction as property in wxs? Is it possible?
If you can help me, I would be very happy...
Bye, Ivo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)