On Nov 8, 2018, at 1:31 PM, Charles Miller  wrote:

> Does anyone know when I assign a version to a build of server, where that
> data is stored and where that might be so I can manually modify that number
> to do some testing

If you are talking about the “Product Version” that is displayed in the 
“Details” tab when you open the “Properties” window for the .exe file on 
Windows, you can set that when you build the 4D Server application.

https://www.dropbox.com/s/kcsnrk6x672oksv/Screen%20Shot%202018-11-08%20at%201.54.02%20PM.PNG?dl=0

Do this with some XML build keys:

$xPath_t:="/Preferences4D/BuildApp/Versioning/Common/CommonVersion"
$value_t:=$newVersion_t
DOM SET XML ELEMENT VALUE($buildAppXMLref_t;$xPath_t;$value_t)
        
$xPath_t:="/Preferences4D/BuildApp/Versioning/Common/CommonCopyright"
$value_t:=$newVersion_t+" ©1998-"+String(Year of(Current date))+" Innovative 
Solutions & The Midland Group"
DOM SET XML ELEMENT VALUE($buildAppXMLref_t;$xPath_t;$value_t)

If you are talking about the build number of 4D retrieved with the “Application 
version” command and the build number option, it always returns “0” for a built 
application. The docs tell you this. No way to natively know what 4D build was 
used when you built your merged with 4D Server application, or merged with 4D 
Volume Desktop 4D Client application. You have to store this info somewhere 
yourself and not use the “Application version” command.

Tim

*****************************************
Tim Nevels
Innovative Solutions
785-749-3444
[email protected]
*****************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to