There are two different ways of installing your plug-in, depending which version of the Manager the user is using.
To install your plug-in, register the OLE interface correctly in the Registry, and add the following line to PLUGINS.INI:
1,projectname
For the test program for example, you would use 1,SGMTestEx. If you do not want your plug-in to be loaded by default (not recommended, or the user might not know it's installed), change the 1, to 0,.
You must also update the first line, a count of plug-ins, by adding 1 to it. If you remove your plug-in, take 1 away from it.
Transport Tycoon Saved Game Manager 2.0 introduces a new, improved, method of installing plug-ins. It is very easy to add and remove your plug-in, without having to increment numbers, etc.
You should add an item to the [Plugins] section of PLUGINS2.INI which looks like this:
MyID=MyID
MyID can be pretty much anything, but it's best if it's unique. You could use a GUID for this, for example:
8DC8B980-8A95-11D5-80FE-E9262F8FDF28=8DC8B980-8A95-11D5-80FE-E9262F8FDF28
You must now create a new section called [MyID], with the same ID as above. The section looks like this:
[8DC8B980-8A95-11D5-80FE-E9262F8FDF28] Class=MyVeryGoodExtension Enabled=1
Class should be set to the class name of your project, and Enabled should generally be set to 1.
To uninstall your plug-in, just remove the entries you created.
Please note that Saved Game Manager 2.0 checks the old PLUGINS.INI each startup and if necessary upgrades it to the new PLUGINS2.INI format.