Set default file association for all users


  1. zay
    Posts : 507
    Windows 7 Ultimate
       #1

    Set default file association for all users


    Hi I would like tiff files to be opened by internet explorer for all users. I am a little puzzled how to set that in the registry. I want to apply this to over 20 computers so that no matter who logs on, the tiff files will open with IE. We are using an application called Alternatiff that is tied to IE that handles tiff attachments in our applications. The application (Alternatiff) uses IE to open the tiff files hence my wanting to hard code that into the registry for all users. Thanks in advance. GPO is not an option at this point.
      My Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    Set it up on one machine then search the registry for Alternatiff. Export the ones that have to do with file association. Import into the other computers.

    Control Panel, Default Programs, Associate a filetype or protocol with a program.

    Scroll down to .tiff and set it to open with Alternatiff.
      My Computer


  3. zay
    Posts : 507
    Windows 7 Ultimate
    Thread Starter
       #3

    Thanks Ztruker, the issue with your suggestion is that it applies to per user (HKCU). I did however try your suggestion prior to my initial post. I need to figure how to edit HKLM so that it will set for the machine. I already deleted all the profiles using delprof2, so any "open with" (hkcu) file association options have set by other users are gone. Once I figure how to set it in the reg under hklm, any subsequent logs will not have to set the open with options.
      My Computer


  4. Posts : 2,416
    Windows 7 Ultimate x64
       #4

    Simply edit the equvalent HKCR entries for file associations from your .reg file and it will apply them system-wide. On a per-user basis, the paths will be something like this:

    HKEY_CURRENT_USER\Software\Classes\.tiff
    HKEY_CURRENT_USER\Software\Classes\tifffile

    And a couple of entries below those. Just replace them with the proper system-wide path:

    HKEY_CLASSES_ROOT\.tiff
    HKEY_CLASSES_ROOT\tifffile
      My Computer


  5. zay
    Posts : 507
    Windows 7 Ultimate
    Thread Starter
       #5

    I really to take a class on registry scripting. Thanks Alejandro, but if I am correct in my interpretation/assumption, but doesn't HKCU apply to that specific user's key. That being said, how can I apply that to the other users' keys, especially since there are no profiles (I deleted them so that HKLM can take initial precedence)? So, (excuse my laziness), to assign .tiff to IE, would it look something like this (and work globally for all users)?
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.tif]
    @="\"C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe\" %1"
    "PerceivedType"="image"
    "Content Type"="image/tiff"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.tif\OpenWithList]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.tif\OpenWithList\ehshell.exe]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.tif\OpenWithProgids]
    "TIFImage.Document"=""
      My Computer


  6. Posts : 2,416
    Windows 7 Ultimate x64
       #6

    zay said:
    but if I am correct in my interpretation/assumption, but doesn't HKCU apply to that specific user's key
    Yes, that's correct, HKCU is per-user. That's why I suggested HKCR, which is system-wide. Your copied .reg file also uses HKLM which is also system-wide. In fact, it's the very same solution as mine, except yours don't use the HKCR virtual key.



    zay said:
    I deleted them so that HKLM can take initial precedence
    Good point, I completely forgot about it. In explorer's file associations, per-user take precedence and nullify system-wide ones when pointing to the same types.
      My Computer


  7. zay
    Posts : 507
    Windows 7 Ultimate
    Thread Starter
       #7

    Lol, so can I distribute the above reg export (as is) out to other computers, and it become the system wide setting for tiff files to open with IE? Or do I need to edit it (and how please)?
      My Computer


  8. Posts : 2,416
    Windows 7 Ultimate x64
       #8

    It seems in a good shape, but of course test it first in another computer just to be sure. Then yes, simply import that into every computer for them to get the same association.
      My Computer


  9. zay
    Posts : 507
    Windows 7 Ultimate
    Thread Starter
       #9

    Awesome I will give it a try and report back.....thanks for everything.
      My Computer


  10. zay
    Posts : 507
    Windows 7 Ultimate
    Thread Starter
       #10

    Well, I tried that reg key and it did not work. So, I am going to try the instructions on this site, but still a bit unsure....but gonna monkey with it anyway.
    File Association Example (Windows)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 02:32.
Find Us