Windows Driver Development: Deploy option missing in Visual Studio 2012
Asked Answered
V

2

7

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:

enter image description here

I would like to know what I'm doing wrong.

Vivl answered 9/11, 2012 at 19:5 Comment(2)
I see the same. I suggest you to ask at social.msdn.microsoft.com/Forums/en-US/wdk/threadsTreillage
I have posted there: social.msdn.microsoft.com/Forums/en-US/wdk/thread/…Vivl
V
4

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 choose Add > New Project. Navigate to Windows Driver > Package. Add a new Driver Install Package named msnmntr 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 to Configuration Properties > Driver Install > Deployment. Check Enable deployment. Check Remove previous driver versions before deployment. Enter the name of your target computer. Select Do Not Install.

In Solution Explorer, locate and open msnmntr.inf. In the [Version] section, add these lines:

Class = ActivityMonitor
CatalogFile = msnmntr.cat

Just above the [Strings] section, add these sections:

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
msnmntr.sys = 1,,

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 choose Install.

On the target computer, open a Command Prompt window as Administrator, and enter net start msnmntr.

Vivl answered 29/11, 2012 at 7:54 Comment(0)
O
2

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. enter image description here

Optimistic answered 15/11, 2012 at 2:9 Comment(3)
What's inside the package subproject? Mine says it misses the INF fileVivl
No, we're not seeing a "package" project there. By the way, we're using the "stream edit" WFP sample.Decimal
all samples seems to suffer the same problemVivl

© 2022 - 2024 — McMap. All rights reserved.