Archive: Registry setting for protocol


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


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


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?


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)