String concatenation/formatting.

5 messages Options
Embed this post
Permalink
VovaF

String concatenation/formatting.

Reply Threaded More More options
Print post
Permalink
Hi,
I'm completely new to WiX, and my search in "HowTos" and reference didn't
give me
a desired answer. Is there any way to concatenate string. My problem is to
write
a path of one of the installed files to registry inside *quotation marks*.
Using *Value="[DirName]FileName.exe" *
code writes the path right, but obviously without the marks. Any help would
be much appreciated.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Rob Mensching-7

Re: String concatenation/formatting.

Reply Threaded More More options
Print post
Permalink
Do something like:

Value=""[DirName]FileName.exe""

or better:

Value=""[#FileId]""


On Sun, Oct 25, 2009 at 6:28 AM, Vova Froimchuk <[hidden email]>wrote:

> Hi,
> I'm completely new to WiX, and my search in "HowTos" and reference didn't
> give me
> a desired answer. Is there any way to concatenate string. My problem is to
> write
> a path of one of the installed files to registry inside *quotation marks*.
> Using *Value="[DirName]FileName.exe" *
> code writes the path right, but obviously without the marks. Any help would
> be much appreciated.
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Dave Kolb-2

Re: String concatenation/formatting.

Reply Threaded More More options
Print post
Permalink
What "variable set" does #FileId come from? I don't recognize the # syntax.

-----Original Message-----
From: Rob Mensching [mailto:[hidden email]]
Sent: Sunday, October 25, 2009 11:31 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] String concatenation/formatting.

Do something like:

Value=""[DirName]FileName.exe""

or better:

Value=""[#FileId]""


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Rob Mensching-7

Re: String concatenation/formatting.

Reply Threaded More More options
Print post
Permalink
The MSI SDK Formatted topic shows lots of special characters. That happens
to resolve to the full path to the File with matching @Id.

On Sun, Oct 25, 2009 at 10:10 PM, Dave Kolb <[hidden email]>wrote:

> What "variable set" does #FileId come from? I don't recognize the # syntax.
>
> -----Original Message-----
> From: Rob Mensching [mailto:[hidden email]]
> Sent: Sunday, October 25, 2009 11:31 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] String concatenation/formatting.
>
> Do something like:
>
> Value=""[DirName]FileName.exe""
>
> or better:
>
> Value=""[#FileId]""
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
VovaF

Re: String concatenation/formatting.

Reply Threaded More More options
Print post
Permalink
In reply to this post by Rob Mensching-7
Rob Mensching-7 wrote:
Do something like:

Value=""[DirName]FileName.exe""

or better:

Value=""[#FileId]""
First one did not work. The solution is, apparently, to put the whole string along with quotation marks inside apostrophes. Like this:
' "[DirName]FileName" ' (spaces just for clarity of the example)