Skip to content
⌘ NSIS Forum Archive

Working directory = $OUTDIR

3 posts

Ewgenijkkg#

Working directory = $OUTDIR

Hello, as I read in the manual, to set the working directory I have to use SetOutPath. But that means setting also the output directory to that value. What if I wish them to be different? OK, I can make different workarounds to fix the problem, like save the working directory in an additional variable. But is there no other, direct way?

BR
Ewgenij
MSG#
The output directory IS the shortcut working directory. You cannot separate them, they're the same thing. Just copy $OUTDIR to a register, create the shortcut and then set $OUTDIR back again.

StrCpy $0 $OUTDIR
SetOutPath "C:\WorkingDir"
CreateShortcut etc etc
SetOutPath $0