| |||||||
| Skins and Plugins Installer (MPI) This section is for MPI, the Skins and plugins installer. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #2 (permalink) |
| Retired Team Member | 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 |
| | |
| | #4 (permalink) |
| Retired Team Member | 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 |
| | |
| | #5 (permalink) |
| Portal Developer | 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, ""));
}
}
|
| | |
| | #6 (permalink) |
| Portal Member Join Date: Aug 2006 Location: Kentucky Age: 23
Posts: 686
Thanks: 121
Thanked 87 Times in 46 Posts
Country: | 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. |
| | |
![]() |
| Bookmarks |
| Tags |
| suggestions |
| Thread Tools | |
| Display Modes | |
|
|
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 |