OK, a new release of version 1.7 of the script is available which changes a fair bit.
Download it here.
The most notable addition is the ability of the installer script to check which version of M&B is installed and compare it against the version of M&B which the mod was created for. If they don't match, a warning message is given to the person installing the mod and they are given the option of continuing anyway or cancelling the installation. This should help in the future with people trying to install old mods on newer versions of M&B.
This new check is possible due to a new Registry entry for the M&B version which is now set by the M&B installer. The currently available M&B installer available on the TaleWorlds download page is updated to use this, along with supporting English/Turkish/Spanish languages within the installer.
For people wanting to update from previous versions of the installer, a change will be needed to add in the M&B Version setting in the upper options. Besides copying over everything below the "#You probably shouldn't edit below this point" line like usual for upgrading, you should add in this line from the new version to the uppermost settings:
Code:
!define MB_VERSION "808" #The version of M&B the mod was created for, ex. "808" is version 0.808 of M&B.
If you want to test out what this version warning message looks like, you can change the version listed from "808" to something else like "809", and then compile and run the installer. It should give you the warning message.
If you want your mod to install on any version of M&B, you can comment out the MB_VERSION line to have it ignore the version checking.
Since older installs of .808 and previous M&B versions did not set the version in the Registry, if the version is not found there the installer will assume it is version .808 and compare accordingly.
The changelist for this version:
v1.7:
- New M&B version detection method based on M&B version stored in the registry. This will check the current version of M&B against the version the mod was created for, and warn the person installing that the mod was created for a different version of M&B. This M&B version checking is dependent on a new registry entry which the current M&B installer for .808 includes, which will be updated with each new M&B version.
- Modified "languages" folder usage so that it excludes subfolders which start with a ".", such as ".svn" folders.
- Shortcuts (in Windows, "Create Shortcut" method used on a file or folder) are now excluded from the files, as they really shouldn't be included in any mod package but previously were added by the script.
- Installation notes (in "install.txt") revised since much of it's info was outdated.