MP2 Custom Installer (2 Viewers)

breese

Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    66
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\SkinBase\Skin
    Only Default was installed.
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\SkinBase\Skin
    Only Default was installed.
    Other skins are not in the SkinBase folder. For Titanium there should be a directory called:
    C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\Titanium
    If this directory does not exist, something went wrong with your installation....
     

    breese

    Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    66
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    chefkoch,
    Suggestion on Wiki Custom Install
    Starting at Now what do these lines do?
    If it had / would start with the later part explaining "Usually, you only want to change where the respective MP2" and then going into what each of the other lines do, I think it would help those looking for the Global change instead of them thinking they need to change each of the lines before finding out there is a single line change.

    Something like:
    Now what do these lines do?
    Usually, you only want to change where the respective MP2 Application - in this case MP2 Server - stores all its data. This can be achieved by changing only a single line in the Paths.xml file. Let's assume you want your MP2 Server store all its data - including settings, the database file and the log files - on F:\MP2Data\MP2-Server. You can do so by changing line 4 from

    <Path name="DATA" value="&lt;COMMON_APPLICATION_DATA&gt;\Team MediaPortal\MP2-Server" />

    to
    <Path name="DATA" value="F:\MP2Data\MP2-Server" />
    No need to change the path for the settings, the log files and the database file separately. These definitions in lines 5, 6 and 8 of the file are relative to the path called "DATA", which we just changed. So the settings will automatically be stored to F:\MP2Data\MP2-Server\Config, the log files to F:\MP2Data\MP2-Server\Log and the database file directly in F:\MP2Data\MP2-Server without any further changes. Just save your changed Paths.xml file and you are (nearly) done.
    For more detailed changes:
    The important lines here are lines 4 to 8. In line 4 we define a path called "DATA" located at "<COMMON_APPLICATION_DATA>\Team MediaPortal\MP2-Server". "<COMMON_APPLICATION_DATA>" is a system defined path which usually points to "[SystemDrive]:\ProgramData", so what we really define is a path called DATA pointing to "[SystemDrive]:\ProgramData\Team MediaPortal\MP2-Server". Does that ring a bell? Yes, that's the default Data Directory of MP2 Server as explained above.
    In line 5 we define a directory called "CONFIG" pointing to "<DATA>\Config", i.e. to a subdirectory named "Config" located in the Data Directory we defined above. The MP2 Server stores all its settings there. In line 6 we define a directory called "LOG" located in a subdirectory named "Log" under the Data Directory. Guess what MP2 Server stores there: its log files. Line 8 defines where MP2 Server stores its database file (assuming you are using an embedded database like the default SQLCEDatabase or SQLiteDatabase). It is stored directly in the Data Directory.
    Line 7 is somewhat different as it tells MP2 Server where to look for its plugins. So this does not affect "data", but program files. "<APPLICATION_ROOT>" is nothing more than the Installation Directory you chose during install for your MP2 Server. So as a default, MP2 Server looks for plugins in a subdirectory of the Installation Directory named "plugins".
    Important Note:When you have already started the respective application before and used it - in particular when you already attached a MP2 Client to the MP2 Server or even added a Share to be imported, there is already data contained in the default Data Directory. If you want to keep this data, copy it to the new location before you restart the respective application. If you don't do so, MP2 Server, MP2 Client or MP2 ServiceMonitor, respectively, will assume that they have just been started for the first time and create the respective data files with default values. This means in particular that you have to re-attach your MP2 Client(s) and reimport your Share(s). If you did so by mistake, end the respective application again, delete the newly generated default files in the new Data Directory, now copy your old Data Directory's content to the new Data Directory and then start the application again.
     

    Users who are viewing this thread

    Top Bottom