Icon
Previous  Top  Next

Icon - Indicates which icon file to use for the generated EXE file

By default each generated application will use the main group icon from its source EXE and the individual icon resource pointed to by the group icon. You can use an alternate icon by specifying an .ico file or .exe file.

Examples

Specify NULL to generate an EXE with no icons 
Note: NULL cannot be used if the FileTypes directive is used, because one icon per filetype is allocated in the EXE image 
[myapp.exe]  
Source=%ProgramFilesDir%\myapp\app.exe  
Icon=NULL  

Specify application icon using a EXE different from the Source EXE
[myapp.exe]  
Source=%ProgramFilesDir%\myapp\app.exe  
Icon=%ProgramFilesDir%\myapp\app2.exe  
 
You can optionally specify which set to use by appending ",1" ",2" to the end of the Icon path name like this: 
[myapp.exe]  
Source=%ProgramFilesDir%\myapp\app.exe  
Icon=%ProgramFilesDir%\myapp\app2.exe,1 

Specify application icon using a .ico file 
[myapp.exe]  
Source=%ProgramFilesDir%\myapp\app.exe  
Icon=%ProgramFilesDir%\myap\myicon.ico 


See also: RetainAllIcons

Note: The Windows Shell has limitations regarding display of icons for large EXE files, an easy work-around can be found here.