MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Skins and Plugins Installer (MPI)


Skins and Plugins Installer (MPI) This section is for MPI, the Skins and plugins installer.

Reply
 
LinkBack Thread Tools Display Modes
Old 2007-08-18, 09:52   #1 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 28
Posts: 323
Thanks: 6
Thanked 42 Times in 18 Posts

Country:

My System

Default Suggestions

Please post in this thread, any suggestion or improvement idea.
dukus is offline   Reply With Quote
Old 2007-08-18, 11:14   #2 (permalink)
Retired Team Member
 
Join Date: Sep 2005
Posts: 617
Thanks: 5
Thanked 9 Times in 6 Posts

Country:

My System

Default

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 ?
__________________
go to the new My Music Wiki, to expand the capabilities of your music collection:
http://wiki.team-mediaportal.com/UsingMyMusic
idioteque is offline   Reply With Quote
Old 2007-08-20, 19:19   #3 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 28
Posts: 323
Thanks: 6
Thanked 42 Times in 18 Posts

Country:

My System

fixed

Quote:
Originally Posted by idioteque View Post
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 ?
I think solve yours problem, with a small plugin file. I add support for plugins, see wiki
dukus is offline   Reply With Quote
Old 2007-08-20, 19:53   #4 (permalink)
Retired Team Member
 
Join Date: Sep 2005
Posts: 617
Thanks: 5
Thanked 9 Times in 6 Posts

Country:

My System

Default

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 ?
__________________
go to the new My Music Wiki, to expand the capabilities of your music collection:
http://wiki.team-mediaportal.com/UsingMyMusic
idioteque is offline   Reply With Quote
Old 2007-08-20, 20:07   #5 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 28
Posts: 323
Thanks: 6
Thanked 42 Times in 18 Posts

Country:

My System

Default

For reading some information from config:
Ex.: Read all share information : (you may find more MovieShares.cs)

Code:
using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")))
{
   string defaultShare = xmlreader.GetValueAsString("movies", "default", "");
        for (int index = 0; index < 20; index++)
        {
          string shareName = String.Format("sharename{0}", index);
          string sharePath = String.Format("sharepath{0}", index);
          string sharePin = String.Format("pincode{0}", index);

          string shareType = String.Format("sharetype{0}", index);
          string shareServer = String.Format("shareserver{0}", index);
          string shareLogin = String.Format("sharelogin{0}", index);
          string sharePwd = String.Format("sharepassword{0}", index);
          string sharePort = String.Format("shareport{0}", index);
          string shareRemotePath = String.Format("shareremotepath{0}", index);
          string shareViewPath = String.Format("shareview{0}", index);

          string shareNameData = xmlreader.GetValueAsString("movies", shareName, "");
          string sharePathData = xmlreader.GetValueAsString("movies", sharePath, "");
          string sharePinData = MediaPortal.Util.Utils.DecryptPin(xmlreader.GetValueAsString("movies", sharePin, ""));
         }
}
dukus is offline   Reply With Quote
Old 2007-08-23, 15:11   #6 (permalink)
Portal Member
 
jburnette's Avatar
 
Join Date: Aug 2006
Location: Kentucky
Age: 23
Posts: 686
Thanks: 121
Thanked 87 Times in 46 Posts

Country:

My System

Default

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.
jburnette is online now   Reply With Quote
Old 2007-08-23, 15:38   #7 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 28
Posts: 323
Thanks: 6
Thanked 42 Times in 18 Posts

Country:

My System

fixed

Fixed .
dukus is offline   Reply With Quote
Old 2007-08-28, 21:30   #8 (permalink)
Portal Member
 
carreno's Avatar
 
Join Date: Jul 2005
Location: France
Age: 21
Posts: 223
Thanks: 10
Thanked 1 Time in 1 Post

Country:

My System

Send a message via MSN to carreno
Smile

You forget to add a Skin section in MPI downloads sections

;-)
__________________
carreno is offline   Reply With Quote
Old 2007-08-28, 21:48   #9 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 28
Posts: 323
Thanks: 6
Thanked 42 Times in 18 Posts

Country:

My System

Default

i not forgot, but not really tested with a skin installation, but somebody can confirm it is work we may add.
dukus is offline   Reply With Quote
Reply

Bookmarks

Tags
suggestions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Few questions/suggestions phunqe My TVSeries 3 2007-06-17 00:51
Autorecord "suggestions" programs (like Tivo suggestions) 2themaxx Improvement Suggestions 2 2007-04-24 07:48
Software suggestions? bedog Codecs, External Players 1 2006-01-15 02:30
several new suggestions Anonymous Improvement Suggestions 17 2004-12-01 18:35
MyTV suggestions RedDom Improvement Suggestions 1 2004-05-10 20:02


All times are GMT +1. The time now is 04:25.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress