Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   pnputil error (http://forums.winamp.com/showthread.php?t=353841)

amihud 27th December 2012 10:46

pnputil error
 
Hi,
When running pnputil from NSIS (nsExec::ExecToLog '"$WINDIR\system32\pnputil.exe" -i -a "$INSTDIR\myinf.inf"' I got an error which says "is not recognized as an internal or external command"

I tried also to run it from batch but it failed:
ExpandEnvStrings $0 %COMSPEC%
nsExec::ExecToLog '$0 /c "$WINDIR\system32\PnPutil.exe" -i -a "$INSTDIR\myinf.inf"'

I have read other also faced it but i didn't find solution.
Any idea? work around?

Thanks

Anders 27th December 2012 19:48

Does $WINDIR\system32\PnPutil.exe exist?

amihud 28th December 2012 11:50

Quote:

Originally Posted by Anders (Post 2904881)
Does $WINDIR\system32\PnPutil.exe exist?

Sure. when running it from cmd Windows shell it works fine

amihud 30th December 2012 07:00

Quote:

Originally Posted by amihud (Post 2904798)
Hi,
When running pnputil from NSIS (nsExec::ExecToLog '"$WINDIR\system32\pnputil.exe" -i -a "$INSTDIR\myinf.inf"' I got an error which says "is not recognized as an internal or external command"

I tried also to run it from batch but it failed:
ExpandEnvStrings $0 %COMSPEC%
nsExec::ExecToLog '$0 /c "$WINDIR\system32\PnPutil.exe" -i -a "$INSTDIR\myinf.inf"'

I have read other also faced it but i didn't find solution.
Any idea? work around?

Thanks

One More think:
It is working on Windows 7 32bit but fail on Windows 7 64-bit

redxii 30th December 2012 08:02

It looks like pnputil installs drivers. For 64-bit make sure you are trying to install a 64-bit driver. You can also try putting '${DisableX64FSRedirection}' and '${EnableX64FSRedirection}' around whatever command you're using (you need to include x64.nsh).

amihud 30th December 2012 11:02

Quote:

Originally Posted by redxii (Post 2905182)
It looks like pnputil installs drivers. For 64-bit make sure you are trying to install a 64-bit driver. You can also try putting '${DisableX64FSRedirection}' and '${EnableX64FSRedirection}' around whatever command you're using (you need to include x64.nsh).

Thanks!!
${DisableX64FSRedirection} solved it


All times are GMT. The time now is 17:26.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.