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

Changing the Icon of the Executable            

Previous Top Next


Compiler-Directives

 

'#ICO:

Changing the Icon for the final Executable

 

 

Intention

 

All Commands starting with a "'#" Sequence are Compiler Directives. They are executed at the time of compilation.

That is when you create an executable out of your script-file.

 

 

1. You can specify directly an Icon (.ico-File).

'#ICO: enables you to specify an ".ico" File for your executable.

 

Example:

 

    '#ICO:?path\smiley.ico

    ' The following line is functionally exactly the same
    '#ICO:smiley.ico

 

 

2. You can specify that NO ICON at all is used. This will decrease the size of your final executable.

 

'#ICO: enables you to specify that NO ICON shall be used.

 

Example:

 

   '#ICO:-

   or

   '#ICO:No

 

 

3. You can specify an Folder with a Set of Icons..

 

'#ICF: enables you to specify an Folder with a set of Icons.

One of these Icons is automatically chosen, if you compile an Executable.

The type of specified "Manifest" decides also which Icon is been chosen.

 

Thje Icons in this folder must be named like this:

 

 "ST.ico" - This is the Standard Icon, its used if no Manifest is specified

 "AI.ICO" - "As Invoker" Icon
 "HA.ICO" - "Highest available" Icon

 "RA.ico" - "require Administrator" Icon

 "UM.ico" - "User Manifest" Icon

 

 

4. You can specify an ".exe" or ".dll" File instead a ".ico" file. In this case the Icons from this file will be extracted to "?path\XIcons"

during compilation. The first available Icon will be used for the executable.

Generally this folder will not be deleted so you can see these Icons after Compilation is done.

 

'#ICO:?path\Setup.exe

or

'#ICO:?path\Icons.dll

 

Please note that Icons may be Protected Artwork and may under some circumstances not legally be used for own files.

 

 

 

Syntax:

 

'#ICO:[?path\]filename.ico

'#ICO:[?path\]filename.exe

'#ICO:[?path\]filename.dll

'#ICO:-

 

'#ICF:Iconfolder-Path\

 

 

 

Parameter Explanation:

 

-

 

Parameter Explanation:

 

-  

 

 

Example:

 

-

 

 

Remarks:

If the Icons is not available, then the default Icon is used instead.

Please note that Icons may be Protected Artwork and may under some circumstances not legally be used for own files.

 

 

 

Limitations:

 

-

 

 

See also:

 

2.2.2 '#ICF: - Icon from Icon-Folder

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