Multiple Versions of the Same Driver
What happens if you want to create two components for different versions of the same driver? How do you make sure that the correct version of the binaries is being picked up when you add a specific version to your configuration and build an image?
There are two things you want to make sure you do here:
- differentiate your 2 components
- differentiate the files that belong to each component in the repository or repositories
To differentiate the two components you need to ensure that the components have different VIGUIDS (right-click on the component and select "Advanced"- you will see both a VIGUID and VSGUID listed). If you have used your first component as a template for your second component and just changed the display name and saved it it probably still has the same VIGUID. Make sure your second component is a totally new component. TIP- you can create a new sld and copy and paste your first component into the second sld, or copy and paste the component into the same sld- that will change generate a new VIGUID for the 2nd component).
The best way to differentiate the files that have the same name would be to decorate them (e.g rename the file to "ver1_filename.sys" for component 1 and "ver2_filename.sys" for component 2). Then reference those appropriate decorated files in each component by going to "Files" node, selecting the file, enter the source name of the file as "ver1_filename.sys" or "ver2_filename.sys. NOTE: These files can co-exist in the same repository. The target name of the file will remain the same, as that is what the driver is expecting the file name to be in the runtime has been deployed. When the runtime image is built TD will grab the appropriate decorated file name and rename it to the original file name when it is binplaced in the \Windows\system32\drivers folder.
- Lynda