Solved

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

Posted on 2008-06-09
2
13,139 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I recently purchased an HP EliteBook 2540p notebook/laptop. It has two video ports on it – VGA and DisplayPort. HP offers an optional docking station for the 2540p that also has both a VGA port and a DisplayPort. There are numerous online reports do…
If you are having problems installing printer drivers, or if documents repeatedly get stuck in the print queue even after re-installing the printer drivers, then follow these steps to solve the problems. Please note that the steps are shown both for…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now