This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- AddFolderIcon and command-line parameters
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 08, 2010
04:06 AM
AddFolderIcon and command-line parameters
Hi all,
I'd like to have a command-line in the following form:
"C:\Program Files\Rexroth\BS350 V2.207\BS350.exe" "-crv"
Unfortunately I seems not to be able to do this with the function "AddFolderIcon".
I tried like it is described in the help without success:
Result: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe"\-crv"
Result: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe"\-crv"
Result: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe -crv""
Result: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe" -crv"\
Result: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe" -crv"\
May you have any hints for me?
Kind regards Alex
I'd like to have a command-line in the following form:
"C:\Program Files\Rexroth\BS350 V2.207\BS350.exe" "-crv"
Unfortunately I seems not to be able to do this with the function "AddFolderIcon".
I tried like it is described in the help without success:
strCmdLine = TARGETDIR ^ IFX_PRODUCT_KEY;
LongPathToQuote(strCmdLine, TRUE);
strParam = "-crv";
nRet = AddFolderIcon ( FOLDER_DESKTOP , gstrProdName , strCmdLine^strParam , TARGETDIR, "" , 0 , "" , REPLACE );
Result: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe"\-crv"
strCmdLine = TARGETDIR ^ IFX_PRODUCT_KEY;
LongPathToQuote(strCmdLine, TRUE);
strParam = "-crv";
LongPathToQuote(strParam, TRUE);
nRet = AddFolderIcon ( FOLDER_DESKTOP , gstrProdName , strCmdLine^strParam , TARGETDIR, "" , 0 , "" , REPLACE );
Result: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe"\-crv"
strCmdLine = TARGETDIR ^ IFX_PRODUCT_KEY + " -crv";
LongPathToQuote(strCmdLine, TRUE);
nRet = AddFolderIcon ( FOLDER_DESKTOP , gstrProdName , strCmdLine^strParam , TARGETDIR, "" , 0 , "" , REPLACE );
Result: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe -crv""
strCmdLine = TARGETDIR ^ IFX_PRODUCT_KEY + "\"" + " -crv";
LongPathToQuote(strCmdLine, TRUE);
nRet = AddFolderIcon ( FOLDER_DESKTOP , gstrProdName , strCmdLine^strParam , TARGETDIR, "" , 0 , "" , REPLACE );
Result: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe" -crv"\
strCmdLine = TARGETDIR ^ IFX_PRODUCT_KEY + "\" " + "-crv";
LongPathToQuote(strCmdLine, TRUE);
nRet = AddFolderIcon ( FOLDER_DESKTOP , gstrProdName , strCmdLine^strParam , TARGETDIR, "" , 0 , "" , REPLACE );
Result: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe" -crv"\
May you have any hints for me?
Kind regards Alex
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 08, 2010
04:32 AM
Hi all,
by trying and documenting the question I had some new ideas. One of them works fine:
Result as needed: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe" "-crv"
Thanks for viewing this thread.
Kind regards Alex
by trying and documenting the question I had some new ideas. One of them works fine:
strCmdLine = TARGETDIR ^ IFX_PRODUCT_KEY;
LongPathToQuote(strCmdLine, TRUE);
strParam = "\"-crv\""; //LongPathToQuote fails
nRet = AddFolderIcon ( FOLDER_DESKTOP , gstrProdName , strCmdLine + " " + strParam , TARGETDIR, "" , 0 , "" , REPLACE );
Result as needed: "C:\Program Files\Rexroth\BS350 V2.207\BS350.exe" "-crv"
Thanks for viewing this thread.
Kind regards Alex
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 08, 2010
04:42 AM
Hello, Alex
Use AddFolderIcon on InstallAnywhere 2010?
Kevin
Use AddFolderIcon on InstallAnywhere 2010?
Kevin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 08, 2010
04:48 AM
Yeah, are you sure you're in the correct forum here? I don't think IA supports the line parameters you indicated...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 08, 2010
09:00 AM
You all are right. When I created the thread I thought I'm in the InstallShield2010 forum.
Sorry about the wrong group.
@admin: I don't know how to move the thread to the correct group (IS2010). Please could you move this thread to InstallShield2010 group?
TIA Alex
Sorry about the wrong group.
@admin: I don't know how to move the thread to the correct group (IS2010). Please could you move this thread to InstallShield2010 group?
TIA Alex
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)