I have a product in C language called abcd.exe. It loads the dll abcd.dll and this dll loads the driver abcd.sys. When I install I have to install the all the three files. Everything works fine. I was told that all the three files can be combined to have just one exe file. Then my install has to just copy the exe file and it is done. Internal to the exe file there is the DLL and driver bundled. I was further told that the development process for the DLL and driver remains unchanged. Only when the app is compiled and linked you bundle the DLL and driver inside the exe via the Resource file. Could some one out there please point me to the URL which will give me the details as to how to do this bundling?
Take a look at ‘User Defined Resource’ in the RC docs:
http://msdn.microsoft.com/en-us/library/aa381054(VS.85).aspx
Good luck,
mm
If you use Visual Studio use the add Add - Resource to add the dll and the
driver as resources to the executable. See the SDK for the functions that
extract the resources.
Bill Wandel
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of xxxxx@gmail.com
Sent: Friday, December 04, 2009 10:52 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to bundle a dll and a driver with the exe?
I have a product in C language called abcd.exe. It loads the dll abcd.dll
and this dll loads the driver abcd.sys. When I install I have to install
the all the three files. Everything works fine. I was told that all the
three files can be combined to have just one exe file. Then my install has
to just copy the exe file and it is done. Internal to the exe file there is
the DLL and driver bundled. I was further told that the development process
for the DLL and driver remains unchanged. Only when the app is compiled and
linked you bundle the DLL and driver inside the exe via the Resource file.
Could some one out there please point me to the URL which will give me the
details as to how to do this bundling?
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
wrote in message news:xxxxx@ntdev…
> I have a product in C language called abcd.exe. It loads the dll abcd.dll
> and this dll loads the driver abcd.sys. When I install I have to install
> the all the three files. Everything works fine. I was told that all the
> three files can be combined to have just one exe file. Then my install has
> to just copy the exe file and it is done. Internal to the exe file there
> is the DLL and driver bundled. I was further told that the development
> process for the DLL and driver remains unchanged. Only when the app is
> compiled and linked you bundle the DLL and driver inside the exe via the
> Resource file. Could some one out there please point me to the URL which
> will give me the details as to how to do this bundling?
>
This tool can help:
http://www.codeproject.com/KB/install/VerPatch.aspx
Run it like this:
verpatch abcd.exe /rf #1 file.dll /rf #2 file.sys [other options]
–pa
Thanks Pavel and all others. I think I have got all the information I need to get this working. Please close this case
best regards to all
joey