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
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Double code issue
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
‎Jul 10, 2009
08:24 AM
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
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
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2009
08:54 AM
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]
Or use the \" escape sequence inside double quotes: [FONT="Courier New"]"\""[/FONT]
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 13, 2009
02:32 AM
Hello RobertDickau
Thanks for the replay. It is working fine now
Thanks for the replay. It is working fine now