Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.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 WIX-注册表中的Write属性_Windows_Wix_Windows Installer_Wix3.7_Burn - Fatal编程技术网

Windows WIX-注册表中的Write属性

Windows WIX-注册表中的Write属性,windows,wix,windows-installer,wix3.7,burn,Windows,Wix,Windows Installer,Wix3.7,Burn,我正在尝试将burn正确传递的属性写入MSI中的注册表 这是来自引导程序的代码 <Variable Name="REFERAL" Type="string" bal:Overridable="yes" Persisted="yes" Value="REFERAL__123456" /> . . . <MsiProperty Name="REFERAL" Value="[REFERAL]" /> 微星 您希望该值为“REFERAL_uu123456”。您的MsiPrope

我正在尝试将burn正确传递的属性写入MSI中的注册表

这是来自引导程序的代码

<Variable Name="REFERAL" Type="string" bal:Overridable="yes" Persisted="yes" Value="REFERAL__123456" />
.
.
.
<MsiProperty Name="REFERAL" Value="[REFERAL]" />
微星

您希望该值为“REFERAL_uu123456”。您的
MsiProperty
元素将此值分配给名为
referel
的MSI属性,但在
RegistryValue
元素中,您使用值
REFERER
。将其更改为
refereal
,您就可以开始了。您还应该指定Action属性,以明确使用此元素的操作:

<Fragment>
<DirectoryRef Id="INSTALLFOLDER">
  <Component Id="Main" Guid="138feeae-f687-4973-8d94-2bfaa2ddec38">
    <RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' Action='write' Name='REFERER' Type='string' Value='[REFERAL]' />
.
.
.
  </Component>
</DirectoryRef>

.
.
.

您希望值为“REFERAL\uuu 123456”。您的
MsiProperty
元素将此值分配给名为
referel
的MSI属性,但在
RegistryValue
元素中,您使用值
REFERER
。将其更改为
refereal
,您就可以开始了。您还应该指定Action属性,以明确使用此元素的操作:

<Fragment>
<DirectoryRef Id="INSTALLFOLDER">
  <Component Id="Main" Guid="138feeae-f687-4973-8d94-2bfaa2ddec38">
    <RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' Action='write' Name='REFERER' Type='string' Value='[REFERAL]' />
.
.
.
  </Component>
</DirectoryRef>

.
.
.

在Burn中,您使用的是名称“referel”,在msi中,您使用的是名称“REFERER”。在Burn中,您使用的是名称“referel”,在msi中,您使用的是名称“REFERER”。
MSI (s) (9C:64) [10:18:05:690]: Command Line: ARPSYSTEMCOMPONENT=1 MSIFASTINSTALL=7 REFERAL=REFERAL__123456 REBOOT=ReallySuppress CURRENTDIRECTORY=C:\Users\Daniele\Sviluppo\c#\app\installer-bootstrap\bin\x86\ReleaseForPublish CLIENTUILEVEL=3 MSICLIENTUSESEXTERNALUI=1 CLIENTPROCESSID=9700 
.
.
.
MSI (s) (9C:64) [10:18:05:692]: PROPERTY CHANGE: Modifying REFERAL property. Its current value is 'none'. Its new value: 'REFERAL__123456'.
.
. here it doesn't write the value
.
MSI (s) (9C:64) [10:18:06:800]: Executing op: RegAddValue(Name=REFERER,,)
<Fragment>
<DirectoryRef Id="INSTALLFOLDER">
  <Component Id="Main" Guid="138feeae-f687-4973-8d94-2bfaa2ddec38">
    <RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' Action='write' Name='REFERER' Type='string' Value='[REFERAL]' />
.
.
.
  </Component>
</DirectoryRef>