[MainApp.exe]

AdminStudio 2024 | 27.0 | ThinApp Assistant

The [MainApp.exe] section specifies the source executable, the name of the file that contains read-only registry data to be bound, whether to perform logging, and the icon to use for the executable.

[MainApp.exe] Section of package.ini

Option

Description

Source

This option specifies the .exe which will be run to launch the ThinApp application.

Source=%ProgramFiles%\Test\MainApp.exe

This option also specifies the icon that will be used, if an icon is not explicitly specified using the Icon option.

ReadOnlyData

This option specifies the name of the file that contains read-only registry data to be bound. If the read-only registry also has an associated file-data, the file-data file should be in the same directory with the appended extension TestMain.exe.ro.thfd.

ReadOnlyData=bin\MainApp.exe.ro.tvr

DisableTracing

This optional setting will disable logging/tracing capabilities for this application when Log Monitor is running. Possible values are 1 (logging is disabled) or 0 (logging is enabled).

DisableTracing=1

Note:This option corresponds to the Disable Log Monitor Tracing option on the Build Options page.

Icon

By default the icon is used from the executable identified in the Source option. You can change this to specify one of the following:

Icon=SomeOtherEXE.exe

Icon=NULL

Icon=SomeOtherIco.ico

RetainAllIcons

By default, each application retains the main Group Icon from its Source executable and the individual icon resource pointed to by the Group Icon. Tlink will strip out extra icons that cannot be used directly by the system shell. However, you can force these extra icons to be included in the ThinApp executable by using the RetainAllIcon=1 option. For example:

[myapp.exe]

Source=%ProgramFilesDir%\myapp\app.exe

RetainAllIcons=1

Instead of using the Source option to identify your application icon, you can also use:

1. The value NULL. In this case, the application will not have an icon and Windows will use the default application icon.

[myapp.exe}
Source=%ProgramFilesDir%\myapp\app.exe
Icon=NULL

2. The path to another .exe file. In this case, Tlink will load the icons from a different .exe file. If a full path is not specified, the path is relative to the project directory.

[myapp.exe]
Source=%ProgramFilesDir%\myapp\app.exe
Icon=%ProgramFilesDir%\myapp\app2.exe

Executable files can contain multiple icon sets. 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

3. The path to an .ico icon file. In this case, Tlink will load the icons from the specified .ico file. If a full path is not specified, the path is relative to the project directory.

[myapp.exe]
Source=%ProgramFilesDir%\myapp\app.exe
Icon=%ProgramFilesDir%\myapp\myicon.ico