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
Development
General Development (no feature request here!)
TVPlug shows older version
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="Kashif Jamil" data-source="post: 696275" data-attributes="member: 109439"><p>Thank you very much for your kind reply. Let me explain you what I did as per your advise (Which didn't help)</p><p></p><p>Step A) Execute two batch files in sequence (1) MSBUILD_Rebuild_Release_MediaPortal and (2) MSBUILD_Rebuild_Release_TVServer_Client from my local location C:\svnroot\mediaportal\trunk\Build</p><p></p><p>Step B) Scripts created two binaries (1) Setup-MediaPortal-svn-1.1.6.27128.exe (2) Setup-TvEngine-svn-1.1.6.27128.exe in C:\svnroot\mediaportal\trunk\Release</p><p></p><p>Step C) Run Media Portal Client there was no TV option in main menu (I guess based on my little knowledge there is no TvPlugin installed</p><p></p><p>Step D) Check following local directory for plug in files</p><p>C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows</p><p>Only two DLLs found (1) WindowPlugins.dll (2) Dialogs.dll (Ofcourse there is no TVPlugin dll found)</p><p></p><p>Step E) Next stop I checked to see TVPlug Solution is compiled when I created setup binaries. I reliazed that TVPlugin is not part of setup. So I compiled the TVProject in VS and copied the DLLs in above mentioned plugin directory. Except the above two DLLs.</p><p></p><p>Step F) After that if I run client, I am getting error message which I mentioned.</p><p></p><p>I decided rather I should ask question I should look into code to see where is the code which checking version?</p><p></p><p>I found there is way to avoid version check by pasing parameter (More over there is bool variable which can also set to false within code)</p><p></p><p><strong>See code from MediaPortal.cs </strong></p><p><strong></strong></p><p>#if !DEBUG</p><p> _avoidVersionChecking = false;</p><p> if (arg.ToLowerInvariant() == "/avoidversioncheck")</p><p> {</p><p> _avoidVersionChecking = true;</p><p> Log.Warn("Version check is disabled by command line switch \"/avoidVersionCheck\"");</p><p> }</p><p>#endif</p><p></p><p><strong>Here is the code which validate version</strong></p><p><strong></strong></p><p> string tvPlugin = Config.GetFolder(Config.Dir.Plugins) + "\\Windows\\TvPlugin.dll";</p><p> if (File.Exists(tvPlugin) && !_avoidVersionChecking)</p><p> {</p><p> string tvPluginVersion = FileVersionInfo.GetVersionInfo(tvPlugin).ProductVersion;</p><p> string MpVersion = FileVersionInfo.GetVersionInfo(MpExe).ProductVersion;</p><p> if (MpVersion != tvPluginVersion)</p><p> {</p><p> string strLine = "TvPlugin and MediaPortal don't have the same version.\r\n";</p><p> strLine += "Please update the older component to the same version as the newer one.\r\n";</p><p> strLine += "MediaPortal Version: " + MpVersion + "\r\n";</p><p> strLine += "TvPlugin Version: " + tvPluginVersion;</p><p> if (splashScreen != null)</p><p> {</p><p> splashScreen.Stop();</p><p> splashScreen = null;</p><p> }</p><p> MessageBox.Show(strLine, "MediaPortal", MessageBoxButtons.OK, MessageBoxIcon.Error);</p><p> Log.Info(strLine);</p><p> return;</p><p> }</p><p> }</p><p></p><p>Hope this will help to every one who interested about how to stop version checking among different component.</p><p></p><p>Thanks.</p></blockquote><p></p>
[QUOTE="Kashif Jamil, post: 696275, member: 109439"] Thank you very much for your kind reply. Let me explain you what I did as per your advise (Which didn't help) Step A) Execute two batch files in sequence (1) MSBUILD_Rebuild_Release_MediaPortal and (2) MSBUILD_Rebuild_Release_TVServer_Client from my local location C:\svnroot\mediaportal\trunk\Build Step B) Scripts created two binaries (1) Setup-MediaPortal-svn-1.1.6.27128.exe (2) Setup-TvEngine-svn-1.1.6.27128.exe in C:\svnroot\mediaportal\trunk\Release Step C) Run Media Portal Client there was no TV option in main menu (I guess based on my little knowledge there is no TvPlugin installed Step D) Check following local directory for plug in files C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows Only two DLLs found (1) WindowPlugins.dll (2) Dialogs.dll (Ofcourse there is no TVPlugin dll found) Step E) Next stop I checked to see TVPlug Solution is compiled when I created setup binaries. I reliazed that TVPlugin is not part of setup. So I compiled the TVProject in VS and copied the DLLs in above mentioned plugin directory. Except the above two DLLs. Step F) After that if I run client, I am getting error message which I mentioned. I decided rather I should ask question I should look into code to see where is the code which checking version? I found there is way to avoid version check by pasing parameter (More over there is bool variable which can also set to false within code) [B]See code from MediaPortal.cs [/B] #if !DEBUG _avoidVersionChecking = false; if (arg.ToLowerInvariant() == "/avoidversioncheck") { _avoidVersionChecking = true; Log.Warn("Version check is disabled by command line switch \"/avoidVersionCheck\""); } #endif [B]Here is the code which validate version [/B] string tvPlugin = Config.GetFolder(Config.Dir.Plugins) + "\\Windows\\TvPlugin.dll"; if (File.Exists(tvPlugin) && !_avoidVersionChecking) { string tvPluginVersion = FileVersionInfo.GetVersionInfo(tvPlugin).ProductVersion; string MpVersion = FileVersionInfo.GetVersionInfo(MpExe).ProductVersion; if (MpVersion != tvPluginVersion) { string strLine = "TvPlugin and MediaPortal don't have the same version.\r\n"; strLine += "Please update the older component to the same version as the newer one.\r\n"; strLine += "MediaPortal Version: " + MpVersion + "\r\n"; strLine += "TvPlugin Version: " + tvPluginVersion; if (splashScreen != null) { splashScreen.Stop(); splashScreen = null; } MessageBox.Show(strLine, "MediaPortal", MessageBoxButtons.OK, MessageBoxIcon.Error); Log.Info(strLine); return; } } Hope this will help to every one who interested about how to stop version checking among different component. Thanks. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
TVPlug shows older version
Contact us
RSS
Top
Bottom