MPEI with 1.2 and 13

Discussion in 'Skins and Plugins Installer (MPEI)' started by fforde, February 4, 2013.

  1. fforde

    fforde Community Plugin Dev

    Joined:
    June 7, 2007
    Messages:
    2,666
    Likes Received:
    1,690
    Occupation:
    Software Engineer
    Location:
    Texas
    Ratings:
    +1,696 / 0
    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: February 4, 2013
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Guzzi
    • Premium Supporter

    Guzzi Retired Team Member

    Joined:
    August 20, 2007
    Messages:
    2,161
    Likes Received:
    704
    Ratings:
    +922 / 0
    Hi fforde,
    I use a script to copy the files based on the MP skin version:
    Code (Text):
    1.  
    2. using MpeCore.Classes;
    3. using MpeCore;
    4. using System.IO;
    5. using System.Windows.Forms;
    6. using MediaPortal.Common.Utils;
    7. public class Script
    8. {
    9.   public static void Main(PackageClass packageClass, ActionItem actionItem)
    10.   {
    11.     System.Version MpSkinVersion = MediaPortal.Common.Utils.CompatibilityManager.SkinVersion;
    12.     System.Version NewVersion = new System.Version(1, 3, 0, 0);
    13.     if (MpSkinVersion.CompareTo(NewVersion) >= 0)
    14.     {
    15.       if (!packageClass.Silent)
    16.       {
    17.         MessageBox.Show("MP 1.3.x detected ! Now updating skin files ...");
    18.       }
    19. ... copy skin files ...
    20. ....
    21.    
    Actually, I use standard MPE install for MP1.2.x files and update skin files, if MP1.3 (skin version) is detected.
     
    Last edited: February 5, 2013
  4. fforde

    fforde Community Plugin Dev

    Joined:
    June 7, 2007
    Messages:
    2,666
    Likes Received:
    1,690
    Occupation:
    Software Engineer
    Location:
    Texas
    Ratings:
    +1,696 / 0
    Home Country:
    United States of America United States of America
    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: February 5, 2013
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!