File association

  • Thread starter Thread starter Nak
  • Start date Start date
N

Nak

Hi there,

I am implementing file association from within my application,
association that occurs after installation. Anyway, I remember a while back
seeing a key in the registry that was used to store the previous registered
application to an extension, but I can't for the life of me find out what
the exact key was called, I *think* it was "Previous" or something like
this. Anyway, what it means is that my application could restore the
previous association on "unassociation".

I would rather use the correct registry key for this rather than making
up my own, just incase other applications can use it. Anyway, I asked the
windows newsgroup with not even a single answer after quite a long wait,
over 2 weeks. So I thought I'd ask here, just incase one of you had
experience in this, thanks for your help in advance :-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Hi Nick,

I've never heard of this 'backup' key. Damn decent of you to be so
considerate of your Users.

I think you should just roll your own. You could either do it in-place in
the file association keys, or have a list stored in your own app's section of
the registry.

If you store it with the file assocation itself, the key NikNakPaddyWak is
almost certain not to have been chosen for any program in the World - but I
could be wrong on this.

Regards ;-)
Fergus
 
Hi Fergus,
I've never heard of this 'backup' key. Damn decent of you to be so
considerate of your Users.

Apps messing my associations up has always irritated me :-( I don't wont
mine to be one of those.
I think you should just roll your own. You could either do it in-place in
the file association keys, or have a list stored in your own app's section of
the registry.

I had thought of this numerous times, but as far as I was aware, Windows can
actually use the key to restore a previous association. For example, if I
were to associate the extension ".fek", the key was situated somewhere like

HKEY_CLASSES_ROOT\.fek\Previous

Maybe I *am* being too considerate, the thing is that my app has plugins
that enable it to open an unspecified number of file types, so I wish to be
able to change them on the fly with no problems.
If you store it with the file assocation itself, the key NikNakPaddyWak is
almost certain not to have been chosen for any program in the World - but I
could be wrong on this.

LOL, I think I may do this, sod using any previous incarnation. :-) Thanks
for the advice Fergus.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Hi Nick,

It seems that there is no such registry key that will save the previous
association.
I agree with Fergus's suggestion that you may need to save the registry key
before you make changes.
And restore it after you uninstall the application.

You may use the tool regmon to see what has changed.
Here is the link.
http://www.sysinternals.com/ntw2k/source/regmon.shtml

Here is a link.
HOWTO: Associate a File Extension with Your Application (Win32)
http://support.microsoft.com/?id=185453

If you have any related question,please feel free to let me know.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
 
Hello, friends:

I've seen some threads regarding file association and I think that there isn't very much information about it.
But you can find all the information you need in a MSDN chapter beginning at http://msdn.microsoft.com/library/d...sics_extending/fileassociations/fileassoc.asp .

It is a lot of reading but, at least for me, very interesting.

I hope you find it useful.

Regards.


"Nak" <[email protected]> escribió en el mensaje | Hi there,
|
| I am implementing file association from within my application,
| association that occurs after installation. Anyway, I remember a while back
| seeing a key in the registry that was used to store the previous registered
| application to an extension, but I can't for the life of me find out what
| the exact key was called, I *think* it was "Previous" or something like
| this. Anyway, what it means is that my application could restore the
| previous association on "unassociation".
|
| I would rather use the correct registry key for this rather than making
| up my own, just incase other applications can use it. Anyway, I asked the
| windows newsgroup with not even a single answer after quite a long wait,
| over 2 weeks. So I thought I'd ask here, just incase one of you had
| experience in this, thanks for your help in advance :-)
|
| Nick.
|
| --
| /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
| "No matter. Whatever the outcome, you are changed."
|
| Fergus - September 5th 2003
| /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
|
|
 
Hi José,

I shall take a read, it looks very interested. Thanks for your help :-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Hi Fergus,
Been there, read that.

It <was> interesting. ;-)

I wonder if that little ol' MSDN site has info on putting some new items
into the common tasks panel in explorer, such as changing the "View as a
slide show" button so it loads up a different app, now that would be nice,
I'm off to check it out!

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Hi Nick,

Did my suggestion help you?
If you have any question on this issue please post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top