stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

Sending multiple arguments with quotes

Hi,

I was having hard time to pass 2 arguments encapsulated in quotes (paths) to a custom action, but I've figured out how to do that so that it worked out.

But now, I have 3 arguments that need to be in quotes (because they contain spaces) and I couldn't find a way how to send then correctly.

Example:

Code: Select all

"[SourceDir]Files" "[DESTINATION_DIR]" "/l-[ProductLanguage]"
what I get on the application side is something like this:

1st. arg.: C:\Files
2nd. arg.: D:\Application" /l-1033

I've tried to remove quotes from last argument and it did not help. Single Quotes (') don't work.
fd1
Posts: 21
Joined: Fri Sep 02, 2005 8:12 pm

Did you try it this way?

Code: Select all

"[SourceDir]"Files "[DESTINATION_DIR]" /l-"[ProductLanguage]"
stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

this

Code: Select all

"[SourceDir]"Files "[DESTINATION_DIR]" /l-"[ProductLanguage]"
will produce this:

1st. arg.: C:\"Files D:\Application"
2nd. arg.: /l-1033

:?
stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

Anybody some ideas?

:)
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Try this:

Code: Select all

"[SourceDir]Files" "[DESTINATION_DIR] " "/l-[ProductLanguage]"
Notice that there is a space after "[DESTINATION_DIR]" because this Formatted value will have a trailing backslash (all directory paths do after CostFinalize) which will cause the following quote character to be escaped.

Let me know how it works.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

You were right, it's about the backslash escaping quota.

thank you

Return to “Common Problems”