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

  • SEARCH
  • Home
  • 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 6883189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:21:02+00:00 2026-05-27T05:21:02+00:00

To install a driver, you typically send the command: DefaultInstall 128 {inf path} to

  • 0

To install a driver, you typically send the command:

DefaultInstall 128 {inf path}

to the InstallHinfSection via direct call or RunDLL.

This works wonderfully. I can install my driver anywhere (including 64-bit Win 2008 R2, which means I’ve got all the code signing right too).

HOWEVER, the above fails when launched from a Windows service. I’ve read about service vs client installs, and hoped I had met all the requirements for a silent service install (built a .CAT file, it is signed along with the driver, etc).

But no dice – it just fails. Comparing the errors in SetupAPI.log between an interactive install and the install from the service doesn’t show any differences (other than the interactive takes the steps of copying the driver file and succeeds, where the other doesn’t).

The driver itself is not in use (my service is the only one that uses it). Is there ANY way for a service to silently update a driver without requiring user interaction?

  • 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-27T05:21:02+00:00Added an answer on May 27, 2026 at 5:21 am

    I called Microsoft and discussed this with a support engineer.

    Turns out that using DefaultInstall with InstallHinfSection is somewhat obsolete, but still works. And it just happens to work without prompting the user if the driver is signed by a certificate that they recognize because DefaultInstall is ‘dumb’. Yet the driver itself is still allowed to launch because it’s cross-signed with the Microsoft cert. A nice little loop-hole I guess. The trick is it has to be installed by a service that is set to Interact with Desktop (a requirement). Using something like PsExec or RemCom is a way to do this if your service isn’t currently running in that way.

    In the future, this might not continue to work. At that point, get the driver’s .cat file into the Windows\System32\Catroot{F7… folder but it can’t just be copied directly in — there is an API.

    If the .cat was put in first, then the driver theoretically shouldn’t need to prompt to ask if the certificate for the driver is acceptable to the user, because catroot is the ‘acceptable to the user’ list of certs and drivers.

    Also, having the catalog file installed before attempting the driver install might help since the catalog contains the security certificate that the driver will present (though not necessarily in this case — but it might help in the future (and possibly with Win 2003)

    Basically the support engineer was surprised this worked at all and we went around and around on how it might be working… Hopefully this helps someone else.

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

Sidebar

Related Questions

I'm trying to install driver behind the user: I've create DLL which call SetupCopyOEMInf
Can you install a hardware driver, built using WinUSB, along with a C# application
I need to install a USB driver for a device so that it is
I have a kernel service driver , i want to install it with an
After much fiddling, I've managed to install the right ODBC driver and have successfully
I'm attempting to install a driver on a client machine based on which version
I need to install a USB driver with an application, and I'm using a
I'm trying to install a linux driver for my wireless network card (D-Link DWL-G510)
Trying to install roundcube webmail - had some issues related to driver configuration -
I want to install a driver for Ext2 partitions under Windows XP, the installation

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.