/build/static/layout/Breadcrumb_cap_w.png

How to Change a File Association for All Users?

We have a very (very, VERY) ropey but essential piece of software called Valid Viewer, which when installing often does not correctly take over/set/change the file association of both TIF and TIFF files.

I have written a reg file to set the file association of a machine, but it seems that if a user has already logged on once on that machine then their preference over-rides anything i set on a machine level.

Is there any way to force a machine and all existing profiles to change a file association to a paticular program?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 13 years ago
Red Belt
0
The first lesson to learn here is that HKCR (where you will probably have gone first to change the file associations) is an amalgam of HKCU\Software\Classes and HKLM \Software\Classes. Your problematic users will have the association set in HKCU\Software\Classes: Windows will use settings from the HKCU hive in preference to those in HKLM.

Probably the most effective way to move the settings from HKCU to HKLM is by setting up an Active Directory job to run an appropriate script. As ever, make sure your script error-traps EVERYTHING - always assume that NOTHING will work, even setting up objects like WScript.Shell.
Posted by: mcompton69 13 years ago
Orange Senior Belt
0
OK, we now have a plan, but need some assistance.

I want to create a script and put it in the All Users\Start Menu\Startup folder - this is a better system for us as we can amend the deployment package, rather than targeting users via AD.

VBScab - could you assist with coming up with the script as your name seems to suggest thats your field of expertise (although I would prefer a batch file)?!

I have played around with both assoc and ftype, but for some reason, once a user has change the open with to a program and also ticked the tick box to remember that setting, assoc does not seem able to overide that setting - even if both assoc and the file association are set in the same profile (so it does not appear to be the issue you have mentioend above). Assoc reports that the file association is .tif=vview2 - but in fact tif files still only open with the WINdows Picture and Fax viewer.

Any assistance greatly appreciated!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