Callback Functions
Previous Top Next



If you define one of the functions listed below, Thinstall will call your function at the appropriate time.
Each .vbs script file can have one or more of these functions defined, each .vbs file will receive its own callbacks regardless of which other .vbs files are in your project.

Function OnRequirementsCheck
This function is called before the Installer is invoked. If no installer is enabled, this is called before OnProgramLoading is called. This function should be used to check for minimum system requirements before the installer is launched.

Function OnInstallBegin
This function is called when all of the Installation options have been selected by the user and the installer is about to begin copying files, adding shortcuts, and registry keys.

Function OnInstallFinish
This function is called when the Installer has finished all steps.

Function OnUninstallBegin
This function is called when Uninstall is about to be invoked.

Function OnUninstallEnd
This function is called when Uninstall has completed except for the very last step of removing the remaining EXE file.

Function OnProgramLoading
This function is called before the application is loaded into memory.

Function OnExecuteStart
This function is called when the application begins execution.

Function OnEndProcess
This function is called when the application exits normally. If the application crashes or is terminated by another program, this function will not be called.

Function OnKeyChange
This function is called when License System 2 is enabled and the current license key data changes values. This function will be called at least twice, once when the key is first loaded and again when the program quits and the run counter is updated. You can access the license key data using GetEnvironmentVariable.