I'm attempting to use shell execute commands to install device drivers with my program. The execution environment does not recognize the pnputil command used to perform driver installation. I've tried calling the pnputil exe using the full path and get the same error. Is there some layer of abstraction that prevents access to the windows utilities? Below is the current command I'm trying to run.
Code: Select all
pnputil -i -a "<InstallPath>\drivers\myDriver.inf"
Note that I've also tried to use the execute application function rather than the shell execute. With this I put my command in a bat file. I still got the same error with this approach. Any help is greatly appreciated.