bkolt
24th July 2002 19:55 UTC
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
30th July 2007 16:43 UTC
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
29th May 2008 18:48 UTC
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
29th May 2008 18:51 UTC
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)