Re: Capturing document extension
- From: David Wilkinson <no-reply@xxxxxxxxxxxx>
- Date: Wed, 24 Jan 2007 10:46:31 -0500
David Webber wrote:
You are not alone. This must be documented somewhere!
Dave
Thanks, David. You and I seem in much the same boat here, so I hope someone else weighs in.
The only documentation I have found on this is basically the HKCR mechanism as I described it. I have never found documentation on the parallel universe of "Open with" and the HKCU entries you mention.
The existing pre-Vista version of my apps used the MFC CWinApp::RegisterShellFileTypes(). My instructions to the user for changing the association were to delete the .ret file association using Windows Explorer, and then run the program that he/she wants to get the association (RegisterShellFileTypes() will not steal an association, just grab an extension that is not already assigned).
One of the first things I discovered with Vista was that this RegisterShellFileTypes() method does not work on Vista, even after a clean install (it is not even virtualized if you do not have a Vista-aware manifest). So I moved the file association code to my setup program, which runs as admin.
That is where I am right now, wondering how to change the association in my non-admin application.
David Wilkinson
.
- Follow-Ups:
- Re: Capturing document extension
- From: David Webber
- Re: Capturing document extension
- References:
- Capturing document extension
- From: David Wilkinson
- Re: Capturing document extension
- From: David Webber
- Capturing document extension
- Prev by Date: Re: Giving a list of names
- Next by Date: Linker Error after upgrade from VC7.1
- Previous by thread: Re: Capturing document extension
- Next by thread: Re: Capturing document extension
- Index(es):
Relevant Pages
|