Archive: Working directory = $OUTDIR


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


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


OK, that is what I meant with "workaround" :)