简体   繁体   中英

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

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

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?

Thanks!

Have you tried pnputil -a -i "c:\\full\\path\\to\\myinf.inf" ?

If you did not write this driver then you should ask the people that wrote it.

This is not really a NSIS specific question so you might want to reformat the question a little bit so the NT driver gurus can find it. You might also have more luck if you try the MSDN driver dev. forums and/or the OSR list ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM