Geeks With Blogs
Joaquin Jares Just another geek's blog

Custom Action type 50 has a very useful behavior. This custom action copies a value to a property. The cool thing about it is that you can copy any formatted string. That is, if you use [], you can get the value of another property. and you can also use environment variables (with a % prefix), file paths (with a # prefix) and directory paths (with a $ prefix). So, to copy a property to another property, simply do this:

<CustomAction Id="CopyProperty" Property="TargetProperty" Value="[SourceProperty]" />

And then you’ll have two properties with the same value!

Posted on Wednesday, August 6, 2008 5:17 AM Setup | Back to top

Comments on this post: Custom Action – Copying a Property to another Property

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Joaquin Jares | Powered by: