File extension: Flabbergasted

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I try to associate a given file extension to my program so when the user
click on my application files, the app is launch automatically.

My application (when started) edit the registry if needed but nothing happen
(when I click on my file I have an error panel informing me there is no
association)

But when I look at the registry value with PHM they are correct and if I
edit them manually (with PHM) to setup manually the *exact same value* as I
do programatically with my app, suddenly the file association work !!!

what kind of notification could I be missing ?!?!?!?!
 
What are the registry changes are you making ?

I know the following works:

For creating an association between *.xyz files and \mypath\j3.exe:

1. create a key (in \HKEY_CLASSES_ROOT) named .xyz (don't forget the dot)
2. in this key, create a String Value, named Default with the value j3file
3. create a key (in \HKCR) named j3file
4. in this key, create a key named DefaultIcon and a key named Shell and
a String Value, named Default, with the value j3file
5. in the key \HKCR\j3file\DefaultIcon, create a String Value, named
Default with a value that will give an icon (for example, \mypath\j3.exe,0)
6. in the key \HKCR\j3file\Shell create a key named Open
7. in the key \HKCR\j3file\Shell\Open create a key named command
8. in the key \HKCR\j3file\Shell\Open\command, create a String Value,
named Default, with the value "\mypath\j3.exe" %1 (don't forget the " ")

James McCutcheon
 
that might be it !
I don't call named my value "Default", I just use null.
That might be the reason ! Have to try !
 
Back
Top