How to verify a ModelMaker installation?
This document explains how to verify your ModelMaker 9 (Pascal or C# edition) installation and how to solve installation problems.
For an MM6.x MM7.x MM8.x installation read 6.x / 7.x /8.x instead of 9.x where applicable.
Directories and files
The ModelMaker Pascal and C# editions share some files and should be installed in the same directory. The Pascal Edition main executable is mm9.exe, the C# Edition main executable is mmcs9.exe
You should have these directories (actual path names depending on your actual install dir / drive)
- C:\program files\ModelMakerTools
The ModelMaker Tools root directory, does not contain files - C:\program files\ModelMakerTools\ModelMaker\9.00
The ModelMaker root directory (depending on version). Contains readme.txt and similar files - C:\program files\ModelMakerTools\ModelMaker\9.00\bin
The binary root directory Contains main application and Delphi IDE integration files related files such as mm9.exe and/ or mmcs9.exe, mmbds3expt.dll, the user manual etc. - C:\program files\ModelMakerTools\Shared
The directory containing files shared with other ModelMaker Tools products. No files required in this directory, but it can contain auto-created files like SharedSettings.ini. - C:\program files\ModelMakerTools\Shared\Templates
This directory should contain the predefined templates and other templates you added. For example ArrayProp_List.pas.
If any of these directories or files is missing you need to run the installer again.
Registry settings: HKEY_LOCAL_MACHINE
You should have these keys:
- HKLM\Software\ModelMaker\ModelMaker\9.0
containing at least a string value named InstallDir pointing to the actual install path. For example: "C:\program files\ModelMakerTools\ModelMaker\9.00" (omit quotes). - HKLM\Software\ModelMaker\Shared
containing at least has a string value named RootDir pointing to the Shared directory. For example: "C:\program files\ModelMakerTools\Shared" (omit quotes). - HKLM\Software\ModelMaker\Shared\Templates
containing at least has a string value named RootDir pointing to the Templates directory. For example: "C:\program files\ModelMakerTools\Shared\Templates" (omit quotes).
If any of these keys / values is missing, you may either run the installer again or manually add them. Make sure you enter the correct directory names.
Registry settings: HKEY_CURRENT_USER
You should have these keys:
- HKCU\Software\ModelMaker\Shared\Templates
containing values that are the registered templates. For example:
value name=Array Property
value string data="C:\Program Files\ModelMakerTools\Shared\Templates\ArrayProp_List.pas",Wizards
This key and it's values is non-essential for ModelMaker. Registering a new code template will auto create whatever is missing.
You do not need any keys or values in HKCU\Software\ModelMaker\ModelMaker\9.0 or any of its sub keys. Here all sub keys and values are auto created.
Delphi IDE Integration
Delphi IDE integration is controlled inside ModelMaker with the Environment Options | IDE Integration tab. Checkboxes allow enabling and disabling integration with specific versions of Delphi. Changes require a restart of the Delphi IDE.
Technically Delphi IDE integration is done by registering an IDE integration expert for each IDE through a string value in HKEY_CURRENT_USER.
HKCU\Software\Borland\Delphi\5.0\Experts - for Delphi 5
HKCU\Software\Borland\Delphi\6.0\Experts - for Delphi 6
HKCU\Software\Borland\Delphi\7.0\Experts - for Delphi 7
HKCU\Software\Borland\BDS\3.0\Experts - for Delphi 2005
HKCU\Software\Borland\BDS\4.0\Experts - for Delphi 2006
HKCU\Software\Borland\BDS\5.0\Experts - for Delphi 2007
For each Delphi version installed you should find a string value named ModelMakerExpert Correct spelling is essential to avoid problems with future installs!!. The string data should point to the actual IDE integration dll as found in the [MMInstall]\bin directory. For example (Delphi 5)
value name =ModelMakerExpert
value string data =C:\program files\ModelMakerTools\ModelMaker\9.00\bin\MMD5Expt.dll
The dll names for the other Delphi IDEs are: MMD6Expt.dll, MMD7Expt.dll, MM_BDS2_Expt.dll, MM_BDS3_Expt.dll, MM_BDS4_Expt.dll, MM_BDS5_Expt.dll
If the ModelMaker IDE integration expert is not loaded by Delphi - no ModelMaker menu visible in the IDE Main menu - , this is caused by a missing ModelMakerExpert value for that IDE. You can manually add the value. Make sure you define the correct dll for that IDE.
Visual Studio IDE Integration
Visual Studio 2003 IDE integration is done by defining an add-in assembly in
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\AddIns\MMVS2003AddIn.MMVSClient
The VS 2003 IDE integration needs to be installed using the setup utility only. To uninstall, use the control panel "Add/Remove software" utility only.
Visual Studio 2005 and 2008 IDE integration is done by adding an add-in definition fileto
C:\Documents and Settings\[username]\Application Data\Microsoft\MSEnvShared\Addins
This .addin file contains the path for the addin dll. Although the addin file may be manually edited, it's best install using the setup utility only. To uninstall, use the control panel "Add/Remove software" utility or remove the .addin file.


Code generation basics