Skip to content
⌘ NSIS Forum Archive

Registry setting for protocol

4 posts

bkolt#

Registry setting for protocol

Not really an NSIS specific question, but...

I am registering a new url protocol wwith my NSIS script:

WriteRegStr HKCR "dctp" "" "URL:LION bioscienceDC"
WriteRegStr HKCR "dctp" "URL Protocol" ""
WriteRegStr HKCR "dctp\DefaultIcon" "" "$INSTDIR\dc2.ico"
WriteRegStr HKCR "dctp\shell\open\command" "" '$INSTDIR\bin\dcW.exe "%1"'
When it launches the application via a url, it starts from the desktop instead of from the correct directory.

How do I give the registry setting for the newly registered protocol a "start in" directory like I do for my shortcuts?

Thanks,
Ben
Lel#
I have the same question, has something changed in the meantime, I mean is there a plugin or a better way to register a protocol with NSIS?

thanks in advance, bye
zenkick#
And I have the same question...

Protocol registration is simple enough, but I can't find any information regarding forcing the startup directory.

Thoughts? Work arounds?
Anders#
there probably is no way to set the working directory, you just have to code your app to handle it (or use a little loader app that sets the working dir and starts your actual app)