Ewgenijkkg
16th September 2008 11:55 UTC
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
16th September 2008 12:09 UTC
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
Ewgenijkkg
16th September 2008 12:36 UTC
OK, that is what I meant with "workaround" :)