Arjan van IJzendoorn on April 5, 2013
The Mendix Version Selector introduced in version 4.3.0 automatically selects the Modeler of the right version when you open a Mendix project file (.mpr). If you have multiple versions of the Modeler installed this can be a great time saver. Without the version selector you had to remember which project was created in which version and open the corresponding Modeler yourself. And the version selector not only works for 4.3.0 and newer but for all versions of Mendix! So, even if you are using older versions you can still benefit from having the version selector on your system.
The version selector associates itself with the .mpr file extension. Every time you double click an .mpr file the version selector is opened. It looks through the Program Files directory to find installed Modeler versions. Then, it retrieves the version of the project and tries to find a matching Modeler version. If it succeeds, the Modeler is started and the project is opened. This all happens so quickly that you might not even see it.
Until you try to open a project that you do not have a Modeler for…
If you do not have the exact same version Modeler version that the project was created with, the ‘Version Not Found’ dialog appears.
It offers three options:
If you install older versions of the Modeler you have to make sure that they do not steal the file association from the version selector. Older installers associated the .mpr file extension with the specific Modeler executable itself. Fortunately, you can prevent this from happening by unchecking a check box in the installer:
If by accident you installed an older Modeler without unchecking the check box there is still a way to restore the association to the version selector. Just go to any Mendix project file in the Explorer and right-click it. Choose ‘Open with’ and then ‘Choose default program…’.
Select the Mendix Version Selector in the dialog that appears and make sure that it will be used for all files of this type.
One final feature of the version selector is that it can also handle Mendix project packages (.mpk). A project package is an archive that contains the project file and all necessary other files for a project. If you open such a file, the version selector asks you where you want to extract the package to. After extraction, the project is opened with the correct Modeler.
We hope you enjoy this tiny, mostly invisible program!
Receive Mendix platform tips, tricks, and other resources straight to your inbox every two weeks.