MPEI with 1.2 and 13 (1 Viewer)

fforde

Community Plugin Dev
June 7, 2007
2,667
1,702
42
Texas
Home Country
United States of America United States of America
Is it possible to install different components based on the MediaPortal version? Moving Pictures works fine with both 1.2 (Stable) and 1.3 (Beta/RC) but the Default and DefaultWide skin files are totally different. How can I set different skin files for different versions? I do not want to release two installers.
 
Last edited:

Guzzi

Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    Hi fforde,
    I use a script to copy the files based on the MP skin version:
    Code:
    using MpeCore.Classes;
    using MpeCore;
    using System.IO;
    using System.Windows.Forms;
    using MediaPortal.Common.Utils;
    public class Script
    {
      public static void Main(PackageClass packageClass, ActionItem actionItem)
      {
    	System.Version MpSkinVersion = MediaPortal.Common.Utils.CompatibilityManager.SkinVersion;
    	System.Version NewVersion = new System.Version(1, 3, 0, 0);
    	if (MpSkinVersion.CompareTo(NewVersion) >= 0)
    	{
    	  if (!packageClass.Silent)
    	  {
    		MessageBox.Show("MP 1.3.x detected ! Now updating skin files ...");
    	  }
    ... copy skin files ...
    ....
    Actually, I use standard MPE install for MP1.2.x files and update skin files, if MP1.3 (skin version) is detected.
     
    Last edited:

    fforde

    Community Plugin Dev
    June 7, 2007
    2,667
    1,702
    42
    Texas
    Home Country
    United States of America United States of America
    • Thread starter
    • Moderator
    • #3
    Thanks for the help Guzzi. I ended up deciding to go with an MPEI wrapper around our current NSIS script so we can get things released sooner now that 1.3RC is out. But this was helpful, I ended up doing something similar to get our NSIS installer to honor the silent install flag.

    This script stuff in MPEI really needs some documentation though.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom