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 3594622
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:44:21+00:00 2026-05-18T19:44:21+00:00

When installing a signed driver (i.e. with a properly signed .CAB) on Windows 7

  • 0

When installing a signed driver (i.e. with a properly signed .CAB) on Windows 7 through DpInst, unless it’s a WHQL-signed driver, you cannot install it silently. If you run DpInst in the non-silent mode, it’ll prompt you to trust the “publisher”. If you run DpInst in silent mode, it would fail with a signing-related error code (something like 0x800b0109 — check your setupapi.app.log).

  • 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-18T19:44:21+00:00Added an answer on May 18, 2026 at 7:44 pm

    The straightforward way to do it is to add the signing certificate to the TrustedPublishers. You can do it programatically (the implementation of win32exception is left as an exercise to the reader):

    #include <windows.h>
    #include <wincrypt.h>
    #include "win32exception.h"
    
    void InstallTrustedPublisherCertificate(LPCTSTR CertificateFilePath)
    {
        DWORD dwContentType;
        PCCERT_CONTEXT pCertContext = NULL;
        if (!CryptQueryObject(
                CERT_QUERY_OBJECT_FILE,
                CertificateFilePath,
                CERT_QUERY_CONTENT_FLAG_ALL,
                CERT_QUERY_FORMAT_FLAG_ALL,
                0,
                NULL,
                &dwContentType,
                NULL,
                NULL,
                NULL,
                (const void **)&pCertContext))
                throw win32exception("CryptQueryObject");
    
        if (dwContentType != CERT_QUERY_CONTENT_CERT)
            throw exception("Incorrect content type of crypto object.");
    
        __try
        {
            HCERTSTORE hCertStore = CertOpenStore(
                CERT_STORE_PROV_SYSTEM,
                0,
                0,
                CERT_STORE_OPEN_EXISTING_FLAG |
                CERT_SYSTEM_STORE_CURRENT_USER,
                _T("TrustedPublisher"));
            if (hCertStore == NULL)
                throw win32exception("CertOpenStore");
    
            __try
            {
                if (CertAddCertificateContextToStore(hCertStore, pCertContext, CERT_STORE_ADD_NEWER, NULL))
                {
                    // Added certificate to TrustedPublisher store.
                }
                else
                {
                    DWORD err = GetLastError();
                    if (err == CRYPT_E_EXISTS)
                    {
                        // Certificate already exists in TrustedPublisher store.
                    }
                    else
                        throw win32exception("CertAddCertificateContextToStore", err);
                }
            }
            __finally
            {
                CertCloseStore (hCertStore, 0);
            }
        }
        __finally
        {
            CertFreeCertificateContext(pCertContext);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Installing my software on Windows XP was always easy. Everything went in the c:\Program
When installing subversion as a service, I used this command: c:\>svnservice -install --daemon --root
When installing one of JRuby's frequent upgrades, I need to re-install my gems, as
Installing Merb on Ruby Enterprise Edition (OS X) throws this error, any ideas? sudo
After installing VS2008, the platform builder mod, and the WM7 aku, VS usually prompts
After installing VMware Server I get the following error when I try to access
After installing Oracle XE, something in Oracle is listening on port 8080. I am
when installing SQLServer2005 developer edition (not express) I created a named instance: MYSERVERNAME/MYINSTANCENAME Is
After installing the F# September CTP (1.9.6.2), Visual Studio 2008 frequently gives an error
After installing the VSTS Database GDR and importing a SQL Server 2005 database that

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.