- Thread starter
- #11
OK prev advice re using restore.bat from svn backup didn't work properly. I forgot original bat I posted was based on my additions to this file done ages ago. So I've done it properly now. Anyway this definately works just tested on v0.2.0.4, v0.2.1.0, v0.2.2.0 & v0.2.2.0.svn all in different folders, flicking between them with ease. (I'll copy this post to tips)
So this should now read
Install mp0.2.2.0 and configure it all, when working
make a copy of the MediaPortal folder renaming it MediaPortal.svn
Install latest SVN to MediaPortal.svn folder
Install/config SQL/TV-Server/TV-Client (Client must install to MediaPortal.svn) folder
Now put a copy of the relevant bat file below in each of your different MediaPortal install folders. I have 4 MP versions all in diff folders 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.bat
If the folder contains a MediaPortal version running using tv server engine (v3) then ensure second last line says 'net start tvervice', else for tv engine v2 ensure line says 'net stop tvservice'. Now use that batch file to run MediaPortal rather than the .exe. I put shorcuts to each batch file on the desktop (hence the bat naming) so I can easily flick between them. You may wish to edit (a copy of) MediaPortalDirs.xml to change the thumbs folder so they all point to same one to avoid duplication.
MP.0.2.0.4.bat / MP.0.2.1.0.bat / MP.0.2.2.0.bat
MP.svn.bat
----------------
If instead you wanna flick between v2/v3 in same svn folder then these work (tested) Just make sure you DO NOT delete tv cards from mp config (v3 runs fine with them left as is). You can merge them to end of prev batch files if you might be flicking between 0.2.2.0, svn.v2 & svn.v3 at random.
mp.v2.bat
mp.v3.bat
So this should now read
Install mp0.2.2.0 and configure it all, when working
make a copy of the MediaPortal folder renaming it MediaPortal.svn
Install latest SVN to MediaPortal.svn folder
Install/config SQL/TV-Server/TV-Client (Client must install to MediaPortal.svn) folder
Now put a copy of the relevant bat file below in each of your different MediaPortal install folders. I have 4 MP versions all in diff folders 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.bat
If the folder contains a MediaPortal version running using tv server engine (v3) then ensure second last line says 'net start tvervice', else for tv engine v2 ensure line says 'net stop tvservice'. Now use that batch file to run MediaPortal rather than the .exe. I put shorcuts to each batch file on the desktop (hence the bat naming) so I can easily flick between them. You may wish to edit (a copy of) MediaPortalDirs.xml to change the thumbs folder so they all point to same one to avoid duplication.
MP.0.2.0.4.bat / MP.0.2.1.0.bat / MP.0.2.2.0.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"
regsvr32.exe /u /s "%windir%\system32\MpaDecFilter.ax"
regsvr32.exe /u /s "%windir%\system32\Mpeg2DecFilter.ax"
regsvr32.exe /u /s "%windir%\system32\MpegAudio.dll"
regsvr32.exe /u /s "%windir%\system32\MpegVideo.dll"
copy "%~dp0MpaDecFilter.ax" %windir%\system32\
copy "%~dp0Mpeg2DecFilter.ax" %windir%\system32\
copy "%~dp0MpegAudio.dll" %windir%\system32\
copy "%~dp0MpegVideo.dll" %windir%\system32\
regsvr32.exe /s "%windir%\system32\MpaDecFilter.ax"
regsvr32.exe /s "%windir%\system32\Mpeg2DecFilter.ax"
regsvr32.exe /s "%windir%\system32\MpegAudio.dll"
regsvr32.exe /s "%windir%\system32\MpegVideo.dll"
net stop tvservice
start mediaportal
MP.svn.bat
Code:
....
...same as above
....
net start tvservice
start mediaportal
----------------
If instead you wanna flick between v2/v3 in same svn folder then these work (tested) Just make sure you DO NOT delete tv cards from mp config (v3 runs fine with them left as is). You can merge them to end of prev batch files if you might be flicking between 0.2.2.0, svn.v2 & svn.v3 at random.
mp.v2.bat
Code:
move "%~dp0\Plugins\Windows\TvPlugin.dll" "%~dp0\Plugins\Windows\TvPlugin.dll.bak"
net stop tvservice
start mediaportal
mp.v3.bat
Code:
move "%~dp0\Plugins\Windows\TvPlugin.dll.bak" "%~dp0\Plugins\Windows\TvPlugin.dll"
net start tvservice
start mediaportal