Reply to thread

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


Top Bottom