Elmi
Elmi

Reputation: 6193

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!

Upvotes: 1

Views: 1551

Answers (1)

Anders
Anders

Reputation: 101626

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...

Upvotes: 2

Related Questions