Announcement

Collapse
No announcement yet.

Win8: How to install driver/.inf file correctly during setup with NSIS?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Win8: How to install driver/.inf file correctly during setup with NSIS?

    Hi,

    currently I use a NSIS script which installs a device driver/.inf file this way:

    code:

    File /r "mydriver.inf"
    File /r "mydriver.cat"
    nsExec::ExecToStack 'pnputil -i "mydriver.inf"'

    This works smoothly with Windows 7 - when the user first connects the device, it is already known to the system and the correct driver is applied automatically.

    Now I found that no longer works with Windows 8.x, here the user has to go to device manager, click the new device and point it to storage place of .inf/.cab files manually.

    So how can this be done better? How can I let Windows 8 know about this driver so that it uses them automatically once the device is connected?

    .cab file is already a signed one, so when pointing to the driver location manually, it works without any warning that would have t obe overriden.

    Thanks!

  • #2
    I have no driver installation experience to share but googling reveals all Pnputil usage examples have -i -a, never just -i. If that has nothing to do with your problem, see if this helps at all: http://stackoverflow.com/questions/1...dows-8-1-fails
    PostEnd:

    Comment


    • #3
      You might have better luck if you ask in driver specific forums like https://social.msdn.microsoft.com/Fo...owshardwaredev and/or http://www.osronline.com/cf.cfm?Page...fm?list=NTDEV# ...
      IntOp $PostCount $PostCount + 1

      Comment

      Working...
      X