Update packages on a device and get package update logs

The Windows Driver Kit (WDK) includes a tool for updating packages on a device (IUTool.exe) and a tool for getting package update logs from a device (GetDULogs.exe). These tools are available under %WPDKCONTENTROOT%\Tools\bin\i386.

Using IUTool.exe to update packages on a device

IUTool.exe is a command-line tool that can be used to update an existing package on a device or to add a new package to a device. IUTool.exe must be used in a command-line window that is opened as an administrator. The command-line syntax for IUTool.exe is the following.

IUTool –p <path to packages>

The following table describes the command-line parameters for IUTool.exe.

Parameter Description

-ppath to packages

Specifies one or more packages to update on the device or to add to the device. The path to packages parameter can have the following formats:

  • To update or add a single package, specify the full path to the package on the development computer.

  • To update or add multiple packages, specify a semicolon-delimited list of packages on the development computer. For example:

    IUTool –p C:\ContosoPackages\Contoso.Device.SampleDriver.spkg;C:\ContosoPackages\Contoso.Device.SampleApplication.spkg
  • To update or add an entire directory of packages, specify the path to the directory. For example:

    IUTool –p C:\ContosoPackages

 

Package versioning

If the specified package already exists on the device, the new version of the package must have a higher version than the package currently on the device or the update will fail. To specify the version for a package, use the /version command-line parameter for PkgGen.exe when generating the package. For more information, see Command-line arguments for package generator.

Using GetDULogs.exe to get package update logs from a device

GetDULogs.exe is a command-line tool that can be used to get package update logs from a device. GetDULogs.exe must be used in a command-line window that is opened as an administrator. The command-line syntax for GetDULogs.exe is the following.

GetDULogs –o <output file path>

The following table describes the command-line parameters for GetDULogs.exe.

Parameter Description

-ooutput file path

The full path of the file on the development computer to write the log information to.

 

 

 

Send comments about this topic to Microsoft