Program link workaround for mixed 32/64 bit network

For users or potential users.
Post Reply
User avatar
wjstarck
Posts: 936
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Program link workaround for mixed 32/64 bit network

Post by wjstarck » Fri Jun 25, 2010 5:03 am

One of the really nice features of OD is the ability to launch any external application by creating a external program link in Setup > Program Links. This will work for all the PCs on your network unless you have a mixed bag of 32 bit and 64 bit computers, as your 32 bit programs on a 32 bit computer will be in the folder C:\Program Files\ while those on your 64 bit computers will typically be in C:\Program Files (x86)\. The string "C:\Program Files\ProgramFolderName\ProgramName.exe" is known as an application's "path".

On 64 bit Windows boxes, programs like QuickBooks that are still 32 bit programs will be stored in C:\Program Files (x86)\ . All programs on your 32 bit computers, will be stored in C:\Program Files\. Since you need to specify the path to the external app you want to launch, the external program link will be broken on your 64 bit computers if you specify a 32 bit path, or vice versa for your 32 bit computers if you specify the 64 bit path.

So let's say I want to create a QuickBooks ToolBar button. Here are the steps:

1) I currently have more 32 bit PCs than 64 bit PCs, so I'll use the 32 bit path in OD like so:

Image

(I select "All modules" under "Add a button to these toolbars" at the middle left because it seems more convenient to have the button in the uppermost OD toolbar). Click "OK" to save the Program Link.

2) Next, on the 64 bit PCs, find the folder that the program is in (in my case C:\Program Files (x86)\Intuit). Right click on this folder and select "Create Shortcut". Windows will tell you it can't create the shortcut in the folder you're in, and will ask you if you want it on the desktop. Click "Yes"
3) Rename the folder from "Foldername-Shorcut" to "FolderName". So in my case it would be "Intuit-Shortcut" to "Intuit"
4) Open up C:\Program Files in Windows Explorer. Then, right click on the shortcut you just created on your desktop, and drag it there. A context menu will popup. Select "Move here" from the list of choices.
5) Repeat this process on all of your other 64 bit computers.

Now the OD toolbar button for your external program will launch your program from any PC that you have it installed on, regardless of whether it is 32 or 64 bit.
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA

User avatar
jordansparks
Site Admin
Posts: 5742
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Program link workaround for mixed 32/64 bit network

Post by jordansparks » Fri Jun 25, 2010 9:29 am

That's a very neat trick. Obviously, our planned solution is to let users override the path on a per-computer basis. Just haven't quite gotten around to it yet. Your solution provides a short-term fix.
Jordan Sparks, DMD
http://www.opendental.com

Post Reply