Escape brackets in Wix Script

Viewed 926

I have a visual studio project named like MyProject(P2P) which works good all the time.

Now I'm using the Wix 3 to pack this project into a MSI, one of the steps is to write the Component node:

  <Component Id="MyProject(P2P).exe" Guid="34565d5d-07d6-495d-a184-bb3bdebe1fb8">
    <File Source="$(var.MyProject(P2P).TargetPath)" KeyPath="yes" />
  </Component>

Now I got the build error of Wix Project:

Product.wxs(807,0): error CNDL0234: Ill-formed preprocessor function '$var.MyProject(P2P).TargetPath'. Functions must have a prefix (like 'fun.'), a name at least 1 character long, and matching opening and closing parentheses.

Looks like need escape the ( and )? and how?

1 Answers
Related