"Set Variable" stopped working after upgrade 7 -> 8

We have a script which starts with the following:

  1. 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

  1. 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?

Hi Primož

I have tried to reproduce this here but it worked first time.

What build of FinalBuilder 8 are you using?

I have attached my test project.

Primož-SetVariable.fbp8 (1.6 KB)

Your project fails with exactily the same error.

For testing I just loadede it in FB8 and pressed “play”.

FB is the latest official release - 8.0.0.2701.

I’m attaching (zipped) execution log.

Primo__-SetVariable.zip (20.2 KB)

I just realised I have a fix that you do not have, and it’s probably related. Please try this build

https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2795.exe

This updated version indeed fixed the problem. Thanks!