WIX - 在命令行参数中传递值?

时间:2022-05-26 23:15:41

I am having a small problem with WIX - or rather, an issue with my current understanding of it.

我对WIX有一个小问题 - 或者更确切地说,我目前对它的理解存在问题。

If I have a value called, say, "MYVALUE" that I want to set via a checkbox, I already have that working fine, when I run my .msi file, the checkbox defaults to checked, this is actually the expected behavior. The main issue is when I try to bass the value on the command line, the check box is still enabled.

如果我有一个名为“MYVALUE”的值,我想通过复选框设置,我已经有了正常工作,当我运行我的.msi文件时,复选框默认为选中,这实际上是预期的行为。主要问题是当我尝试在命令行上对值进行低音时,仍然会启用复选框。

I have been googling around for a while, and could really use a little help here.

我一直在谷歌上搜索一下,真的可以在这里使用一些帮助。

1 个解决方案

#1


3  

Try the command:

尝试命令:

msiexec /i foo.msi MYVALUE=

The checkbox table requires a property to be null (not set) in order to not select the checkbox.

复选框表要求属性为null(未设置),以便不选中该复选框。

#1


3  

Try the command:

尝试命令:

msiexec /i foo.msi MYVALUE=

The checkbox table requires a property to be null (not set) in order to not select the checkbox.

复选框表要求属性为null(未设置),以便不选中该复选框。