Skip to content
⌘ NSIS Forum Archive

Associating a file type with a program

5 posts

AlexanderG#

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.
AlexanderG#
The only thing I found when I searched was this.
Obivously I need to learn how to search.
Thanks for your help.
glory_man#
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".
AlexanderG#
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: