cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ralphster
Level 6

How to add a space to a string in InstallShield script

Jump to solution

I am building a string that I eventually pass off to the "LaunchAppAndWait" function. A portion of the string is double quoted. Right after  the double quoting of the string, I need to add a blank space. It is not working though, as the blank space is being ignored. So how can I add a blank space immediately after I double quote the string? 

Example:

STRING mySpace = " ";

myString = myString + "\"servr-2100A\"" + mySpace  + "SQL2100DB";

Note that the line above does not work as the string ignores my space. The end result is:

"serv-2100A"SQL2100DB    

As you can see the space is being ignored.

Labels (1)
0 Kudos
(1) Solution
banna_k
Revenera
Revenera

Hi @ralphster ,

 

 I tried my end to reproduce the issue in the latest version, but the string is coming with space.

For more information, you can check the attached image and the out put string value in the watch window.

View solution in original post

0 Kudos
(1) Reply
banna_k
Revenera
Revenera

Hi @ralphster ,

 

 I tried my end to reproduce the issue in the latest version, but the string is coming with space.

For more information, you can check the attached image and the out put string value in the watch window.

0 Kudos