Mosestycoon
21st September 2003 22:12 UTC
Startmenu property "Execute in..."
Dear folks -
Is there a way to define the "Execute in" parameter within the CreateShortCut tag?
Don't know if this is called "Execute in", but in german it's "Ausführen in.." You reach this field by clicking Properties on that shortcut.
My problem is, that the install routine fills this field with a wrong value, so I would like to define my own value.
Thx Chris
kichik
21st September 2003 22:15 UTC
Use SetOutPath.
$OUTDIR is used for the working directory. You can change it by using SetOutPath before creating the Shortcut.
Mosestycoon
21st September 2003 22:50 UTC
Sorry Kichik -
How should this be done? I have SetOutPath at section installation time, but before ShortCut?
Kypec
22nd September 2003 07:22 UTC
IMHO I also think that the working directory should be possible
to set directly with CreateShortcut command, otherwise I'll have
a big mess with such lot of SetOutPath commands :(
kichik
22nd September 2003 10:41 UTC
SetOutPath C:\Directory\To\Run\In
CreateShortcut G:\shortcut.lnk D:\target.exe
It makes sense because it's easier to set the same working directory for many shortcuts with one command, and most applications will need $INSTDIR which is usually set as $OUTDIR anyway.
Mosestycoon
22nd September 2003 20:08 UTC
Should this be set infront of every CreateShortCut or does this spawn over all the following ones. I my special case this would be fine, because all the following ones are to be execuded in the same "SetOutPath" :-)
Mo
kichik
22nd September 2003 20:12 UTC
$OUTDIR doesn't change after you call CreateShortcut so if you need the same directory you don't need to add this before every CreateShortcut instruction.
Mosestycoon
22nd September 2003 21:38 UTC
It's done & works
Thx 4 help kichik
Chris