home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
General
MP2 Custom Installer
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="breese" data-source="post: 1032681" data-attributes="member: 114299"><p>chefkoch, </p><p>Suggestion on Wiki Custom Install</p><p>Starting at Now what do these lines do?</p><p>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.</p><p> </p><p>Something like:</p><p><strong>Now what do these lines do? </strong></p><p>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</p><p> </p><p><Path name="DATA" value="&lt;COMMON_APPLICATION_DATA&gt;\Team MediaPortal\MP2-Server" /></p><p> </p><p>to</p><p><Path name="DATA" value="F:\MP2Data\MP2-Server" /></p><p>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.</p><p><strong>For more detailed changes:</strong></p><p>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.</p><p>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.</p><p>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".</p><p><strong>Important Note:</strong><em>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.</em></p></blockquote><p></p>
[QUOTE="breese, post: 1032681, member: 114299"] 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: [B]Now what do these lines do? [/B] 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="<COMMON_APPLICATION_DATA>\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. [B]For more detailed changes:[/B] 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". [B]Important Note:[/B][I]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.[/I] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
General
MP2 Custom Installer
Contact us
RSS
Top
Bottom