Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Parameter String in InstallShield (https://www.delphipraxis.net/202568-parameter-string-installshield.html)

tomkupitz 18. Nov 2019 14:38

Parameter String in InstallShield
 
Hallo,

ich muss im Setup einem Tool einen Parameter übergeben.

Code:
LaunchAppAndWait(szSetupDir ^ "tool.exe", szInstallDir ^ "abc software.exe", LAAW_OPTION_WAIT);
Leider kommt so nur C:\Programme\abc als Parameter an.

Code:
LaunchAppAndWait(szSetupDir ^ "tool.exe", "\"" ^ szInstallDir ^ "abc software.exe" ^ "\"", LAAW_OPTION_WAIT);
Dann kommt \C:\Programme\abc software.exe\ an. Gibt es da eine Lösung?

Danke und beste Grüße

tomkupitz 18. Nov 2019 14:58

AW: Parameter String in InstallShield
 
Lösung:

szParam = szInstallDir ^ "abc software.exe"
LongPathToQuote(szParam, TRUE);
LaunchAppAndWait(szSetupDir ^ "tool.exe", szParam, LAAW_OPTION_WAIT);


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:30 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz