PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Suche Setup Generator bei dem man ...


BNO
2003-08-14, 15:11:08
... bei einer zu erstellenden Verknüpfung im Startmenü das Arbeitsverzeichnis für diese Verknüpfung mit anlegen lassen kann.

Bei allen Setup Generierungs-Tools die ich bis jetzt verwendet habe geschah das nie und man musste den Pfad nachträglich noch ändern. Ich schreibe gerade ein Programm für eine Firma, wo das Programm sehr viel in dem Ordner arbeitet, indem es installiert wurde. wenn man es vom Desktop oder Startmenü aus starten will muss also das Arbeitsverzeichnis angegeben sein im Link.

Wäre genial, wenn Irh da ein Tool wüsstet.

MfG.

zeckensack
2003-08-14, 15:19:23
NSIS (http://www.nullsoft.com/free/nsis/) kann's :)

4.9.3.4 CreateShortCut

link.lnk target.file [parameters [icon.file [icon_index_number [start_options [keyboard_shortcut [description]]]]]]


Creates a shortcut 'link.lnk' that links to 'target.file', with optional parameters 'parameters'. The icon used for the shortcut is 'icon.file,icon_index_number'; for default icon settings use empty strings for both icon.file and icon_index_number. start_options should be one of: SW_SHOWNORMAL, SW_SHOWMAXIMIZED, SW_SHOWMINIMIZED, or an empty string. keyboard_shortcut should be in the form of 'flag|c' where flag can be a combination (using |) of: ALT, CONTROL, EXT, or SHIFT. c is the character to use (a-z, A-Z, 0-9, F1-F24, etc). Note that no spaces are allowed in this string. A good example is "ALT|CONTROL|F8". $OUTDIR is used for the working directory. You can change it by using SetOutPath before creating the Shortcut. description should be the description of the shortcut, or comment as it is called under XP. The error flag is set if the shortcut cannot be created (i.e. the path does not exist, or some other error).

Exxtreme
2003-08-14, 15:25:50
BNO,

welche Tools hast du schon getestet?

BNO
2003-08-17, 13:18:03
Setup Generator, Inno Setup 3 und schon was läner her InstallShield Express sowie GKSetup.

Mephisto
2003-08-22, 09:32:52
Das können eigentlich alle.
Installshield:
AddFolderIcon (szProgramFolder, szItemName, szCommandLine, szWorkingDir, szIconPath, nIcon, szShortCutKey, nFlag);