Archive: Associating a file type with a program


Associating a file type with a program
I tried this:
WriteRegStr HKLM "SOFTWARE\Classes\.ctl\OpenWithList\My Program.exe" "" ""
WriteRegStr HKCR ".ctl\OpenWithList\My Program.exe" "" ""

And my installer writes these strings perfectly, but when I try to open a *.ctl file it still doesn't know what program to use. What am I doing wrong?
Thanks for any help.


Try to see here.

ADD:
And here, here, and here.


The only thing I found when I searched was this.
Obivously I need to learn how to search.
Thanks for your help.


Originally posted by AlexanderG
The only thing I found when I searched was this.
Obivously I need to learn how to search.
Thanks for your help.
You want to find file association so search for "associate".

Originally posted by glory_man
You want to find file association so search for "associate".
Erm...I was tired. Yeah, thats why I didn't think of that. :cough: