/bundles/itninjaweb/img/Breadcrumb_cap_w.png
Hi all,

Could anyone help me on sorting out the file associations. I have an image view program, install and all the JPG and GIF extensions are associated with the program.
But after a day or so, it defaults back to Microsoft Photo Editor which I don’t want it to do.

So I was thinking about finding out where the File Extensions are in the registry and putting what I want the file extensions to be associated with. I.e. this image viewer program I want to use.

So basically could some point me in the right direction to where I find how to associate the extension to the program I want to use.

Cheers

TG
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Basically the File Associations are found unter HKEY_CLASSES_ROOT\.jpg for example.

With Wise Package Studio you can associate the File types to a specific .exe during installation. I don't know how other packaging programs handle that.

Hope this helps

Cheers

Roland
Answered 10/18/2006 by: rpfenninger
Second Degree Green Belt

Please log in to comment
0
Is there a way i can find out where is stores them details if I use the assoicate bit in Wise. As I want to get that information and put it in the start up script when users log on. So it will always associate with this Image Viewer program.
Answered 10/18/2006 by: Thegunner
Second Degree Green Belt

Please log in to comment
0
You might make a Setup Capture and change the File association manually to check, where the changes are made beside the registry key HKCR\.jpg.

I think you should check, why the association gets lost after a while. Does your Microsoft Photo Editor come up with a self-repair?
Answered 10/18/2006 by: rpfenninger
Second Degree Green Belt

Please log in to comment
0
After looking around and testing the file association extensions. I have think I have done it, needs more testing but so far so good.

There are two sections where the file is associated with a program.

HKEY_CLASSES_ROOT

In there you need the name of the program (in my case )

HKEY_CLASSES_ROOT\Irfanview.jpg

in there you have a DefaultIcon and shell folders which have information that links it to the image viewer


HKEY_LOCAL_MACHINE

In here you have as below

HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.jpg

Here in the <default> value it is "irfanview.jpg"

The main Icon is the same as it was, but when you click on it, it open up with Irfan View.
Answered 10/18/2006 by: Thegunner
Second Degree Green Belt

Please log in to comment
0
Let's say we're looking for the associate for .jpg. Open HCR\.jpg. Look at the default setting for .jpg. It points to, "jpegfile". Now scroll down to HCR\jpgegfile\shell\open\command. Take a look at the default setting. This is what determines what your files are opened with. Use the same strategy for .doc, .xls, etc....
Answered 10/18/2006 by: Secondlaw
Third Degree Blue Belt

Please log in to comment
0
Hi Thegunner,
please note an important thing here in the registry:
The Hive 'HKEY_CLASSES_ROOT' is a virtual section which is merged from:
HKEY_LOCAL_MACHINE\Software\Classes
and
HKEY_CURRENT_USER\Software\Classes

With this, each user can have their own filetype definitions (and others).

Their is one major drawback: The Hive file for the 'HKEY_CURRENT_USER\Software\Classes' section
'C:\Documents and Settings\<user profile>\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat'
is not roamed in a 'roaming profiles' scenario.

Hope this helps a bit.

Regards, Nick
Answered 10/18/2006 by: nheim
Tenth Degree Black Belt

Please log in to comment