Hi MI, On 11.10.2011 22:50, MI wrote: > Is there any way to use the value of the revision attribute inside a package > definition? > > I tried things like <variable name="myvar" value="%revision%" />, without success. > > What I'm after is a way to use things like > > <install cmd="reg add HKLM\software\mykey /v xy-revision /d %revision% /f" /> > > It doesn't seem possible, but maybe I have overlooked something? Try it the other way around: <package id="some-id" revision="%REVISION%" ... > <variable name="REVISION" value="1.0" /> <install cmd="reg add HKLM\software\mykey /v xy-revision /d %REVISION% /f" /> </package> This way you acchieve the same goal: Having to specify %REVISION% only in one place. br, Rainer |