We have a script which starts with the following:
-
PropertySet define [ VersionNumber ] (as Win32 Version Numbers)
action.propertyset.define begin id = {E97B4326-640C-4FB8-951D-082A6523E66B} propertysetname = VersionNumber propertyset.win32.numbers begin majorversion = 2 minorversion = 9 name = VersionNumber releaseversion = 3 end end
2.PropertySet assign properties [ VersionNumber ] (assign BuildVersion = 0, MajorVersion = 2, MinorVerision = 9, ReleaseVersion = 3)
action.propertyset.setvalues
begin
id = {4FA8D4CD-B9DA-42A0-8A5D-07999922E247}
propertysetname = VersionNumber
setvaluesto = “” +
“” +
“0” +
“” +
“2” +
“9” +
“3” +
“”
valuestoset = “AutoUpdateFileVersionString=0” +
“AutoUpdateProductVersionString=0” +
“BuildVersion=-1” +
“LinkProductVersion=0” +
“MajorVersion=-1” +
“MinorVersion=-1” +
“ReleaseVersion=-1” +
“”
end
- Set Variable VER_MAJOR to [ %VersionNumber.MajorVersion% ]
(VER_MAJOR is a project variable of type Integer)
action.variable.set
begin
applytoexisting = false
doexpandexpression = true
forcetype = ftInteger
id = {52C53498-911C-41DB-9A3E-688A0AA66F64}
modifier = smNone
newvalue = %VersionNumber.MajorVersion%
variablename = VER_MAJOR
end
Execution fails at this step with:
Set Variable VER_MAJOR to [ 2 ]
Action Messages:
Unable to Set Variable : VER_MAJOR to : %VersionNumber.MajorVersion%
‘’ is not a valid integer value
Although it reports correct number in the first line (2) it fails with ‘’ is not a valid integer value.
This script worked just fine in FinalBuilder 7. I just loaded it in FinalBuilder 8 and executed, without any other changes.
I don’t understand why this script suddenly fails. Can someone please enlighten me?