From 97cf5197cf5b882b2c689d8dc2b555f2edf8f418 Mon Sep 17 00:00:00 2001
From: Dave Wilson
Description + +
Usage of the +DIFXAPI Sample Program
This sample demonstrates how to use DIFx API. It shows how to preinstall, +install and uninstall driver packages. It also shows how to retrieve the path to +an already preinstalled or installed driver package. It furthers shows how to +capture logging information that the APIs create during installs and uninstalls.
+Navigate to the src\setup\DIFxAPI\DIFXCMD directory and run the following +command: +
build -cZ +
Once the sample is built, run the following commands. Before running the +command, copy a complete driver package into the same directory:
+difxcmd.exe to print out how to use the command line tool + +
+difxcmd.exe /p my.inf , to preinstall my.inf
+difxcmd.exe /i my.inf , to install my.inf
+difxcmd.exe /i my.inf 16, to install my.inf in legacy mode (accepting unsigned drivers) +
+difxcmd.exe /p my.inf , to obtain the path to the installed my.inf
+difxcmd.exe /u my.inf , to uninstall my.inf
+difxapi /p /i /u /g <inf-filename> [Flag(s)]
+
+Options:
+/p : preinstall driver package.
+/i : install driver package.
+/u : uninstall driver package.
+/g : get driver package path.
+
+<inf-filename> : has to be in the current directory.
+
+Flags:
+DRIVER_PACKAGE_REPAIR: 0x00000001 ( 1)
+DRIVER_PACKAGE_SILENT: 0x00000002 ( 2)
+DRIVER_PACKAGE_FORCE: 0x00000004 ( 4)
+DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT: 0x00000008 ( 8)
+DRIVER_PACKAGE_LEGACY: 0x00000010 (16)
+DRIVER_PACKAGE_DELETE_FILES: 0x00000020 (32)
© Microsoft Corporation 2002
diff --git a/setup/DIFxAPI/ReadMe.md b/setup/DIFxAPI/ReadMe.md new file mode 100644 index 00000000..cbbea926 --- /dev/null +++ b/setup/DIFxAPI/ReadMe.md @@ -0,0 +1,5 @@ +Driver Install Frameworks API (DIFxAPI) Sample +============================================== + +[Driver Install Frameworks API (DIFxAPI)](http://msdn.microsoft.com/en-us/library/windows/hardware/ff544834) Sample. + -- cgit v1.3.1