XPe,Warning 1006:修正无效注册数据
翻译:Bill zhong(cudng@msn.com)
日期:2007-08-27
译文用作学术交流,版归原著所有.
现象:XPe其中一个特征能够从注册表编辑器导入.Reg文件.不幸的是,导入过程并不能解析每一个键的正确性.当你编译镜像时,得到的答案是:"Warning 1006:修正无效注册数据:".这个问题在于导入过程中,并没有为那些没有数值名称的注册资源添加数据.在下面的描述中,导入注册资源是没有数值名称的.您会发现那个文件夹图标旁边的键值就是典型预保存键值的路径.
用记事本并打开SLD,是到找不到数值名称存在.
<PROPERTY Name="ValueName" Format="String" Context="1"
PlatformGUID="{00000000-0000-0000-0000-000000000000}"
></PROPERTY>
解决途径:键值都是有效的,但数值名称特征必须以增补XML,导入.Reg文件后,会发现键值.没有数值名称和文件夹图标.目前修正注册资源有两种选项:
1.打开记事本,并添加以下注册表资源标签:
<PROPERTY Name="ValueName" Format="String" Context="1"
PlatformGUID="{00000000-0000-0000-0000-000000000000}"
></PROPERTY>
2. Component Designer:
a.在Component Desinger,双击编辑这个注册表键值
b.单击"Binary"单选按钮
c.再单击"Default"单选按钮
d.最后,单击"OK",这样在XML添加数值名称到注册表的资源
您可以看到图标已经改回正确的类型
原文:
Problem: One of the nice features of XPe is the ability to import a .REG file that was exported from Regedit. Unfortunately, the import doesn’t parse every key correctly. When you go to build the image, you get a “Warning 1006: Invalid registry data fixup:” followed by the key in question.The problem lies with the import process not adding all the data for registry resources that don’t have a value name. In the figure below, there is no Value name for the imported registry
resource. You can spot that a folder icon is next to the key which is typically reserved for key paths only.
Using Notepad to look in side the SLD, you will see the property for the Value name is missing.
<PROPERTY Name="ValueName" Format="String" Context="1"
PlatformGUID="{00000000-0000-0000-0000-000000000000}"
></PROPERTY>
Solution: The keys are valid, but the value name property needs to be added to the XML. After importing a .REG file, look for keys that have values, no value name and a folder icon. There are two options to correct the registry resource:
1. Open Notepad and add the following between the registry resource tag:
<PROPERTY Name="ValueName" Format="String" Context="1"
PlatformGUID="{00000000-0000-0000-0000-000000000000}"
></PROPERTY>
2. Component Designer:
a.In Component Designer, double click to edit the registry key
b. Click on the “Binary” radio button
c. Then click on the “Default” radio button
d. Finally, click OK. This will add the registry value name to the registry resource in XML.
You will see that the icon has changed to the proper type
Windows is a registered tradem ark of Microsoft Corporation.
Copyright © 2006 SJJ Embedded Micro Solutions, LLC., All Rights Reserved. www.sjjmicro.com
03/04/06




435




被折叠的 条评论
为什么被折叠?



