VirtualBox

Changeset 107935 in vbox


Ignore:
Timestamp:
Jan 24, 2025 3:25:05 PM (6 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167176
Message:

GuestHost/installation/VBoxWinDrvInst.cpp: Try harder if DiInstallDriverW() returns ERROR_WRONG_INF_TYPE by installing the detect INF section. This happens on Windows Vista where DiInstallDriverW() can't handle primitive drivers and should fix the mouse driver installation. For the mouse driver we can't use the [Manufacturer] section for primitive drivers, as InfVerif.exe will complain.

File:
1 edited

Legend:

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

    r107891 r107935  
    13001300                        fRc = true;
    13011301
     1302                    /*
     1303                     * Work around an error which occurs on Windows Vista, where DiInstallDriverW() can't handle
     1304                     * primitive drivers (i.e. [Manufacturer] section is missing). So try installing the detected
     1305                     * INF section in the next block below.
     1306                     */
     1307                    if (dwErr == ERROR_WRONG_INF_TYPE)
     1308                        fRc = true;
     1309
     1310                    /* For anything else we want to get notified that something isn't working. */
    13021311                    if (!fRc)
    13031312                        rc = vboxWinDrvInstLogLastError(pCtx, "DiInstallDriverW() failed");
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