Hi,
I have several software components in my project (firmware that is downloaded to a PCI card, a WDM driver for the card, a user mode dll to access the wdm driver…). When I create a software relese, I build all the components automatically (well - controlled through batch and script files…). I want all the components to be labeled with the same software version tag - also the WDM driver. For the dll and the firmware I use one .h file in which the version tag is written (just a #define).
Is it possible somehow to set the DriverVer field in the inf File automatically - through something like an #include? Ok - I can write a ruby script that is called whenever I build the driver, parse the .inf file and write the current version label to it. But - is there another way?
best regards,
Thomas
Take a look at stampinf in the wdk, it might fit your requirements.
d
Sent using my smartphone, apologies forany typos
-----Original Message-----
From: “xxxxx@datacon.at”
To: “Windows System Software Devs Interest List”
Sent: 08/11/07 6:53 AM
Subject: [ntdev] Automatic change of DriverVer in inf File, include Files in inf File?
Hi,
I have several software components in my project (firmware that is downloaded to a PCI card, a WDM driver for the card, a user mode dll to access the wdm driver…). When I create a software relese, I build all the components automatically (well - controlled through batch and script files…). I want all the components to be labeled with the same software version tag - also the WDM driver. For the dll and the firmware I use one .h file in which the version tag is written (just a #define).
Is it possible somehow to set the DriverVer field in the inf File automatically - through something like an #include? Ok - I can write a ruby script that is called whenever I build the driver, parse the .inf file and write the current version label to it. But - is there another way?
best regards,
Thomas
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Use Perl in your build script to preprocess the INF file from a template.
–
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntdev…
> Hi,
>
> I have several software components in my project (firmware that is downloaded
to a PCI card, a WDM driver for the card, a user mode dll to access the wdm
driver…). When I create a software relese, I build all the components
automatically (well - controlled through batch and script files…). I want all
the components to be labeled with the same software version tag - also the WDM
driver. For the dll and the firmware I use one .h file in which the version tag
is written (just a #define).
>
> Is it possible somehow to set the DriverVer field in the inf File
automatically - through something like an #include? Ok - I can write a ruby
script that is called whenever I build the driver, parse the .inf file and
write the current version label to it. But - is there another way?
>
> best regards,
>
> Thomas
>
Thanks Doron and Maxim! I didnt know the stampinf tool, I’ll have a look on it on monday… But - I’ve already done it in Ruby - it takes just a few lines of code… Perl will do the job, but Ruby is the tool we use normally…
bye,
Thomas