none
Windows 7 64 Bit Device Driver Installation problem. RRS feed

  • Question

  •  I have developed a Device Driver .SYS file.  I install it using .INF in Windows 7 64 bit OS.  It gets installed and ask for  a RESTART.  When i Restart, Windows 7 64 Bit OS goes Windows Startup Repair Mode and instead of Booting stylishly, it enters to repair mode.  And does a fixing for around 20 minutes, and Pops up a Message Box mentioning, STARTUP REPAIR was not unable to resolve the problem and gives option to send the details to Microsoft.  But unfortunately KEYBOARD or MOUSE are not working on this screen apparently disabling me to proceed further.  


    Friday, October 7, 2016 10:54 AM

Answers

  • The Case is Now closed, Coz, i have not installed latest patch from the following link

    https://www.microsoft.com/en-us/download/details.aspx?id=46148 which is a must for SHA 256 algorithm security code signing for a DEVICE Driver.  After prolonged investigation, this patch made all the difference to the problem.  The installation of the Device Driver is smooth and running smoothly too in Win 7 64 Bit, Nevertheless,  i could not have progressed to this end until, Don Burn have given me the info about CHKINF tool , Setup Api Logging, that was the start to hit the problem right and resolve it.

    Tks Don.


    embargo!!

    Monday, October 17, 2016 11:54 AM

All replies

  • Try rebooting and doing a repair again (or otherwise getting back to a stable system).  

    Then enable SetupAPI Logging https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/setupapi-logging--windows-vista-and-later- try installing again, and look at the log for the install.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Friday, October 7, 2016 11:44 AM
  • Tks Mr.Don Burn For your reply.  But that link goes for fishing with 404 error reported.  Hence i could not find the info from your end.  After going through your WINDRVR.COM.  Happy to know that you are MVP and have decades of experience in WDM.  To Elaborate my problem, I have a 32 Bit Device Driver - FILTER Driver without a Device, as the nature of Driver does not have a necessity for a Device.  It works fine since WIN XP.  As the world  have entered 64 Bit Era long back.  I had to transform my 32 Bit Device Driver to a 64 Bit Device Driver.  I had gone through as many obstacles while developing and testing.  Now coming to the issue, The 32 Bit Device Driver works flawlessly in WINDOWS 7 64 Bit, after as many corrections to the code.  Converted 32 Bit code to 64 Bit Code gets compiled successfully too.  But then at the time of installation using INF file, the WINDOWS 7 64 Bit restarts with user permission.  Bluntly it enters in to WINDOWS Repair Mode and does not resolve anything nor it gives any clue about what is the problem.?? Now thats like i am in the middle of the ocean in an Island, with no food and nothing.  There should be a REASON the WINDOWS 7 64 BIT does not allow the installation.  In my methodical approach, Windows 7 64 bit does not allow UNSIGNED DRIVERS.  Hence i got the Driver Signed too, Still goes to repair mode, now that ....s .  Your Inputs will be appreciated!!!

    Friday, October 7, 2016 12:17 PM
  • Try doing a web search for SetupAPI logging, the forums software seems to mess up the link, by dropping the last "-" from the hyperlink.   There are many reasons that an install can get into the requires reboot, and without the logging there is little to go on.

    One other thing you should do, is run ChkInf on your INF file, and fix all errors and warnings.  The warnings may look trivial, but they can actually be errors.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Friday, October 7, 2016 1:10 PM
  • what does the driver do? does it filter the storage, filesystem, or input stacks?

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Friday, October 7, 2016 5:15 PM
  • Tks Mr.Don Burn,  went for vacation and came back, Most of all Your solution have worked out!  I have followed Your advice on using CHKINF.  It worked wonders.  It pointed out an Error and a Warning.  Error is i did not Specify CLASS GUID and the warning is about copyright issues.  I fixed it accordingly with relevant CLASS GUID and added a copyright line.  It gets successfully installed and Windows 7 64 bit does not go for Repair Mode.  sigh a big relief.  Now to just check if the driver is intact and runs successfully.  I used this technique of "SC QUERY <DRIVER_NAME>" it came up with following details

    SERVICE_NAME: <Driver_name>
            TYPE               : 2  FILE_SYSTEM_DRIVER
            STATE              : 1  STOPPED
            WIN32_EXIT_CODE    : 1077  (0x435)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0

    and  when i try to check if the driver is running successfully with the following command.

    C:\Windows\System32>net start <driver_name>
    System error 1058 has occurred.

    The service cannot be started, either because it is disabled or because it has n
    o enabled devices associated with it.

    It asserts with above error.  if i am in the wrong direction by checking like this.  Please Advice further.

    Thursday, October 13, 2016 7:40 AM
  • Yes Doron, This is a Filter for File-System.  
    Thursday, October 13, 2016 7:40 AM
  • The Case is Now closed, Coz, i have not installed latest patch from the following link

    https://www.microsoft.com/en-us/download/details.aspx?id=46148 which is a must for SHA 256 algorithm security code signing for a DEVICE Driver.  After prolonged investigation, this patch made all the difference to the problem.  The installation of the Device Driver is smooth and running smoothly too in Win 7 64 Bit, Nevertheless,  i could not have progressed to this end until, Don Burn have given me the info about CHKINF tool , Setup Api Logging, that was the start to hit the problem right and resolve it.

    Tks Don.


    embargo!!

    Monday, October 17, 2016 11:54 AM