Change File Associations??

  • Thread starter Thread starter William Robertson
  • Start date Start date
W

William Robertson

Hi there

I need to change the file association for TIF images on all WinXP
workstations within my company. This is primarily due to the fact that
Windows Picture & Fax Viewer opens *ALL* files in a directory when you try
to print a file, and this has serious repercussions for me as I have ~4000 -
7000 files in a directory...

Anyway, I tried using tools such as ftype.exe and assoc.exe, and even
associate.exe from the resource kit... But I cannot seem to get it to work
properly.

With any other filetype it seems to work OK, but the Windows Picture & Fax
Viewer is a tricky application to "dis-associate". Any ideas??

Thanks
William R.
 
William said:
Hi there

I need to change the file association for TIF images on all WinXP
workstations within my company. This is primarily due to the fact that
Windows Picture & Fax Viewer opens *ALL* files in a directory when you
try to print a file, and this has serious repercussions for me as I
have ~4000 - 7000 files in a directory...

Anyway, I tried using tools such as ftype.exe and assoc.exe, and even
associate.exe from the resource kit... But I cannot seem to get it to
work properly.

With any other filetype it seems to work OK, but the Windows Picture &
Fax Viewer is a tricky application to "dis-associate". Any ideas??

Thanks
William R.

With what program are you trying to associate .tif's? There should be no
problem associating .tif's with another image program if you have one
that handles .tif's. A nice free program is Irfanview from
www.irfanview.com.

In any case, right-click on a .tif and choose Open With and from their
Choose Program. Pick the program you want to have handle .tif's and
check the box at the bottom that says "always use".

Malke
 
Thanks Malke.
Irfan is exactly the application I want to use... but I need to do the
association "programmatically"... I.e. I want to fix all of this within a
Login Script, because there are just too many users to try and educate to do
this...
 
William Robertson said:
Thanks Malke.
Irfan is exactly the application I want to use... but I need to do the
association "programmatically"... I.e. I want to fix all of this within a
Login Script, because there are just too many users to try and educate to
do this...
The method that Malke proposed associates whatever file viewer you wish with
a particular file type. This is in effect an assoication
"programmatically", and there is no need to educate your users about this
subject.
Jim
 
William,

You're correct. Using the FType and changing the jpegfile\open does not
help. Simplest workaround is to create your own ProgID for jpegs.

Example:

ASSOC .JPG=IView
FTYPE IView="%Programfiles%\IrfanView\i_view32.exe" %1

IView is the new ProgID we've created. Tested and working fine.
 
Hi Ramesh

Thanks for your effort. I think maybe my PC was a little wonky, as I had
already tried this to no avail, yet when I did it on a "clean" PC it worked
a little better...

All the ivons of my JPG and TIF files have now changed to that of IrfanView,
but when I doubleclick the files they still open within Windows Picture &
Fax Viewer.

I have read something about WP&FV which states that it is the "overall
default" of all image files. Do you think that I may need to remove this
"overall default" somehow?

Thanks
William R.
 
William,

So it does work in a clean install?

From one of the systems where it does not work properly, try this:

Download FileExtInfo.zip from here:
http://windowsxp.mvps.org/fileextinfo.htm

Unzip and run the tool. Select the .JPG type from the list and create a
report. Post the entire information here.
 
Hi Ramesh

I am having trouble with the .TIF files, so I haver used your utility
(BTW... Cool site!!!) and here is the extract:


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FileExtInfo v1.0 - Log file
25/09/05 12:23:20 PM

Complete File association information for ---> .TIF
Useful for troubleshooting File association and other problems
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


[HKEY_CLASSES_ROOT\.TIF]
"Content Type"="image/tiff"
@="IView"
"PerceivedType"="image"

[HKEY_CLASSES_ROOT\.TIF\MSPaper.Document]

[HKEY_CLASSES_ROOT\.TIF\MSPaper.Document\ShellNew]

[HKEY_CLASSES_ROOT\.TIF\OpenWithList]

[HKEY_CLASSES_ROOT\.TIF\OpenWithList\ois.exe]
@=""

[HKEY_CLASSES_ROOT\.TIF\OpenWithProgids]
"TIFImage.Document"=hex(0):

[HKEY_CLASSES_ROOT\.TIF\PersistentHandler]
@="{6BE013B5-D"


[HKEY_CLASSES_ROOT\IView]

[HKEY_CLASSES_ROOT\IView\Shell]

[HKEY_CLASSES_ROOT\IView\Shell\Open]

