Interfacing with Your Installation Program

When the user clicks the Install or Reinstall button in the TB Start window, TB Start will launch the file specified by the InstallationFile setting, typically setup.exe. This file must be in the same directory as the TB Start program. This installation routine needs to write the correct registry entry to allow TB Start to detect that the installation has been successfully completed. For example, here is the InstallShieldÒ Professional script for doing this. The first line gets the current date. The next enables logging so that the entry is deleted if the application is "uninstalled." Finally, the RegDBSetAppInfo() line inserts the entry corresponding to RanInstallRootKey, RanInstallRegistryKey, and RanInstallRegistryValue.

 

// Write Registry Entry Used for TB Start Program

     GetSystemInfo( DATE, nvResult, svDate);

     Enable(LOGGING);

     RegDBSetAppInfo ("installDate", REGDB_STRING, svDate, -1);

// End Autorun

 

Note that other installation packages like WiseÒ can create this entry as well.

 

Once the installation routine is completed, you might want to restart the TB Start application. Here is the InstallShield Professional script for doing so. svOldSRCDIR is created from the standard SRCDIR variable (svOldSRCDIR = SRCDIR;) earlier in the installation.

 

LaunchApp(svOldSRCDIR ^ "autoproject.exe","");

 

If you want to locate your application on the hard disk rather than CD-ROM, you can use your installation program to make the relevant entries. \\

See:

TBKLocatedOnHardDisk

TBKLocRegistryLocation

TBKLocRegistryValue

TBKLocRootKey