xxxxx@yahoo.com wrote:
> Assuming you can’t find “cabarc” anywhere, there are instructions in
> MSDN on how to create a directive file for “makecab”:
>
> https://msdn.microsoft.com/en-us/windows/hardware/drivers/develop/attestation-sig
> ning-a-kernel-driver-for-public-release
Thanks. I do see makecab is a part of Windows. Not seeing cabarc in any of my sdks.
It used to be part of the “Windows Support Tools”, which was on the
installation CD as an optional component. It’s also in the tools in the
Windows 2003 Server SDK (3790).
The link above seems to be dead.
I suspect it simply got word wrapped. That needs to be one long line.
Here’s a tiny mapping: http://tinyurl.com/jp7f3au
I did find a sample project for download within cs2015 called CSCreateCabinet. Downloading this ad building the project creates CSCreateCabinet.exe This creates a cmd window and has a ‘pack’ command that takes a directory and outputs a cab file. Hopefully this is the proper format.
The open source 7zip command can read cab files. It should say Type=Cab
and Method=MSZip.
> Package\xxx.inf
> Package\32\xxx.sys
> Package\32\yyy.ax
> Package\64\xxx.sys
> Package\64\yyy.ax
I do have something similar. sys, cat, and inf files within 32 and 64 directories. Is it possible to have one inf file for both 64 and 32 bit drivers? My builds generate individual files for x86 and amd64
Sure, it’s possible. Notice that’s what I have above – the INF is at
the root, and points to the subdirectories. However, the standard
driver project templates don’t support this; they need one build to map
to one package. So, I don’t use the “Package” project. I have the main
project build the binaries, then I have a script to collect the parts
and make a package out of it. You just need to specify the
subdirectories like this:
[SourceDisksFlles.x86]
xxx.sys=1,\32
yyy.ax=1,\32
[SourceDisksFiles.amd64]
xxx.sys=1,\64
yyy.ax=1,\64
And, of course, have separate Model sections for the two platforms:
[Manufacturer]
%Mfr%=MyInstaller,NTamd64
[MyInstaller]
… 32 bit …
[MyInstaller.NTamd64]
… 64 bit …
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.