Suggestions

Discussion in 'Skins and Plugins Installer (MPEI)' started by dukus, August 18, 2007.

  1. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    Please post in this thread, any suggestion or improvement idea.
    :D


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. idioteque
    • Premium Supporter

    idioteque Retired Team Member

    Joined:
    September 29, 2005
    Messages:
    609
    Likes Received:
    9
    Ratings:
    +9 / 0
    Home Country:
    Netherlands Netherlands
    is it possible to execute an external command like a batch file after installing, and do the same after un-installing?

    If not can this be implemented ?
     
  4. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    I think solve yours problem, with a small plugin file. I add support for plugins, see wiki
     
  5. idioteque
    • Premium Supporter

    idioteque Retired Team Member

    Joined:
    September 29, 2005
    Messages:
    609
    Likes Received:
    9
    Ratings:
    +9 / 0
    Home Country:
    Netherlands Netherlands
    OK thank you,

    Now for some advanced features: :)
    Can I read the config of the installed MP and changes settings or use info of the config

    Example 1: Read path of video shares and add files to that path
    Example 2: Read settings and change settings ?
     
  6. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    For reading some information from config:
    Ex.: Read all share information : (you may find more MovieShares.cs)

    Code (Text):
    1. using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")))
    2. {
    3.    string defaultShare = xmlreader.GetValueAsString("movies", "default", "");
    4.         for (int index = 0; index < 20; index++)
    5.         {
    6.           string shareName = String.Format("sharename{0}", index);
    7.           string sharePath = String.Format("sharepath{0}", index);
    8.           string sharePin = String.Format("pincode{0}", index);
    9.  
    10.           string shareType = String.Format("sharetype{0}", index);
    11.           string shareServer = String.Format("shareserver{0}", index);
    12.           string shareLogin = String.Format("sharelogin{0}", index);
    13.           string sharePwd = String.Format("sharepassword{0}", index);
    14.           string sharePort = String.Format("shareport{0}", index);
    15.           string shareRemotePath = String.Format("shareremotepath{0}", index);
    16.           string shareViewPath = String.Format("shareview{0}", index);
    17.  
    18.           string shareNameData = xmlreader.GetValueAsString("movies", shareName, "");
    19.           string sharePathData = xmlreader.GetValueAsString("movies", sharePath, "");
    20.           string sharePinData = MediaPortal.Util.Utils.DecryptPin(xmlreader.GetValueAsString("movies", sharePin, ""));
    21.          }
    22. }
     
  7. jburnette

    jburnette Portal Pro

    Joined:
    August 24, 2006
    Messages:
    758
    Likes Received:
    116
    Occupation:
    Tax Researcher
    Location:
    Kentucky
    Ratings:
    +116 / 0
    Home Country:
    United States of America United States of America
    dukus,
    I really like the idea and once I got the hang of package creation, it's much easier than having to write a long how-to of where to put all of the files. One problem though, when you click install from within the plugins/mpinstaller screen in MP setup, it doesn't automatically choose the file type MPI. In the filename box it shows "openFileDialog1" with no file type specified.
     
  8. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
  9. carreno
    • Premium Supporter

    carreno Moderateur

    Joined:
    July 31, 2005
    Messages:
    251
    Likes Received:
    25
    Location:
    France
    Ratings:
    +25 / 0
    Home Country:
    France France
  10. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    i not forgot, but not really tested with a skin installation, but somebody can confirm it is work we may add.
     
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!