Discussion:
Metadata package problem (urgent)
(too old to reply)
Zheng
2009-02-06 03:43:01 UTC
Permalink
Right now I'm trying to make a metadata package for my UVC WebCam. But I have
met some problem and need some help.
The OS version I used is build 6.1.6801, it was get form 2008WinHEC.
I've prepared a simple package:
1. Create PackageInfo.xml, DeviceInfo.xml, WindowsInfo.xml and a ICON file.
The code of the three .xml files almost copied form
CreateDevMetadataPkg.docx, and sure I've made some changes.
2. Create the .cab file according to CreateDevMetadataPkg.docx.
3. Copy the .cab file to
%PROGRAMDATA%\Microsoft\Windows\DeviceMetadataStore\EN-US.
4. Plug in the WebCam, but it looks doesn't work. I've used Event Viewer(
mentioned in DevMetadataPkgPipe.docx) to check the problem, but no error was
reported.

Here is the HardwareIDList of the packageinfo.xml:
<HardwareID>DOID:USB\VID_041E&PID_4069&MI_00</HardwareID>
<HardwareID>DOID:USB\VID_041E&PID_4069</HardwareID>

Is there any other ways to debug the metadata package? Maybe I've
missing something, I can hardly find out what the problem is.

By the way, some other questions pusszled me a lot, would you please
help to solve them?

1. Does the Metadata Package have to pass the WHQL to get a LOGO?
2. Except for copy Metadata Package to DeviceMetadataStore, any other
operation need to take to made the package to work?
3. I've saw some files like "Behavior.xml", "Resource.xml" and "Task.xml"
are described in other docs, when should I use them and how is the structure
of cab file that contain thses files (do they located in the root folder or
subfolder)?
4. If it is possible, would you please pass me a well developed package
for reference?

If this is not proper place for my questions, please guide me to.
Any comment will be appreciated.
Thank you & Best Regards!

Zheng
[MSFT]Mitsuru Saito
2009-02-14 01:05:01 UTC
Permalink
Hello Zheng

Thank you for the kind message.

At first, please try #7000 (Windows 7 Beta) instead of #6801 because we
changed many elements in the schema from #6801 to #7000. The metadata package
document (CreateDevMetadataPkg.docx) on WHDC is for #7000 and later. So the
metadata package doesn’t work on #6801.


1. Does the Metadata Package have to pass the WHQL to get a LOGO?
You have to go through DFW Logo only when you are going to submit the device
metadata package to Microsoft service. When you just install the metadata
package to the local store, you don’t have to go through DFW Logo.

2. Except for copy Metadata Package to DeviceMetadataStore, any other
operation need to take to made the package to work?

No, you don't. Just copy metadata package to the device metadata store.

3. I've saw some files like "Behavior.xml", "Resource.xml" and "Task.xml"
are described in other docs, when should I use them and how is the structure
of cab file that contain thses files (do they located in the root folder or
subfolder)?

The Behavior.xml and Resource.xml is for Device Stage. So you don’t need to
have them just for Devices and Printers.

4. If it is possible, would you please pass me a well developed package
for reference?

Please refer to the toaster sample which is in WDK Beta. You can find it on
src/general/toaster/devicemetadatapackage in WDK Beta.

