Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 814875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:35:35+00:00 2026-05-15T01:35:35+00:00

We have a usb device and the drivers (.inf, libusb.dll, libusb.sys) and can install

  • 0

We have a usb device and the drivers (.inf, libusb.dll, libusb.sys) and can install it using Windows’ Device Installation Wizard (by pointing to the .inf file). However, we need to install the drivers without using the wizard (passively, so the user doesn’t need to do anything). Does anyone know how this can be achieved?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:35:36+00:00Added an answer on May 15, 2026 at 1:35 am

    My colleague came up with an answer that is working very well. It appears that, unless you hardware/driver combination is WHQL signed, the Add New Hardware Wizard will always appear in Win XP. However, with the following method it is possible to have the “Search” button in the wizard find your driver automatically. In Windows 7, there is no prompt and the device installs just fine. You’ll need to watch out on 64-bit machines, though, as they have much stricter signing enforcement.

    So here is the relevant excerpt from the whole document:

    Use the DIFxAPi merge module. (Read a good introduction to drivers in Windows, the use of INF files, and DIFxAPP.) The DIFxAPI merge module is included in the WDK in the ‘WDDK//redist\DIFx\DIFxApp\MergeModule\’ directory. The merge module can be included in an MSI package and can be set to install multiple device drivers. Here are the steps to create an MSI with the DIFxAPP merge module:

    1. In the setup folder, create a separate directory in the Application Folder for the driver package and add the driver files to the folder.
    2. Add the DIFxApp.msm to the setup project.
    3. Build the setup
    4. Use Orca to edit the MSI database table and add the INF component to the DIFxAPP merge modules table.

      1. The Orca installation is included in the Windows SDK in the ‘C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin’ directory. (The Windows SDK can be downloaded from Microsoft)
      2. Run Orca and select the MSI package that needs to be modified.
        • Read part 5 for automation.
      3. In the ‘File’ table, locate the INF file of the driver package you would like to install and copy the Component value.
      4. Create a new row in the MsiDriverPackages table. Add the Component value into Component field. The following flags can be used (although some are ignored by Windows 7):

        • 0 – Not set (default)
        • 1 – Force installation of driver, even if it the currently installed drivers is
          a better match than the driver being installed
        • 2 – Suppress message box telling user to plug in devices after the driver
          has been installed.
        • 4 – Suppress adding an entry in Add/Remove Programs for driver.
          Driver will be uninstalled when main application is uninstalled.
        • 8 – Install unsigned driver packages
        • 16 – Remove driver binaries during uninstall.
      5. Save the MSI. In order to automate the process, the editing of the MSI database can be recorded to a Transform and then the Transform can be applied in a post build process.
        1. Open the MSI in Orca.
        2. Select Transform->New Transform
        3. Complete steps 3 and 4 in the above directions.
        4. Select Tranform->Generate transform and save the transform.
        5. Add the following line to the post build of the Setup Project
          MsiDb.exe -t transform.mst -d $(TargetDir)\DriverInstall.msi
          Note: MsiDB.exe comes with the Microsoft SDK and is located in
          C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin

    If you get an error installing from the MSI (e.g. I got error code 2356 which ended up being due to an invalid Flag value), use Orca’s Validate function to see if there are any errors. EDIT: Fixing these errors still has not gotten rid of the error. I remember reading that inf files should be in their own sub-directory, but that didn’t fix my problem either.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have packed device driver files .inf,.sys, and .cat into my installer, they are
I have installed usb driver, selected the android device's debugging mode but i can't
I need to install a USB driver with an application, and I'm using a
I'd like to communicate with a USB device under Windows and Java but I
On Windows, is there any way to programatically approve a USB device after insertion,
I have a temperature sensor, which is connected using an USB-I2C adapter ( http://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm
I have several drivers using a resource in my code, of which only one
The instruments that are used with Guitar Hero and Rock Band have USB connections.
I have a piece of USB hardware, for which I know the driver. However,
I have a GSM modem connected via USB. The modem creates 2 serial ports.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.