Incrementing Non Release Version When Run

I know that if I set App.AutoIncrement to True then the App.NonReleaseVersion property will be incremented by 1 every time my app is built but I want to increment this value whenever I run my project. How would I achieve this with a build step?

This is a Script Build Step ought to do it:

[code] // Update the NonReleaseVersion
Dim version As String
version = PropertyValue(“App.NonReleaseVersion”)

Dim versionValue As Integer
versionValue = Val(version)
versionValue = versionValue + 1

PropertyValue(“App.NonReleaseVersion”) = Str(versionValue)[/code]

@Paul Lefebvre Thanks. Worked a treat.