[HKEY_CLASSES_ROOT\IView\Shell\Open\Command]
@=hex(2):22,00,43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
00,46,00,69,00,6c,00,65,00,73,00,5c,00,49,00,72,00,66,00,61,00,6e,00,56,00,\
69,00,65,00,77,00,5c,00,69,00,5f,00,76,00,69,00,65,00,77,00,33,00,32,00,2e,\
00,65,00,78,00,65,00,22,00,20,00,25,00,31,00,00,00


[HKEY_CLASSES_ROOT\SystemFileAssociations\.TIF]
"ImageOptionFlags"=dword:00000000


[HKEY_CLASSES_ROOT\SystemFileAssociations\image]
"TileInfo"="prop:Dimensions;Type;Size"
"InfoTip"="prop:Dimensions;WhenTaken;DocTitle;DocComments;CameraModel;Type;Size"
"Details"="prop:Name;Type;Dimensions;Size;Write"

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\OpenWithList]

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\OpenWithList\MSPaint.exe]
@=""

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\OpenWithList\shimgvw.dll]
@=""

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell]

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\edit]

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\edit\command]
@=hex(2):22,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,\
73,00,70,00,61,00,69,00,6e,00,74,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,\
00,25,00,31,00,22,00,00,00

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\print]

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\print\command]
@=hex(2):72,00,75,00,6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,\
00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,\
25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,\
00,69,00,6d,00,67,00,76,00,77,00,2e,00,64,00,6c,00,6c,00,2c,00,49,00,6d,00,\
61,00,67,00,65,00,56,00,69,00,65,00,77,00,5f,00,46,00,75,00,6c,00,6c,00,73,\
00,63,00,72,00,65,00,65,00,6e,00,20,00,25,00,31,00,00,00

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\print\DropTarget]
"Clsid"="{60fd46de-f830-4894-a628-6fa81bc0190d}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\ShellEx]

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\ShellEx\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\ShellEx\ContextMenuHandlers\ShellImagePreview]
@="{e84fda7c-1d6a-45f6-b725-cb260c236066}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\ShellEx\PropertyHandler]
@="{eb9b1153-3b57-4e68-959a-a3266bc3d7fe}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{3F30C968-480A-4C6C-862D-EFC0897BB84B}"


[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.TIF]
@=""
"Progid"="TIFImage.Document"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.TIF\OpenWithList]
"a"="I_VIEW32.EXE"
"MRUList"="bdac"
"b"="mspaint.exe"
"c"="shimgvw.dll"
"d"="MSPVIEW.EXE"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.TIF\OpenWithProgids]
"TIFImage.Document"=hex(0):
"MSPaper.Document"=hex(0):
"tiffile"=hex(0):
"IView"=hex(0):
 
Hi William,

That does not work because there is an override in place. (FileExts key).

After running the ASSOC and FType commands, you may want to execute two
commands as well (during user logon)

REG DELETE
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.TIF" /f
REG DELETE
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.JPG" /f
 
HAH!!! Genius!!!!
Thanks Ramesh, it now works just fine!!

Have a great day,
Cheers
William R.


Ramesh said:
Hi William,

That does not work because there is an override in place. (FileExts key).

After running the ASSOC and FType commands, you may want to execute two
commands as well (during user logon)

REG DELETE
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.TIF" /f
REG DELETE
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.JPG" /f

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


William Robertson said:
Hi Ramesh

I am having trouble with the .TIF files, so I haver used your utility
(BTW... Cool site!!!) and here is the extract:


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FileExtInfo v1.0 - Log file
25/09/05 12:23:20 PM

Complete File association information for ---> .TIF
Useful for troubleshooting File association and other problems
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


[HKEY_CLASSES_ROOT\.TIF]
"Content Type"="image/tiff"
@="IView"
"PerceivedType"="image"

[HKEY_CLASSES_ROOT\.TIF\MSPaper.Document]

[HKEY_CLASSES_ROOT\.TIF\MSPaper.Document\ShellNew]

[HKEY_CLASSES_ROOT\.TIF\OpenWithList]

[HKEY_CLASSES_ROOT\.TIF\OpenWithList\ois.exe]
@=""
 
Sorry, 1 last question if I may...

How do I get the icon of .TIF files to display the IrfanView image..?
 
It works fine here (takes the 0th icon).

Setting the defaulticon for TIF:

reg add HKCR\IVIEW\DefaultIcon /ve /d
"%programfiles%\irfanview\i_view32.exe,1" /t REG_EXPAND_SZ /f
 
Back
Top