On Aug 20, 2016, at 2:00 PM, Timothy Penner wrote: > Hi Tim, > >> I’ve not found a for sure way to set PDF Creator to never check for updates >> for all users on Terminal Server. I’m sure there must be a settings file >> stored somewhere for each user that has this setting, but I’ve not been able >> to find it. I guess it also could be in the Registry. >> Anyone the name of this PDF Creator settings file or the key for it in the >> Registry? > > There was an iNUG thread titled "Update Registry to Shut Off PDFCreator > Updates" from 2014 which covered a couple ways of doing this. > > The basic info is listed here: http://kb.4d.com/assetid=76893 > > That information can be combined with a tool that can modify the registry, > such as Regedit.exe and LEP, or the Win32API plugin. > > Here are two specific examples: > http://kb.4d.com/resources/inug?msgid=GmailId14a30d79c51c308d > http://kb.4d.com/resources/inug?msgid=GmailId14a31c3fc4883078 > > The full thread is available on Nabble (warning: Nabble contains > advertisements): > http://4d.1045681.n5.nabble.com/Update-Registry-to-Shut-Off-PDFCreator-Updates-td5734743.html > > I hope this helps,
Thanks Tim. This gave me the basics of what I needed to do. But there is an issue if you are trying to run this with some code from 4D. To modify HKEY_LOCAL_MACHINE in many cases you need elevated privileges. The fix is to use HKEY_CURRENT_USER. This always works because it sets the value for the current user and doesn’t required elevated privileges. Also no need to check for 64bit machine because this is based on the user not the machine. Here is some code that uses the Win32API plugin to get the job done: // =========================================== // PROJECT METHOD: TurnOffPDFCreatorUpdates // PARAMETERS: none // DESCRIPTION: Turns off checking for updates by PDFCreator. // Based on: http://kb.4d.com/assetid=76893 // But you can't update HKEY_LOCAL_MACHINE without elevated // privileges. So use HKEY_CURRENT_USER instead. That always works. // CREATED BY: Tim Nevels, Innovative Solutions ©2016 // DATE: 8/20/16 // LAST MODIFIED: // ============================================ C_TEXT($subKey_t;$value_t) C_LONGINT($error) If (<>PDFCreatorInstalled_b) // set registry key $subKey_t:="Software\\PDFCreator\\Program" // check if value has been set $error:=sys_GetRegText (GR_HKEY_CURRENT_USER;$subKey_t;"UpdateInterval";$value_t) Case of : ($error#1) // problem LogMessage ("TurnOffPDFCreatorUpdates Win32API sys_GetRegText error = "+String($error);"Error") : ($value_t#"0") // not set to never update $error:=sys_SetRegText (GR_HKEY_CURRENT_USER;$subKey_t;"UpdateInterval";"0") If ($error#1) // problem LogMessage ("TurnOffPDFCreatorUpdates Win32API sys_SetRegText error = "+String($error);"Error") End if End case End if Tim ******************************************** Tim Nevels Innovative Solutions 785-749-3444 [email protected] ******************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

