Prerequisites

The ToolBook Runtime needs to be installed in the Common Files directory (ostensibly so that it is available to any ToolBook program that is to run on that computer.) In order to determine whether or not it is already installed we need to check for its existence, which is done through a simple registry search.

On the prerequisites page of the project settings move to the 'Software Prerequisites' tab and click the 'New' button. On the first tab of the dialog that opens add the following;

In the Display box we have added the generic ToolBook Runtime. For the Setup File Information We have selected file in package (which means that the Neuron.exe file will be rolled up within the overall installation package. The file path points to the location of the Neuronxx.exe file on your computer (in the case of ToolBook 9.5 you'll find in in the Tools sub directory of the main ToolBook directory. The command line entered will ensure that we have a fully silent install of Neuron.

NB: there is a known issue with the version of the neuron.exe that shipped with ToolBook 9.5 meaning that if you utilise this version it will not always be available to all users on your end user's computer. To rectify this STS produced a new version of neuron that does install in such a way that the ToolBook runtime is available to all users. You can see more information about this here along with a link and instructions on how to download and use the amended Neuron Installation.

Determining if the ToolBook Runtime should be installed

Tab two allows us to determine whether or not we need to actually install the runtime (after all if it's already there there is no need to install it.)

The important bit here is the searches section. to add a new search click the 'New' button . In the new search dialog that comes up ensure that the criteria match what you see here (although you want to ensure that you select the appropriate version of the runtime.)

Note also that on the second tab we want to 'install if any of the above searches fail'.

Tab three allows us to set any options, and we just want to check the force installation of the prerequisite.

Finally the fourth tab just confirms that we have the correct Neuron installation file.

When you have completed this your Software prerequisites tab should look like this

Just a quick note here about the 'Bootstrapper Pages' and 'Bootstrapper UI' sections. You can if you want choose not to display the standard information page and replace it with you own more customised version. Similarly if there is a specific EULA that you want or need to display for a prerequisite you can opt to do so. You can also change the look of the prerequisite dialogs by adding your own banner and dialog images (the same incidentally is true of the main installation dialogs) giving you the ability to make highly customised installations.

Next