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

Double code issue

Hello
I want to use double code (") in install script, but its giving compilation error.

function Addin_Installed()
STRING szProgram,szApplicationPath,szPath,szCmdLine,szCmpltPath;
begin
if (SYSINFO.WIN9X.bWin9X) then
szProgram = "command.com";
else
szProgram = "cmd.exe";
endif;

szApplicationPath =WINDIR ^ "Microsoft.NET" ^ "Framework" ^ "v2.0.50727" ^ "CasPol.exe";
szPath=TARGETDIR ^ "*";
szCmdLine=" -m -q -ag All_Code -url """ + szPath + """ Nothing -n Sample.MyOutlookAddIn -d Code group for MyOutlookAddIn";
szCmpltPath="/c " + szApplicationPath + szCmdLine;
LaunchApplication(szProgram,szCmpltPath,"",SW_SHOW,20000, LAAW_OPTION_WAIT);

end;

i have used double code near szPath, since for CasPol.exe we need to pass -url property between double code.

So can anyone tell me what will be solution for this
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

Two possibilities: use the double-quote inside single quotes: [FONT="Courier New"]'"'[/FONT]

Or use the \" escape sequence inside double quotes: [FONT="Courier New"]"\""[/FONT]
0 Kudos
rockon
Level 3

Hello RobertDickau
Thanks for the replay. It is working fine now
0 Kudos