Revenera Documentation site will be unavailable on July 2nd due to scheduled maintenance. For more information see the status dashboard.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Meffapef
Level 3

Impossible to escape blank space ?

Hello,

I am trying to run a command to execute an .exe while specifying a path in which there are several spaces.

Based on this example (https://community.flexera.com/t5/InstallShield-Forum/Space-characters-in-Setup-exe-command-line/td-p/131031), I tried to do something like this (in an installshield script)

MySetup.exe " /v" + "\"INSTALLDIR=c:\\PROGRA~1\\Install\\My Setup\"";

(I use notations with "\" to escape the sequences as explained here: https://docs.revenera.com/installshield22helplib/Subsystems/installshield22langref/helplibrary/LangrefEscape_sequences.htm )

Unfortunately it doesn't work. At execution, I get this message:

 

errorEscape.PNG

For program files, I know I can use the notation "c:\PROGRA~1" I tried and it works. But I still have the space problem with the final folder.

Can't escape the spaces in my case? 😞

Labels (1)
0 Kudos
1 Reply
Thananjeyan_M
Level 6

Hi,
Try below installscript code 

szProgram = szSupportDir ^ "Setup.exe";
szInstallPath = "\\"+"\""+szInstallPath+"\\"+"\"";
szCommandLine = "/s /v"+"\""+"INSTALLDIR="+szInstallPath+" PROPERTY="+szprop+" /qn" +"\"" ;
LaunchAppAndWait(szProgram,szCommandLine,LAAW_OPTION_WAIT|LAAW_OPTION_HIDDEN);

 

Thanks,
Thananjeyan

0 Kudos