Modifying the system registry |
Previous Top Next |
Optional flag name |
Effect of Flag |
create_on_install |
Thinstall will create the registry key (and all subkeys) in the real system registry when the program installer is run. If Thinstall's installer is disabled, this flag will have no effect. If the registry key cannot be created for any reason, the operation will silently fail. If the registry key already exists, any previous values will be overwritten with values specified in this file. |
create_on_start |
Thinstall will create the registry key (and all subkeys) in the real system registry every time the program is run. If the registry key cannot be created for any reason, the operation will silently fail. If the registry key already exist, any previous values will be overwritten with values specified in this file. |
remove_on_uninstall |
Thinstall will add the registry key to the uninstall_log file, for removal from the real system registry when the application is uninstalled. If the registry key was not created by Thinstall (it was pre-existing), the registry key will not be added to the uninstall_log file. Only newly created Registry keys by Thinstall will be marked for uninstall removal. During uninstall, all registry keys in the uninstall_log file will be removed. If any key fails to be removed, the operation will silently fail. |
remove_on_end |
Thinstall will remove the registry key when the application exits. If the registry key was not created by Thinstall (it was pre-existing), the registry key will not be removed on exit. Only newly created Registry keys by Thinstall will be marked for removal when the program exits. If the program crashes or is prematurely terminated, the registry key will not be deleted. If any key fails to be removed, the operation will silently fail. |
HKEY_LOCAL_MACHINE\Software\mycompany\mysoftware create_on_install remove_on_uninstall { value "InstallationPath" 01 "%InstallPath%" } |
HKEY_LOCAL_MACHINE\Software\mycompany\mysoftware { value "InstallationPath" 01 "%InstallPath%" } |
· | %InstallPath% is a macro which is expanded by Thinstall. Click here for a list of macros available in .threg files. |
· | Registry Key names that have spaces in them need to be surrounded by quotes like this: |
"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\App Paths\My application" create_on_install remove_on_uninstall |
{ |
value "InstallationPath" 01 "%InstallPath%" |
} |