VirtualBox

Ignore:
Timestamp:
Jan 29, 2025 9:30:26 AM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167232
Message:

Windows driver installation: Fixed the ERROR_AUTHENTICODE_TRUST_NOT_ESTABLISHED error, added documentation and give a clue to users why this might have failed. See source for details. bugref:10762

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/installation/VBoxWinDrvInst.cpp

    r107935 r107973  
    13101310                    /* For anything else we want to get notified that something isn't working. */
    13111311                    if (!fRc)
    1312                         rc = vboxWinDrvInstLogLastError(pCtx, "DiInstallDriverW() failed");
     1312                    {
     1313                        switch (dwErr)
     1314                        {
     1315                            case ERROR_AUTHENTICODE_TRUST_NOT_ESTABLISHED:
     1316                            {
     1317                                /* For silent installs give a clue why this might have failed. */
     1318                                if (pParms->fFlags & VBOX_WIN_DRIVERINSTALL_F_SILENT)
     1319                                    vboxWinDrvInstLogWarn(pCtx, "Silent installation was selected, but required certificates "
     1320                                                                "were not pre-installed into the Windows drvier store, so "
     1321                                                                "the installation will be rejected automatically");
     1322                                RT_FALL_THROUGH();
     1323                            }
     1324
     1325                            default:
     1326                                rc = vboxWinDrvInstLogLastError(pCtx, "DiInstallDriverW() failed");
     1327                                break;
     1328                        }
     1329                    }
    13131330                }
    13141331
     
    13601377                                vboxWinDrvInstLogWarn(pCtx, "Not able to select a driver from the given INF, using given model");
    13611378                                break;
     1379                            }
     1380
     1381                            case ERROR_AUTHENTICODE_TRUST_NOT_ESTABLISHED:
     1382                            {
     1383                                /* For silent installs give a clue why this might have failed. */
     1384                                if (pParms->fFlags & VBOX_WIN_DRIVERINSTALL_F_SILENT)
     1385                                    vboxWinDrvInstLogWarn(pCtx, "Silent installation was selected, but required certificates "
     1386                                                                "were not pre-installed into the Windows drvier store, so "
     1387                                                                "the installation will be rejected automatically");
     1388                                RT_FALL_THROUGH();
    13621389                            }
    13631390
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette