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

Sending multiple arguments with quotes

Thu Nov 29, 2007 5:50 pm

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

Thu Nov 29, 2007 6:59 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

Fri Nov 30, 2007 9:30 am

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

Fri Nov 30, 2007 2:52 pm

Anybody some ideas?

:)

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

Fri Nov 30, 2007 6:06 pm

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

Mon Dec 03, 2007 10:11 am

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

thank you

Return to “Common Problems”