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

Discussion in 'Tips and Tricks' started by HappyTalk, January 11, 2007.

  1. HappyTalk

    HappyTalk Portal Pro

    Joined:
    July 16, 2006
    Messages:
    307
    Likes Received:
    8
    Occupation:
    Coder
    Location:
    UK
    Ratings:
    +8 / 0
    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 (Text):
    1.  
    2. regsvr32.exe /u /s "%~dp0CLDump.ax"
    3. regsvr32.exe /u /s "%~dp0MpgMux.ax"
    4. regsvr32.exe /u /s "%~dp0MPReader.ax"
    5. regsvr32.exe /u /s "%~dp0MPTS.ax"
    6. regsvr32.exe /u /s "%~dp0MPSA.ax"
    7. regsvr32.exe /u /s "%~dp0shoutcastsource.ax"
    8. regsvr32.exe /u /s "%~dp0TSFileSource.ax"
    9. regsvr32.exe /u /s "%~dp0MpegSplitter.ax"
    10. regsvr32.exe /u /s "%~dp0MPTSWriter.ax"
    11. regsvr32.exe /u /s "%~dp0cdxareader.ax"
    12.  
    13. regsvr32.exe /s "%~dp0CLDump.ax"
    14. regsvr32.exe /s "%~dp0MpgMux.ax"
    15. regsvr32.exe /s "%~dp0MPReader.ax"
    16. regsvr32.exe /s "%~dp0MPTS.ax"
    17. regsvr32.exe /s "%~dp0MPSA.ax"
    18. regsvr32.exe /s "%~dp0shoutcastsource.ax"
    19. regsvr32.exe /s "%~dp0TSFileSource.ax"
    20. regsvr32.exe /s "%~dp0MpegSplitter.ax"
    21. regsvr32.exe /s "%~dp0MPTSWriter.ax"
    22. regsvr32.exe /s "%~dp0cdxareader.ax"
    23.  
    24. move "%~dp0\Plugins\Windows\TvPlugin.dll" "%~dp0\Plugins\Windows\TvPlugin.dll.bak"
    25. net stop tvservice
    26. start mediaportal
    27.  

    MP.svn.tve3.bat
    Code (Text):
    1.  
    2. regsvr32.exe /u /s "%~dp0CLDump.ax"
    3. regsvr32.exe /u /s "%~dp0MpgMux.ax"
    4. regsvr32.exe /u /s "%~dp0MPReader.ax"
    5. regsvr32.exe /u /s "%~dp0MPTS.ax"
    6. regsvr32.exe /u /s "%~dp0MPSA.ax"
    7. regsvr32.exe /u /s "%~dp0shoutcastsource.ax"
    8. regsvr32.exe /u /s "%~dp0TSFileSource.ax"
    9. regsvr32.exe /u /s "%~dp0MpegSplitter.ax"
    10. regsvr32.exe /u /s "%~dp0MPTSWriter.ax"
    11. regsvr32.exe /u /s "%~dp0cdxareader.ax"
    12.  
    13. regsvr32.exe /s "%~dp0CLDump.ax"
    14. regsvr32.exe /s "%~dp0MpgMux.ax"
    15. regsvr32.exe /s "%~dp0MPReader.ax"
    16. regsvr32.exe /s "%~dp0MPTS.ax"
    17. regsvr32.exe /s "%~dp0MPSA.ax"
    18. regsvr32.exe /s "%~dp0shoutcastsource.ax"
    19. regsvr32.exe /s "%~dp0TSFileSource.ax"
    20. regsvr32.exe /s "%~dp0MpegSplitter.ax"
    21. regsvr32.exe /s "%~dp0MPTSWriter.ax"
    22. regsvr32.exe /s "%~dp0cdxareader.ax"
    23.  
    24. move "%~dp0\Plugins\Windows\TvPlugin.dll.bak" "%~dp0\Plugins\Windows\TvPlugin.dll"
    25. net start tvservice
    26. start mediaportal
    27.  



     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Sh4nn0w
    • Premium Supporter

    Sh4nn0w MP Donator

    Joined:
    September 14, 2006
    Messages:
    321
    Likes Received:
    14
    Gender:
    Male
    Occupation:
    Telecommunications
    Ratings:
    +23 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    :D got around my headache of reinstalling all the time! great tip
     
  4. Noelix

    Noelix Portal Pro

    Joined:
    February 18, 2006
    Messages:
    393
    Likes Received:
    1
    Occupation:
    Flash Designer
    Location:
    Salt Lake City, UT
    Ratings:
    +1 / 0
    Home Country:
    United States of America United States of America
    Sweet, this tip is really great. I'm going to try it out today!
     
  5. Sh4nn0w
    • Premium Supporter

    Sh4nn0w MP Donator

    Joined:
    September 14, 2006
    Messages:
    321
    Likes Received:
    14
    Gender:
    Male
    Occupation:
    Telecommunications
    Ratings:
    +23 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
  6. HappyTalk

    HappyTalk Portal Pro

    Joined:
    July 16, 2006
    Messages:
    307
    Likes Received:
    8
    Occupation:
    Coder
    Location:
    UK
    Ratings:
    +8 / 0
    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
     
  7. Sh4nn0w
    • Premium Supporter

    Sh4nn0w MP Donator

    Joined:
    September 14, 2006
    Messages:
    321
    Likes Received:
    14
    Gender:
    Male
    Occupation:
    Telecommunications
    Ratings:
    +23 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    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 :)
     
  8. HappyTalk

    HappyTalk Portal Pro

    Joined:
    July 16, 2006
    Messages:
    307
    Likes Received:
    8
    Occupation:
    Coder
    Location:
    UK
    Ratings:
    +8 / 0
    OK, I fixed the Wiki stuff
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!