%versionfrom% and %versionto% at runtime?Solved

I am building my updates using the command line builder as part of an automated build process.

I would like to pass the %versionfrom% and %versionto% values to an executable that I run after the updated files have been copied to my target machine. I have them specified in my NewVersion.xml file as follows:

<File source="Update.bat" execute="after" commandline="%versionfrom% %versionto%" startstyle="normal" waitforexit="true" retrollback="true"/>

What is happening is that the literal strings %versionfrom% and %versionto% are being passed to my executable.

Is this type of usage not supported?

It's not currently supported -- do you need that behavior? If so we can queeze it into 2.6.15.

Yes, please.

We are using wyUpdate as both an updater and an installer. As a result, one site could be going from version 1.0 to the latest while another could be going from the current to the latest.

We run an executable during the update after the application files have been updated that applies incremental changes to system component from the start version to the next until it has reached the end version (i.e. updates 1.0 to 1.1, 1.1 to 1.2, etc until 2.0).

Knowing the from/to versions at runtime is essential in this case.

I can work around it for now, but as we add more versions we won't be able to do so.

Thanks!

wyBuild 2.6.16 is now out -- we've added this.