Archive: Startmenu property "Execute in..."


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


Use SetOutPath.

$OUTDIR is used for the working directory. You can change it by using SetOutPath before creating the Shortcut.

Sorry Kichik -

How should this be done? I have SetOutPath at section installation time, but before ShortCut?


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 :(


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.


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


$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.


It's done & works
Thx 4 help kichik

Chris