Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows installer 什么是主机名变量值?当msi使用Orca编辑属性表时_Windows Installer_Orca - Fatal编程技术网

Windows installer 什么是主机名变量值?当msi使用Orca编辑属性表时

Windows installer 什么是主机名变量值?当msi使用Orca编辑属性表时,windows-installer,orca,Windows Installer,Orca,我正在尝试将msi属性的表修改为预设值。我被我试图预设的最后一个条目卡住了。该属性称为MachineID。我正在尝试将该值设置为一个变量,如cmd的%computername%。因此,当我在MachineID字段中运行MSI时,运行此MSI的计算机的computername将放置在该字段中。但似乎不起作用。我做错了什么?其他哪些表正在使用MachineID属性?有一个名为ComputerName的内置MSI属性,您可能应该使用它。您还可以通过说[%COMPUTERNAME]来使用环境变量。但不能

我正在尝试将msi属性的表修改为预设值。我被我试图预设的最后一个条目卡住了。该属性称为MachineID。我正在尝试将该值设置为一个变量,如cmd的%computername%。因此,当我在MachineID字段中运行MSI时,运行此MSI的计算机的computername将放置在该字段中。但似乎不起作用。我做错了什么?

其他哪些表正在使用MachineID属性?有一个名为ComputerName的内置MSI属性,您可能应该使用它。您还可以通过说[%COMPUTERNAME]来使用环境变量。但不能在属性表本身中使用[%ENVVAR],因为它不会被格式化。您可以在其他表(如注册表表)中使用它。如果您真的想设置MachineID=[%ENVVAR],您应该编写一个类型51的set属性自定义操作,并适当地安排它。

我确实看到了内置的MSI属性computername。其设置为0。属性名称区分大小写。ComputerName不是ComputerName。