I have a visual studio setupproject to install my kernel driver "mydriver". When I right click and install my driver it is installing from inf file.
Now I wanted to do similar kind of action from custom action. Using standard action in setup project, I want to load the .inf and .sys file into C:\Program Files\Myfolder.
In the same installer project, I added "InfDefaultinstall.exe" as a custom action in Install section in custom action editor. In the arguments attribute of the custom action I added the file as "C:\Program Files\Myfolder\mydriver.inf".
The project built successfully and when I tried to install the package using "setup.exe", I am getting an error
"The system cannot find the specified file"
Can someone please give me a suggestion on this issue ?