Hardware not found when launching an XP Mode scanner application from Windows 7 desktop
-
Friday, November 05, 2010 8:25 PM
Microsoft tells me that after I install XP Mode, I can create a desktop icon on my Windows 7 desktop and run the XP Mode application from there. That is true except when I launch my Nikon Scan 4 software from the Windows 7 desktop, it tells me that it was unable to find any active devices. That is, the software loads, but the scanner is not found.
Any suggestions would be appreciated.
All Replies
-
Friday, November 05, 2010 9:04 PMUnless the scanner is connected via USB you won't see it. You will also need to attach any USB devices to XP Mode for it to be connected.
-
Sunday, November 07, 2010 3:57 PM
Thank you. The device is connected via USB.
So in other words, I have to start XP Mode first, attach the device and proceed from there. This means that contrary to what Microsoft says in its XP Mode documentation, I cannot start the application from the Window 7 desktop.
-
Thursday, November 11, 2010 6:42 AMModerator
Hi,
Where the location of this Nikon Scan 4 software? If you just install it on Windows 7 desktop, it won’t work for your device if it’s not compatible.
In order to make it work on Windows 7 desktop, you need to follow these steps:
1. Install the software in XP Mode. This create a new folder on Windows 7 physical machine, the location is:
C:\Users\username\AppData\Local\Microsoft\Windows Virtual PC\Virtual Applications\Windows XP Mode\(the application name)
2. This new folder will locate in Windows 7 start menu:
Start – All programs – Windows XP Mode Applications – (application name)
Underneath this appears a shortcut to start the XP Mode application:
application name (Windows XP Mode)
3. The important step that you launch the Nikon Scan 4 software work on the Windows 7 desktop is right click the shortcut here – Send to Desktop
The location is different when you directly install it on Windows 7 desktop. It’s the shortcut for the application. The shortcut's target is:
%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\VMCPropertyHandler.dll,LaunchVMSal "Windows XP Mode" "||Now you can successfully use the software.
Regards,
Miya
This posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.- Edited by Miya YaoModerator Thursday, November 11, 2010 6:58 AM add details
-
Thursday, November 11, 2010 2:34 PM
The software was installed in XP Mode. On the Windows 7 desktop, I have the icon to launch Nikon Scan 4. The software launches fine from the Windows 7 desktop; however, the actual scanner is not found (hardware not found). If, on the other hand, I start the Windows virtual XP Mode I can then access the scanner throught the USB (Attach scanner).
I have the same issue with other XP Mode software, in that the software works fine but it cannot find the printers (hardware not found).
Thanks
-
Thursday, November 11, 2010 2:57 PM
If you're up to some vb script, it can be done that way, otherwise there's no way to do what you want at this time (XP Mode seamless app starting with the scanner attached)
Here's a script to attach a USB to an already running VM. This is just a framework you can use to cobble together exactly what you need -- it's generic in nature so if it's always one particular device, you can hard code that to start given the example from the script below.
----------------------------------------------------------------------------------'Title : Assign USB devices to a Virtual Machine. 'Usage: cscript ScriptName <vmname> <Device String> 'Validate the Parameters If WScript.Arguments.Count <> 2 Then Wscript.Echo "Usage: cscript ScriptName <vmname> <Device Name>" WScript.Quit 1 End If 'Get the Virtual PC Object Set objVPC = CreateObject("VirtualPC.Application") 'Find the Virtual Machine Set objVM = objVPC.FindVirtualMachine(WScript.Arguments(0)) If objVM is Nothing Then Wscript.Echo "Unable to Find the Virtual Machine: " & WScript.Arguments(0) WScript.Quit 2 End If 'Get the USB devices collection set usbDevicesColl = objVPC.USBDeviceCollection If usbDevicesColl.Count = 0 Then Wscript.Echo "There are no USB Devices Connected to the machine." WScript.Quit 2 End If 'Display the Currently Connected USB Devices Wscript.Echo "USB Devices Connected to the machine" For Each usbDevice in usbDevicesColl Wscript.Echo "USB Device Name: " & usbDevice.DeviceString Next 'Variable to find if Device is Found isFound = 0 For Each usbDevice in usbDevicesColl if LCase(usbDevice.DeviceString) = LCase(WScript.Arguments(1)) Then 'Attach the USB device to VM set objAssign = objVM.AttachUSBDevice(usbDevice) isFound = 1 break End If Next If isFound = 0 Then Wscript.Echo "Unable to find the USB device. Please check the device string." Else Wscript.Echo "The Device is assigned to the Virtual Machine." End If ---------------------------------------------------------------------------------- Similarly, you can use DetachUSBDevice method to release USB device from the VM. --------------------------------------------------------------------------------It's kind of a pain because you'd have to start the seamless app, wait for it to be running, then lauch this script on the host to attach the proper USB device. (If you're really bood with scripting, you can hav ethis running all the time looking for the VM to be running and if it is, then attach the device.)
Bob Comer - Microsoft MVP Virtual Machine- Marked As Answer by BJRichards Thursday, November 11, 2010 3:47 PM
-
Friday, February 04, 2011 10:53 PM
wow, this is gold! I've been looking for a way to do this.
Ideally, XP mode would include the ability to autmatically attach a USB when a VM is running, but this is the next best thing.
Thanks,
Leif -
Tuesday, March 22, 2011 9:42 AM
I am not a programmer.
What do i do with the script ?
(I have visual studio if necessary)

