How to add image path of driver into registry???? RRS feed

  • Question

  • I have written a sample driver for printing commands. It is loaded using OSRLoader tool.

    But i am looking for starting this driver as service automatically (using batch file).

    I have created a registry key using "REG ADD" command and some key values inside that.

    There is a key "ImagePath" showing location of .sys file. I will be running this driver from external USB device, so the path to the driver is not predefined.

    How we can add path according to the drive mounted each time?Is there is any parameter to detect the directory where the execution is started (like external drives)?

    Tuesday, January 19, 2016 4:54 AM

All replies

  • IIRC you can't load the driver from removable storage

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, January 19, 2016 6:12 AM