Configuring the ot2load.exe Loader

The ot2load.exe program was created so that when a customer recieves an update to OurTown2000, this update could easily be distributed to all OurTown2000 installations on the network.

Installation

The ot2load.exe program should be the first program executed. When it completes, it opens OurTown2000 (ot2.exe). The ot2load.exe file must be copied to the root installation directory on each client (the same directory the ot2.exe file exists in now). Then, any existing desktop and start menu shortcuts should be updated so that they point to "ot2load.exe" instead of "ot2.exe" as shown below:

If you have a new installation of OT2x (2005 edition) the setup program defaults to this shortcut.

How shortcuts should appear

Utilization

To have the ot2load program update files on your network, you must create a text file called ot2load.txt in the root directory of the server installation of OurTown2000 (make sure it is NOT saved as unicode). The root directory of the OurTown2000 installation is defined as the directory directly above the Data directory. To find out where the root directory of the server installation is, open OurTown2000, then click on "Admin" in the menu at the top of the screen and select "File Locations" from the drop down list. After entering the password you should see a screen like below:

File Locations Screen

The root directory is the directory above the "DATA" directory listed under "Constituents". In the case above, the root directory would be "\\PRODELL10\E\AARON\OT2V12\"

The OT2load.txt configuration file

Each file which is to be updated has its own line in the ot2load.txt file. This line is split into two sections divided by a pipe "|" symbol. The section to the left is the path to the updated file. The section on the right is the path to copy the file to on the client relative to the installation directory. Any line which does not contain a pipe is considered to be a comment.

ot2load.txt

In this example, the first line is a comment and the following two lines are equivalent to each other. The second line gives the location of the test.exe file relative to the server root directory. The third line gives the full network path to this file. If you are using the full network path to the files, there is no reason you have to keep the updates within the OurTown2000 server directory structure.

Because there is no directory information following the pipe, the file will in both cases be copied to the client installation root directory (the same directory ot2load.exe exists in.)

Operation

When the ot2load.exe program starts, it reads the ot2load.txt file on the server line by line and attempts to update each file. In the following cases it will NOT update the file:

Once a particular file has been added to ot2load.txt, the client computer will check for a new version of the file every time it runs. There is no need to remove old pointers unless you also remove the file the program has been instructed to copy from.

© Copyright OurTown Software 2005