ajfisher
11th August 2006 16:53 UTC
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
11th August 2006 17:04 UTC
:rolleyes:
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
11th August 2006 17:08 UTC
:eek:
How the hell did I miss that?
Thanks for the pointer. Sorry to bother you all.
Allen
Afrow UK
11th August 2006 17:22 UTC
No matter, people seem to ask it quite often even though it's in writing.
-Stu
ajfisher
11th August 2006 17:49 UTC
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.