Skip to content
⌘ NSIS Forum Archive

Setting the Working Directory on a Shortcut

5 posts

ajfisher#

Setting the Working Directory on a Shortcut

Hi All--

Thanks for the help I've recieved thus far. How do I set the working directory on a shortcut (the "Start In" edit control on the file's properties)? It always seems to use the start menu program group. this will cause problems with the application that I'm installing. I looked at the docu for the CreateShortCut command and it doesn't seem to cover setting this particular attribute.

Thanks for any help you may have to offer,

--Allen
Afrow UK#
🙄

From CreateShortcut in the manual:
$OUTDIR is used for the working directory. You can change it by using SetOutPath before creating the Shortcut.
-Stu
ajfisher#
I think what threw me is that when EclipseNSIS created the project, it set $OUTDIR to $SMPROGRAMS folder in the spot where it set up a couple of shortcuts automatically.