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 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Installing with custom MediaPortalDirs.xml
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="hkjensen" data-source="post: 650917" data-attributes="member: 52267"><p>Hi</p><p></p><p>When using custom version of MediaPortalDirs.xml the installerscript fails to locate directory for skin, database etc.</p><p>Adding the following to the script for plugin, skin and database, the installer finds the directories.</p><p>[CODE] #grab the plugins folder</p><p>+ ${xml::LoadFile} "$DOCUMENTS\Team MediaPortal\MediaPortalDirs.xml" $1</p><p>+ IntCmp $1 0 specialdir</p><p>+ SetShellVarContext current</p><p>+ ${xml::LoadFile} "$DOCUMENTS\Team MediaPortal\MediaPortalDirs.xml" $1</p><p>+ IntCmp $1 0 specialdir</p><p> ${xml::LoadFile} "$MEDIAPORTAL_DIR\MediaPortalDirs.xml" $1</p><p>+ specialdir:</p><p>+ SetShellVarContext all</p><p> IntCmp $1 -1 fail</p><p>[/CODE]</p><p></p><p>First the installer checks in directory "Team MediaPortal" in documents for all users, if the file dosnt exists it check in "Team MediaPortal" for current user.</p><p></p><p>Using a custom MediaPortalDirs.xml is useful when having a centralized database setup.</p><p></p><p>attached patch file for svn version 1128</p><p></p><p>King regards</p><p></p><p>hkjensen</p></blockquote><p></p>
[QUOTE="hkjensen, post: 650917, member: 52267"] Hi When using custom version of MediaPortalDirs.xml the installerscript fails to locate directory for skin, database etc. Adding the following to the script for plugin, skin and database, the installer finds the directories. [CODE] #grab the plugins folder + ${xml::LoadFile} "$DOCUMENTS\Team MediaPortal\MediaPortalDirs.xml" $1 + IntCmp $1 0 specialdir + SetShellVarContext current + ${xml::LoadFile} "$DOCUMENTS\Team MediaPortal\MediaPortalDirs.xml" $1 + IntCmp $1 0 specialdir ${xml::LoadFile} "$MEDIAPORTAL_DIR\MediaPortalDirs.xml" $1 + specialdir: + SetShellVarContext all IntCmp $1 -1 fail [/CODE] First the installer checks in directory "Team MediaPortal" in documents for all users, if the file dosnt exists it check in "Team MediaPortal" for current user. Using a custom MediaPortalDirs.xml is useful when having a centralized database setup. attached patch file for svn version 1128 King regards hkjensen [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Installing with custom MediaPortalDirs.xml
Contact us
RSS
Top
Bottom