Our TFS build server is 2012.
In my build template, I have an InvokeProcess that calls the below cscript:
In my build template, I have an InvokeProcess that calls the below cscript:
cscript "c:\BuildDrop\WiRunSQL.vbs" "\\myServer\mySolSetup.msi" "SELECT Value FROM Property WHERE Property = 'ProductVersion'"
Then, I assign the stdOutput to a variable called ProductVersion.
Then, to check the value, I print ProductVersion to the log file by using WriteBuildMessage.
There are more than 1 results as shown below:
- Microsoft (R) Windows Script Host Version 5.8
- Copyright (C) Microsoft Corporation. All rights reserved
- blank
- 1.0.0
- blank
Why does it return all those values, even though there should be only 1 value, ie 1.0.0 ?
Thank you