I was trying to compile and deploy the WFP sample obtained from MSDN called msnmntr
but the same problem applies to all samples.
This and all samples fail to deploy because there's one step in the documentation that are missing in Visual Studio 2012 Ultimate.
It says:
1) Open the property pages for your driver package. Right-click the driver package project in Solution Explorer and select Properties.
2) In the property pages for the driver package, click Configuration Properties, click Driver Install, and then click Deployment.
However there's no such option in the Visual Studio 2012 as you can see in the screen below:
I would like to know what I'm doing wrong.
So I had the same problem regarding a sample I am working with. It all came from being confused about what project they actually wanted me to edit. it turns out it wasn't the driver project, but the one called "package". Not sure if you have such a package, but that was the problem in my case.
This is the answer I received from Microsoft support.
Open
msnmntr.sln
in Visual Studio.In Solution Explorer, right-click Solution
msnmntr
(2 projects), and chooseAdd > New Project
. Navigate toWindows Driver > Package
. Add a new Driver Install Package namedmsnmntr
Package.In Solution Explorer, right-click Solution
msnmntr
(2 projects), and choose Configuration Manager. Choose the configuration and platform that you want (Example: Win8 Debug, x64).In Solution Explorer, right-click
msnmntr
Package, and choose Properties. Navigate toConfiguration Properties > Driver Install > Deployment
. CheckEnable deployment
. CheckRemove previous driver versions before deployment
. Enter the name of your target computer. SelectDo Not Install
.In Solution Explorer, locate and open
msnmntr.inf
. In the[Version]
section, add these lines:Just above the
[Strings]
section, add these sections:On the Build menu, choose Build Solution.
Locate the INF file on the target computer (Example:
C:\DriverTest\DriverFiles\msnmntr.inf
). Right-click the INF file, and chooseInstall
.On the target computer, open a Command Prompt window as Administrator, and enter
net start msnmntr
.