/build/static/layout/Breadcrumb_cap_w.png

File Associations

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   [ + ] Show comments

Answers (6)

Posted by: rpfenninger 17 years ago
Second Degree Green Belt
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
Posted by: Thegunner 17 years ago
Second Degree Green Belt
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.
Posted by: rpfenninger 17 years ago
Second Degree Green Belt
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?
Posted by: Thegunner 17 years ago
Second Degree Green Belt
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.
Posted by: Secondlaw 17 years ago
Third Degree Blue Belt
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....
Posted by: nheim 17 years ago
10th Degree Black Belt
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
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