Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 30th May 2002, 15:49   #1
Nightmarez
Junior Member
 
Join Date: May 2002
Posts: 2
Send a message via ICQ to Nightmarez
Right-click on any directory and have the menu include my program. How in NSIS?

I want to be able to open my program by right-clicking on any directory in Windows.. I know Winzip does this, how can I do it through NSIS on install?
Nightmarez is offline   Reply With Quote
Old 30th May 2002, 16:41   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
[edit]
This is also possible with this code if you just want to open your program:

PHP Code:
WriteRegStr HKCR "Directory\\shell\\mycommand" "" "my command name"
WriteRegStr HKCR "Directory\\shell\\mycommand\\command" "" '"c:\\program files\\my program dir\\program to run.exe" %1' 
Your program will start with the right clicked directory as its command line parameter.
[/edit]

What you need to do is to write a shell extension.

Here is a good link that can help you get started:
http://www.codeproject.com/shell/shellextguideindex.asp

What you can do with NSIS is to register the DLL, write the registry keys needed, and on uninstall remove those keys.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Last edited by kichik; 30th May 2002 at 17:00.
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