Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 23rd March 2015, 07:11   #1
Elmi
Junior Member
 
Join Date: Nov 2011
Posts: 14
Question 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!
Elmi is offline   Reply With Quote
Old 23rd March 2015, 17:32   #2
aerDNA
Senior Member
 
aerDNA's Avatar
 
Join Date: Feb 2007
Location: Rijeka, Croatia
Posts: 225
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:
aerDNA is offline   Reply With Quote
Old 23rd March 2015, 19:00   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,282
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
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump