Solved

How can I set the default Twain Device in Windows XP?

Posted on 2008-06-09
2
13,248 Views
Last Modified: 2013-12-27
Hello all,

I have (2) scanners that I need to get working with (2) different applications to deploy to over 500 workstations. Unfortunately I had no control over the selection of scanners, I'm just left with the task of getting them to work. Hopefully someone from this great community can assist.

Hardware: Fujitsu fi-5120 scanner, Fujitsu fi-5000n network adapter, ScanShell 800n card scanner

Application 'A' (Specialty EHR program) uses ISIS drivers for scanning Documents using the fi-5120.
Application 'A' uses TWAIN drivers for scanning IDs using the 800n card scanner. TWAIN source CANNOT be selected through software - it uses the default TWAIN device.

Application 'B' (Microsoft Office Document Scanning) uses TWAIN for scanning documents for copying/faxing. TWAIN source CAN be selected through software.

All computers run XP SP2

I have no issues with MODS. Everything works fine and I can set/keep the defaults.
Its Application 'A' that has the issues

Scenario 1 -
Fujitsu fi-5120 plugged in USB
ScanShell Plugged in USB
Result: Everything works fine. Application 'A' recognizes the 5120 for ISIS scanning and the 800n for TWAIN ID scanning.

Scenario 2 -
Fujitsu fi-5120 plugged into Fujitsu fi-5000n network adapter
ScanShell plugged in USB
Result: Application 'A' always recognizes fi-5000n as TWAIN and will not let me select the 800n


I know I can use a 3rd program to select a TWAIN source as the 800n. This will allow App 'A' to work until they need to use the 5000N/5120 with MODS. Once this scanner is used, App 'A' now recognizes the 5120 instead of the 800n in TWAIN. The 5000n software always turns the 5120 into the default Twain device.

I have searched all over for a registry or ini setting that Windows uses for its Default Twain device, and can't find anything.
Application 'A' has no such setting in registry or config file for a default scanner. And their support team says 'We dont support more than 1 twain device attached to the computer'
Fujitsu was worthless and wasn't even aware their product worked with ISIS.

What I need to accomplish is to tell windows to Always use the Scanshell 800n as the default Twain Device. (I can set the MODS default through registry settings, so this program won't be affected)

Anyone have any ideas?

Thanks,
Jeff
0
Comment
Question by:byoungberg
2 Comments
 

Author Comment

by:byoungberg
ID: 21796225
So I found the solution in case others run into a similar problem:

HKCU\Software\Microsoft\Windows NT\Twain is the location of the Windows Default Twain Device

String name 'Default Source'  and the value is the path of the the .ds file for the scanner (ex. C:\WINDOWS\Twain_32\CSSN800N\CSSN800N.DS)

This key only seems to appear if there is more than 1 twain device connected.

To prevent one scanner from 'overwriting' this value and thus replacing the default, set permissions on the key. I did a deny to everyone (you can still modify permissions of the key to change it when needed).

Windows will now always recognize the scanner of your choice as Default, and a new scanner installed or used will not overwrite it.

0
 

Accepted Solution

by:
EE_AutoDeleter earned 0 total points
ID: 21978945
byoungberg,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Well I am not sure whether i deserve anything (credit or points) for this article, since I have not written the source code but discovered the same while browsing the net. I only wish to help EE users save some money and probably help the environmen…
It started not too long ago. It was at first annoying. My keystrokes seemed to be randomly generated, not the ones I typed on the keyboard. For some reason this only happened in certain applications (especially browsers such as IE11, Firefox and Chr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question