Instructions for pragmatically adding a Startup Item for the THINC Startup Service (TSS) to handle:
Startup of an application via the TSS is controlled by the Registry, in the following Key:
"HKEY_LOCAL_MACHINE\Software\OAC\Startup"
To "register" your application to be handled by the TSS, create a sub-key, under Startup,
which names your app:
"HKEY_LOCAL_MACHINE\Software\OAC\Startup\ScottsApp"
ScottsApp should then be assigned the following values:
NAME
FILE
TYPE
ENABLED
LAUNCH
WAIT
DELAY
ARGUMENT
NAME = The "display name" for your application if it is a Process, or the Service Name if it is a Windows Service
FILE = The full path, including the executable name, to your application's executable assembly. This is internally disregarded if the TYPE value is "SERVICE", as the TSS would then use the NAME value to start the specified Windows Service
TYPE = "SERVICE" or "PROCESS"
ENABLED = TRUE or FALSE (Boolean). Allows the Startup Item to be enabled or disabled without being fully removed from the TSS's list
LAUNCH = "ONCE" or "MONITOR" If "ONCE", then the application is launched one time; if "MONITOR", then the application is kept alive - If a user closes it, it will be re-launched by the TSS
WAIT = TRUE or FALSE (Boolean) If FALSE, then the application will be launched as soon as the TSS is launched at startup. If TRUE, then the application will be launched only after the TSS has detected that the Okuma NC control software has been fully booted, and the THINC API is usable.
DELAY = Integer value; Represents the number of milliseconds that the TSS should wait, after the WAIT condition has been met, before launching your application. For instance, if you want to wait an additional 10 seconds, set this value to 10000
ARGUMENT = Any command line argument necessary for your application