Sincerely,
Mitsuru Saito
Post by Zheng
Right now I'm trying to make a metadata package for my UVC WebCam. But I have
met some problem and need some help.
The OS version I used is build 6.1.6801, it was get form 2008WinHEC.
1. Create PackageInfo.xml, DeviceInfo.xml, WindowsInfo.xml and a ICON file.
The code of the three .xml files almost copied form
CreateDevMetadataPkg.docx, and sure I've made some changes.
2. Create the .cab file according to CreateDevMetadataPkg.docx.
3. Copy the .cab file to
%PROGRAMDATA%\Microsoft\Windows\DeviceMetadataStore\EN-US.
4. Plug in the WebCam, but it looks doesn't work. I've used Event Viewer(
mentioned in DevMetadataPkgPipe.docx) to check the problem, but no error was
reported.
<HardwareID>DOID:USB\VID_041E&PID_4069&MI_00</HardwareID>
<HardwareID>DOID:USB\VID_041E&PID_4069</HardwareID>
Is there any other ways to debug the metadata package? Maybe I've
missing something, I can hardly find out what the problem is.
By the way, some other questions pusszled me a lot, would you please
help to solve them?
1. Does the Metadata Package have to pass the WHQL to get a LOGO?
2. Except for copy Metadata Package to DeviceMetadataStore, any other
operation need to take to made the package to work?
3. I've saw some files like "Behavior.xml", "Resource.xml" and "Task.xml"
are described in other docs, when should I use them and how is the structure
of cab file that contain thses files (do they located in the root folder or
subfolder)?
4. If it is possible, would you please pass me a well developed package
for reference?
If this is not proper place for my questions, please guide me to.
Any comment will be appreciated.
Thank you & Best Regards!
Zheng
[MSFT]Mitsuru Saito
2009-02-14 01:11:00 UTC
Permalink
Hello Zheng

Thank you for the kind message.

At first, please try #7000 instead of #6801 because we changed the schema
from #6801 to #7000. The metadata package document on WHDC is for #7000 and
later. So the metadata package doesn’t work on #6801.


1. Does the Metadata Package have to pass the WHQL to get a LOGO?
You have to go through DFW Logo only when you are going to submit the device
metadata package to Microsoft service. When you just install the metadata
package to the local store, you don’t have to go through DFW Logo.

2. Except for copy Metadata Package to DeviceMetadataStore, any other
operation need to take to made the package to work?

No, you don't. You will just copy the metadata package to the metadata store.

3. I've saw some files like "Behavior.xml", "Resource.xml" and "Task.xml"
are described in other docs, when should I use them and how is the structure
of cab file that contain thses files (do they located in the root folder or
subfolder)?

The Behavior.xml and Resource.xml is for Device Stage. So you don’t need to
have them just for Devices and Printers.

4. If it is possible, would you please pass me a well developed package
for reference?

Please refer to the toaster sample which is in WDK Beta. You can find it on
src/general/toaster/devicemetadatapackage in WDK Beta.


Sincerely,
Mitsuru Saito
Post by Zheng
Right now I'm trying to make a metadata package for my UVC WebCam. But I have
met some problem and need some help.
The OS version I used is build 6.1.6801, it was get form 2008WinHEC.
1. Create PackageInfo.xml, DeviceInfo.xml, WindowsInfo.xml and a ICON file.
The code of the three .xml files almost copied form
CreateDevMetadataPkg.docx, and sure I've made some changes.
2. Create the .cab file according to CreateDevMetadataPkg.docx.
3. Copy the .cab file to
%PROGRAMDATA%\Microsoft\Windows\DeviceMetadataStore\EN-US.
4. Plug in the WebCam, but it looks doesn't work. I've used Event Viewer(
mentioned in DevMetadataPkgPipe.docx) to check the problem, but no error was
reported.
<HardwareID>DOID:USB\VID_041E&PID_4069&MI_00</HardwareID>
<HardwareID>DOID:USB\VID_041E&PID_4069</HardwareID>
Is there any other ways to debug the metadata package? Maybe I've
missing something, I can hardly find out what the problem is.
By the way, some other questions pusszled me a lot, would you please
help to solve them?
1. Does the Metadata Package have to pass the WHQL to get a LOGO?
2. Except for copy Metadata Package to DeviceMetadataStore, any other
operation need to take to made the package to work?
3. I've saw some files like "Behavior.xml", "Resource.xml" and "Task.xml"
are described in other docs, when should I use them and how is the structure
of cab file that contain thses files (do they located in the root folder or
subfolder)?
4. If it is possible, would you please pass me a well developed package
for reference?
If this is not proper place for my questions, please guide me to.
Any comment will be appreciated.
Thank you & Best Regards!
Zheng
Loading...