Old 24th January 2006, 16:55   #1
buildul
Junior Member
 
Join Date: Jan 2006
Posts: 1
Question Creating shellex extensions using NSIS

Hello,

Thanks for a wonderful install system.

We are developing a Java application which we wrap in a windows executable using jsmooth (http://jsmooth.sourceforge.net/). And we use NSIS to create an installer for the same.

We now would like to create a windows shell extension to open files using our application. How do we do that using NSIS?

The files that can be opened by our application are any text file (no particular file extension, and in some cases no extension also). So the context menu should show the option to "Open with MyApp" for any file type - much like GVIM or EditPlus.

I have searched the Wiki and posts on the forum, but they are pointers to create file type associations.

Any help would be appreciated.

TIA
Bindul
buildul is offline   Reply With Quote
Old 24th January 2006, 17:59   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
For shell extensions, there's The Complete Idiot's Guide to Writing Shell Extensions. However, for what you seek, there may be no need for a full blown shell extension. You can simply create a key named "shell" under "*" in HKCR as with every other type you register. The following pages in the Wiki show how to do this for other file types. Simply use "*" instead your own type.

http://nsis.sourceforge.net/Add_your...e_context_menu
http://nsis.sourceforge.net/File_Association

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 25th September 2006, 21:56   #3
wilsonronl
Junior Member
 
Join Date: Sep 2006
Posts: 2
I see how to add an action for any extension, but how about just for files with no extension?
wilsonronl is offline   Reply With Quote
Old 29th September 2006, 09:44   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
I don't know if that's possible using the registry alone. With a DLL shell extension, you could easily check the file name and decide for yourself.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump