Wednesday, February 27, 2008

Filemaker printer thingy.

Thanks to Red400r for the contribution about Filemaker and default printers (see below). Here's an addition to that. If you don't want to rummage through the registry for every user who complains about this, here's a vbscript to delete the registry key (beware the text wrapping):

Const HKEY_CURRENT_USER = &H80000001

strComputer = "."

Set objRegistry=GetObject("winmgmts:\\" & _
strComputer & "\root\default:StdRegProv")

strKeyPath = "Software\FileMaker\FileMaker Pro\9.0\Preferences"
strValueName = "Printer"

objRegistry.DeleteValue HKEY_CURRENT_USER, strKeyPath, strValueName

That works for Filemaker Pro v9, just customise strKeyPath = "Software\FileMaker\FileMaker Pro\9.0\Preferences" for your version!


No comments: