HowTo easily flick between diff MP versions (inc v2,v3 tv engine) (1 Viewer)

HappyTalk

Portal Pro
July 16, 2006
307
8
UK
Now added to Wiki - http://wiki.team-mediaportal.com/UserGuides/Switch-stable-svn-builds

If you wanna try out diff versions of MediaPortal eg v0.2.1.0 or v0.2.2.0 or v0.2.2.0.svn (v2/v3 tv engine) IMHO you're best off installing them into different folders and using a batch file to reconfig and run MediaPortal. This has been thoroughly tested on v0.2.0.4, v0.2.1.0, v0.2.2.0 & v0.2.2.0.svn all in different folders. What I did was:-

- Installed latest release (currently v0.2.2.0) to ...Program Files\MediaPortal.0.2.2.0 and configured it all (setup tv /media folders etc). When customised & working 100%

- Make a copy of that MediaPortal folder renaming it MediaPortal.svn

- Install latest SVN to this new MediaPortal.svn folder (re-run config f req'd)

- Install/config SQL/TV-Server/TV-Client (Client must install to MediaPortal.svn) folder. DO NOT delete tv cards from config if using v3 tv engine or won't be able to swap back to v2. You can install other versions, maybe a stable svn you like or whatever just use different folders.

- Now put a copy of the relevant batch file below in each of your different MediaPortal install folders renaming accordingly to avoid confusion (I put shortcuts to each on my desktop). Now use this file to run MediaPortal instead of the .exe. I have 4 MP versions all in diff folders with batch files stored thus:-

....Program Files\MediaPortal.0.2.0.4\MP.0.2.0.4.bat
....Program Files\MediaPortal.0.2.1.0\MP.0.2.1.0.bat
....Program Files\MediaPortal.0.2.2.0\MP.0.2.2.0.bat
....Program Files\MediaPortal.svn\MP.svn.tve2.bat
....Program Files\MediaPortal.svn\MP.svn.tve3.bat


Versions 0.2.2.0 or earlier can only use v2 of the tv engine so only first batch file is relevant. For later (svn) versions you can put both batch files in the MP install folder and run depending on which version of TV engine you wish to run. It is a good idea to to edit (a copy of) MediaPortalDirs.xml to change the path to the thumbs folder so the different installs don't duplicate them. Occasionally I've had an mpeg pin graph error when trying to view TV, but a quick reboot sorts that out.

MP.0.2.0.4.bat / MP.0.2.1.0.bat / MP.0.2.2.0.bat / MP.svn.tve2.bat
Code:
regsvr32.exe /u /s "%~dp0CLDump.ax" 
regsvr32.exe /u /s "%~dp0MpgMux.ax" 
regsvr32.exe /u /s "%~dp0MPReader.ax"
regsvr32.exe /u /s "%~dp0MPTS.ax" 
regsvr32.exe /u /s "%~dp0MPSA.ax"
regsvr32.exe /u /s "%~dp0shoutcastsource.ax"
regsvr32.exe /u /s "%~dp0TSFileSource.ax"
regsvr32.exe /u /s "%~dp0MpegSplitter.ax"
regsvr32.exe /u /s "%~dp0MPTSWriter.ax"
regsvr32.exe /u /s "%~dp0cdxareader.ax"

regsvr32.exe /s "%~dp0CLDump.ax" 
regsvr32.exe /s "%~dp0MpgMux.ax" 
regsvr32.exe /s "%~dp0MPReader.ax"
regsvr32.exe /s "%~dp0MPTS.ax" 
regsvr32.exe /s "%~dp0MPSA.ax"
regsvr32.exe /s "%~dp0shoutcastsource.ax"
regsvr32.exe /s "%~dp0TSFileSource.ax"
regsvr32.exe /s "%~dp0MpegSplitter.ax"
regsvr32.exe /s "%~dp0MPTSWriter.ax"
regsvr32.exe /s "%~dp0cdxareader.ax"

move "%~dp0\Plugins\Windows\TvPlugin.dll" "%~dp0\Plugins\Windows\TvPlugin.dll.bak"
net stop tvservice
start mediaportal


MP.svn.tve3.bat
Code:
regsvr32.exe /u /s "%~dp0CLDump.ax" 
regsvr32.exe /u /s "%~dp0MpgMux.ax" 
regsvr32.exe /u /s "%~dp0MPReader.ax"
regsvr32.exe /u /s "%~dp0MPTS.ax" 
regsvr32.exe /u /s "%~dp0MPSA.ax"
regsvr32.exe /u /s "%~dp0shoutcastsource.ax"
regsvr32.exe /u /s "%~dp0TSFileSource.ax"
regsvr32.exe /u /s "%~dp0MpegSplitter.ax"
regsvr32.exe /u /s "%~dp0MPTSWriter.ax"
regsvr32.exe /u /s "%~dp0cdxareader.ax"

regsvr32.exe /s "%~dp0CLDump.ax" 
regsvr32.exe /s "%~dp0MpgMux.ax" 
regsvr32.exe /s "%~dp0MPReader.ax"
regsvr32.exe /s "%~dp0MPTS.ax" 
regsvr32.exe /s "%~dp0MPSA.ax"
regsvr32.exe /s "%~dp0shoutcastsource.ax"
regsvr32.exe /s "%~dp0TSFileSource.ax"
regsvr32.exe /s "%~dp0MpegSplitter.ax"
regsvr32.exe /s "%~dp0MPTSWriter.ax"
regsvr32.exe /s "%~dp0cdxareader.ax"

move "%~dp0\Plugins\Windows\TvPlugin.dll.bak" "%~dp0\Plugins\Windows\TvPlugin.dll"
net start tvservice
start mediaportal
 

Sh4nn0w

MP Donator
  • Premium Supporter
  • September 14, 2006
    321
    23
    Home Country
    United Kingdom United Kingdom
    :D got around my headache of reinstalling all the time! great tip
     

    HappyTalk

    Portal Pro
    July 16, 2006
    307
    8
    UK
    Hmmm the stuff in the wiki isn't quite correct and I don't think it'll work as there is a line missing (move "%~dp0\....). The different variations of batch file can be consolidated down to 2 files one to run old tv server and one for new. If there are non relevant batch commands for one or other version they'll just error and be ignored which is no problem.

    I've updated the Original Post to simplify/clarify things. If you're able to update/replace the wiki stuff with this simpler info that'd be great
     

    Sh4nn0w

    MP Donator
  • Premium Supporter
  • September 14, 2006
    321
    23
    Home Country
    United Kingdom United Kingdom
    Thanks, I'll look at your adjustments, and clean up the wiki.

    I was just trying split between using your files for SVN/Stable And TVE3, guess I should have actually tried it out :)
     

    Users who are viewing this thread

    Top Bottom