问题
I am trying to install windows sample port monitor(localmon) provided in WDK. But I keep getting error while installing it:
An error occurred while installing port monitor 'DDK sample port monitor'. Please contact manufacturer for assistance.
I am using following instructions to install it:-
Open 'Devices and printers' folder. Right click on my targeted printer and choose 'printer properties'. Click the 'Ports' tab, and then click the 'Add Port...' button. On the Printer Ports dialog, click the 'New Port Type...' button. Type the path to the INF file in the text input box, and then click OK.
I am using windows 7, 64-bit version. Following is my INF file.
; monitor.inf
;
; Installation inf for printer port monitor
;
; (c) Copyright 2001-2003 DDK Example for print monitor installation
;
[Version]
Signature="$Windows NT$"
Provider=%PMProducer%
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
[PortMonitors]
"DDK Sample Port Monitor" = sampleportmon
[sampleportmon]
CopyFiles=@ddklocalmon.dll, @ddklocalui.dll
PortMonitorDll=ddklocalmon.dll
[SourceDisksFiles]
ddklocalmon.dll=1,,
ddklocalui.dll=1,,
[SourceDisksNames]
1="Sample Port Monitor Installation Disk",,,
[Strings]
PMProducer="Sample Port Monitor Company, Inc."
Can somebody help me here ?
Thanks a lot !!
回答1:
I was finally able to fix the issue. It was a permissions issue. Method for getting to the Printer Properties with Administrator privileges in windows 7, is via Control Panel, System and Security, Administrative Tools, then right click on Print Management then Run as administrator. Once I did that I was able to install the port monitor.
来源:https://stackoverflow.com/questions/11306787/error-while-installing-windows-sample-port-monitor-localmon