We are developing a printer driver for windows 8 with VS2012 and WDK8. Although VS2012 provides a wizard to edit and create a device stage, we are trying to edit it also manually.
We can create the metadata file, but when we then open it with VS2012 it says it is not a legal format. The only difference between the VS generated file and the one generated with makecab are two bytes in the header:
Do you know why we are getting this difference? Is there any other way to generate a device stage metadata from command line?
This is the ddf used with makecab:.Set CabinetNameTemplate=sample.devicemetadata-ms
You need to keep the directory structure in the cab archive, else it's not going to work. By default, cab files created with makecab are flat, unless you set the DestinationDir.
The cabarc instructions are provided here: http://msdn.microsoft.com/en-us/library/windows/hardware/ff537817(v=vs.85).aspx .
For makecab, here's a small sample of a ddf file that works:
Max -- This posting is provided "AS IS" with no warranties, and confers no rights.
- Proposed as answer by Maxime Ouellet [MSFT]Microsoft employee Tuesday, October 22, 2013 9:29 PM
- Marked as answer by Doron Holan [MSFT]Microsoft community contributor, Owner Wednesday, October 23, 2013 2:32 AM