注册表值与&在WiX中

时间:2017-06-16 18:55:54

标签: compiler-errors wix registry

我正在重新编写一个旧的安装程序,该安装程序不再适用于使用WiX的Windows 10,并且我在我的注册表项中遇到了&的编译错误(candle.exe)。

注册表值如下:

<RegistryValue Root='HKCR' Name='' Key='Access.Application.10\shell\New' Type='string' Value='&New'/>

我试图用反斜杠来逃避它,但是我真的不知道我可以从这里去哪里。

正如您在下图中所看到的,注册表已经存储了该值,因此对错误产生了混淆。 enter image description here

1 个答案:

答案 0 :(得分:3)

XML中的某些字符必须由字符实体表示。 app.service('myService', function() { var json = ""; this.initialize = function(data) { json = data; }; this.addInfoType = function(infoType) { if(json !== '') { json.infotypes.push(infoType); } else { throw new Error('no json'); } } }); // somewhere else myService.addInfoType({ "infotype": "CC6789", "syften": [ { "syfteId": 0 } ] }); 表示为&