Smart Package Robot 's "Script to Executable" Compiler

<< Click to Display Table of Contents >>

Navigation:  2. Components > 2. EXE-Compiler >

Smart Package Robot 's "Script to Executable" Compiler

'#VER: - Specify custom Version-Informations

Previous Top Next


Compiler-Directives

 

'#VER:

Used to specify custom version Information for the executable that is to be created.

 

 

Intention

 

Compiler-Directives start with the Sequence:

'#

Which is a comment-sign on the left and then the #.

 

Because of the comment sign, the running script ignores these commands at Runtime (at time of script execution).

 

'#VER:

The '#VER: Compiler Directive is used to change the Version Information of the final Standalone EXE-File.

Below is an example.

 

 

VER

 

 

 

 

Syntax:

 

'#VER:P1|P2

 

P1 -  One of the following Version-Information:

 

- FileDescription

- FileVersion

- ProductName

- ProductVersion

- LegalCopyright

- LegalTrademarks

- OriginalFilename

- CompanyName

- Comments

 

P2 -  Value for the Version-Information.

       For FileVersion and ProductVersion there is a special rule:
       use only numbers and use three ".". For example:

 

        '#VER:FileVersion|1.0.0.12

        '#VER:ProductVersion|1.0.0.120  

 

       Also note, that the internal formatting of the last number is not equal between these two parameters.

 

Vernr

 

Example:

 

'----------------------------------------

' Changed Version Informations

'----------------------------------------

'#VER:FileDescription|My File-Description

'#VER:FileVersion|1.2.3.1234

'#VER:ProductVersion|1.2.3.001234

'#VER:ProductName|My Product-Name

'#VER:LegalCopyright|Copyright Info

'#VER:LegalTrademarks|Trademarks-Info

'#VER:OriginalFilename|Dropship.exe

'------------------------------------------------

'#VER:CompanyName|SmartRobots

'#VER:Comments|This may be invisible in Win10

 

END.

 

 

Parameter Explanation:

 

-

 

 

Remarks:

 

Internally uses:
'#CIL:VersioninfoA|(P1)=(P2)

There is also:
'#CIL:VersioninfoB|(P1)=(P2)

    which is for an english set of File-Descriptions.

 

 

Limitations:

 

These two may not be visible under Windows 10.

'#VER:CompanyName|SmartRobots

'#VER:Comments|This may be invisible in Win10

 

 

 

See also:

2.0.0 Smarty's EXE-Compiler

2.1.1 '#RAU: - Run As User

2.1.2 #AOS: - Choose valid OS for executable

2.1.3 '#EXE: - Set Executable Path and Name

2.1.4 '#EXV: - Execute on System Desktop

2.1.5 '#HID: - Hidden Desktop Scripts

2.1.7 '#SPI: - Special Instructions

2.1.8 '#INC: - Include Files and Folders into the Executable

2.1.9 '#EXC: - Exclude Files or Dirs from Executable

2.1.A #LIB: - User-Library Path

2.1.B #CRY: - enCrypt the Script

2.1.C '#AFT: - Run AFTER Compile

2.2.1 '#ICO: - Choose own Icon

2.2.2 '#ICF: - Icon from Icon-Folder

2.2.3 '#ICS: / '#ICS: Icon-Set

2.3.0. '#MAN: - Manifest for Executable

2.3.1. '#MAU: - UI-Access for Manifest for Executable

2.4.0. '#VER: - Version-Informations

2.5.0. '#CIL: - Direct Compiler Interface