Env ProductInfo Example

Demonstrates the various ProductInfo vipers.

Smartsite SXML CopyCode image Copy Code
<pre>
Product Name
------------
Full Name    : {env.product.fullname()} 
Name         : {env.product.name()}

Product Version Information
---------------------------
Version      : {env.product.version()}
   Major     : {env.product.majorversion()}
   Minor     : {env.product.minorversion()}
   Build     : {env.product.buildnumber()}
   Revision  : {env.product.revision()}
 
Product Release Information
---------------------------
Full Name    : {env.product.fullreleasename()}
Name         : {env.product.releasename()}
Build        : {env.product.releasebuildnumber()}
Is Hotfix    : {sys.eval(env.product.releasebuildnumber() GT 1)}

Hosting Environment Information
-------------------------------
Machine Name : {env.servername()}
Identity     : {env.identity()}
Memory usage : {env.memoryusage()}
Process Id   : {env.processid()}
<se:if expression="env.product.verifyminimalversion('1.3.0.0')">
64 bit OS    : {env.is64bit()}
<se:if expression="env.is64bit()">
32 bits process on 64 bit OS : {env.is32bitprocesson64bit()}
</se:if>
</se:if>


Version validation
------------------
Is at least 1.0.0.0: {env.product.verifyminimalversion('1.0.0.0')}
Is at least 2.0.0.0: {env.product.verifyminimalversion('2.0.0.0')}
</pre>
Example Result CopyCode image Copy Code
Product Name
------------
Full Name    : Smartsite iXperion 1.3 1.3.176.0 (build 2) 
Name         : Smartsite iXperion

Product Version Information
---------------------------
Version      : 1.3.176.0
   Major     : 1
   Minor     : 3
   Build     : 176
   Revision  : 0
 
Product Release Information
---------------------------
Full Name    : Smartsite iXperion 1.3
Name         : 1.3
Build        : 2
Is Hotfix    : true

Hosting Environment Information
-------------------------------
Machine Name : SMS-AS3
Identity     : iXperion_Admin
Memory usage : 314888192
Process Id   : 4396
64 bit OS    : false

Version validation
------------------
Is at least 1.0.0.0: true
Is at least 2.0.0.0: false