<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4060003091829965299</id><updated>2011-04-21T18:24:10.786-05:00</updated><category term='vista media center'/><title type='text'>Code and Config</title><subtitle type='html'>Source code hacking tips and tricks and general hidden or little known configuration options for popular programs.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codeandconfig.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4060003091829965299/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://codeandconfig.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>pako loko</name><uri>http://www.blogger.com/profile/03297416297865171996</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4060003091829965299.post-8972078435541008010</id><published>2009-02-21T18:30:00.003-06:00</published><updated>2009-02-25T16:10:18.863-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vista media center'/><title type='text'>MediaBrowser / VideoBrowser Hack for Multiple Entry Points</title><content type='html'>&lt;span style="font-size:85%;"&gt;If you would like to have multiple entry points for Media Browser, each with a different starting folder, here are two methods to do it. Please read both carefully first and decide which one is better for you.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:85%;" &gt;GOOD HACK&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;With the good hack, you will be able to do updates to media browser while keeping the hack. This is actually the "correct" way to hack open source code and if you have some experience in programming and a little patience, you will even be able to implement your own hacks!&lt;br /&gt;&lt;br /&gt;All the instructions should be followed in a Windows Vista machine.&lt;br /&gt;&lt;br /&gt;You will need to download:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://go.microsoft.com/?linkid=7729278"&gt;Visual C# 2008 Express edition&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://downloads.sourceforge.net/tortoisesvn/TortoiseSVN-1.5.8.15348-win32-svn-1.5.5.msi?download"&gt;Tortoise SVN&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;My hacked &lt;a href="http://www.savefile.com/files/2013199"&gt;Registration.xml&lt;/a&gt; file (look for it at the end of the post)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;My &lt;a href="http://www.savefile.com/files/2013198"&gt;patch&lt;/a&gt; for the MediaBrowser code hack&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;1. Once you have installed Visual C# and TortoiseSVN, go to a directory where you will be keeping your code. Normally, it is User_Name\Documents\Visual Studio 8. Right click anywhere in the folder (but not over an icon) and the context menu for TortoiseSVN should be there&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_AKpQYii06_0/SaCdA_BMFQI/AAAAAAAAAAM/P5o3XRUKekw/s1600-h/context_menu.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 275px;" src="http://2.bp.blogspot.com/_AKpQYii06_0/SaCdA_BMFQI/AAAAAAAAAAM/P5o3XRUKekw/s320/context_menu.jpg" alt="" id="BLOGGER_PHOTO_ID_5305413001284424962" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;Select "SVN Checkout..." and fill out the window that pops up like this&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_AKpQYii06_0/SaCqso9NesI/AAAAAAAAABU/1Y0bOptFSh8/s1600-h/co+window.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 246px;" src="http://2.bp.blogspot.com/_AKpQYii06_0/SaCqso9NesI/AAAAAAAAABU/1Y0bOptFSh8/s320/co+window.jpg" alt="" id="BLOGGER_PHOTO_ID_5305428044927564482" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;Click "OK" and "Yes" to the question box that pops up. Then a new window will pop that shows what files of the source code are being downloaded. When it finishes the download, click OK. Now you have a working directory of the videobrowser source code that can be patched and updated.&lt;br /&gt;&lt;br /&gt;2. Apply the patch that I provided and you already downloaded, right click on the videobrowser folder and select "TortoiseSVN"-&gt;"Apply Patch...".&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_AKpQYii06_0/SaCrKAYEhMI/AAAAAAAAABc/Dld3b9WVyJc/s1600-h/apply+patch.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 278px;" src="http://3.bp.blogspot.com/_AKpQYii06_0/SaCrKAYEhMI/AAAAAAAAABc/Dld3b9WVyJc/s320/apply+patch.jpg" alt="" id="BLOGGER_PHOTO_ID_5305428549430445250" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;Select the patch you downloaded and in the window that follows, right click and select the "Patch All" command as shown bellow.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_AKpQYii06_0/SaCrZL9SkqI/AAAAAAAAABk/4Iu2_Yp63DA/s1600-h/patch+window.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 192px;" src="http://1.bp.blogspot.com/_AKpQYii06_0/SaCrZL9SkqI/AAAAAAAAABk/4Iu2_Yp63DA/s320/patch+window.jpg" alt="" id="BLOGGER_PHOTO_ID_5305428810237383330" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;3. Now you now need to compile the code. Double click on the videobrowser\MediaBrowser.sln file. This will open the project in Visual C#. Then open the Configuration Manager window by selecting the menu "Build"-&gt;"Configuration Manager...". In the window that appears, set the options as shown.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_AKpQYii06_0/SaCrmA9B9iI/AAAAAAAAABs/d13T10Ir74I/s1600-h/config+manager.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 198px;" src="http://4.bp.blogspot.com/_AKpQYii06_0/SaCrmA9B9iI/AAAAAAAAABs/d13T10Ir74I/s320/config+manager.jpg" alt="" id="BLOGGER_PHOTO_ID_5305429030621804066" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;And build the project by selecting the menu "Build"-&gt;"Build MediaBrowser". This will create the file &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;videobrowser&lt;/span&gt;\&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;MediaBrowser&lt;/span&gt;\obj\Release\&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;MediaBrowser&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;dll&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;4. Finally, follow the steps for the easy hack, but substitute the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;dll&lt;/span&gt; file I provide, with the one you just created.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:85%;" &gt;EASY HACK&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;The easy way to implement this hack consists of you just installing my own hacked version of the compiled media browser. The disadvantage of this is that you won't be able to update media browser without eliminating the hack, but you won't need to install as much extra software.&lt;br /&gt;&lt;br /&gt;You will need to download:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://www.savefile.com/files/2013191"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;MediaBrowser&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;dll&lt;/span&gt;&lt;/a&gt;. If you followed the "Good Hack" instructions, use your own &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;MediaBrowser&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;dll&lt;/span&gt; instead.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;My hacked &lt;a href="http://www.savefile.com/files/2013199"&gt;Registration.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;xml&lt;/span&gt;&lt;/a&gt; file (look for it at the end of the post).&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;1. In order to work with the GAC directly (something that is not recommended by Microsoft), you will need to change the permissions in the "Assembly" directory. I am not responsible for any damages that you may cause to your computer as a result of following these instructions, so you do it at your own risk. To change the permissions, run the following in a command line window (Open the start menu, and in the Start Search text field, type &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_23"&gt;cmd&lt;/span&gt; and press Enter)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;icacls c:\windows\assembly /grant your_username:F /T /C &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;replace your_user name with your actual windows vista user name, which should have administrator privileges.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;2. Go to the folder where the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;MediaBrowser&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;dll&lt;/span&gt; file is in windows explorer and leave it open. In another explorer window, go to C:\Windows\assembly and drag and drop the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;MediaBrowser&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;dll&lt;/span&gt; into the assembly folder. This will replace the MediaBrowser.dll that is currently installed.&lt;br /&gt;&lt;br /&gt;3. Configure Media Browser to work with this hack. Open MediaBrowser and go to the options page. Change Initial Location from "MyVideos" (or whatever you had before) to "MultipleEntrypoints" (exactly, without the quotes). Also make sure that you uncheck "Automatic Updates" and "Beta Updates". Otherwise, the hack will be eliminated the next time MediaBrowser updates itself.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_AKpQYii06_0/SaD9ixNd-HI/AAAAAAAAAB0/Ep44XYPifg0/s1600-h/mb+config.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 190px;" src="http://3.bp.blogspot.com/_AKpQYii06_0/SaD9ixNd-HI/AAAAAAAAAB0/Ep44XYPifg0/s320/mb+config.jpg" alt="" id="BLOGGER_PHOTO_ID_5305519134809651314" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;4. Edit Register.xml according to your needs. These are the fields that you should change:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight: bold;"&gt;title&lt;/span&gt;="browse movies" &lt;- this is the name that the entry point will have in the menus   &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;description&lt;/span&gt;="Browse your media" &lt;- small description for entry point  &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;context&lt;/span&gt;="C:\Users\&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;Pako&lt;/span&gt;\Movies" &lt;-&lt;span style="color: rgb(255, 102, 102);"&gt;IMPORTANT&lt;/span&gt;: This is the folder that this entry point will open. It can also be a virtual folder or a link. If it just says &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;CONFIG&lt;/span&gt;, then the configuration page will be opened through this entry point. I highly recommend that you leave at least one entry point with the CONFIG context. Otherwise, you won't be able to change the configuration after this hack is enabled.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;ImageUrl&lt;/span&gt;&lt;/span&gt;=".\Application.png" &lt;-If you are good as graphics, you can change this for your own, just make sure that it has the exact same dimensions. This is the image that the entry point will display while selected in the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;vmc&lt;/span&gt; menu.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;inactiveImageURL&lt;/span&gt;&lt;/span&gt;=".\ApplicationInactive.png" &lt;- this image will be displayed while unselected. &lt;/blockquote&gt;&lt;blockquote&gt;If you decide to add more entry points that the ones I included with the Registration.xml file, make sure that you also increase &lt;span style="font-family:courier new;"&gt;&lt;entrypoint id="{FC9ABCCC-36CB-47ac-8BAB-03E8EF5F6F26}"&gt;&lt;/entrypoint&gt;&lt;/span&gt; by one, so the id of the entry point that you add after the last, would be &lt;span style="font-family:courier new;"&gt;&lt;entrypoint id="{FC9ABCCC-36CB-47ac-8BAB-03E8EF5F6F27}"&gt;&lt;/entrypoint&gt;&lt;/span&gt;.&lt;/blockquote&gt;5. To install Register.xml, open a command line window, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_24"&gt;cd&lt;/span&gt; to the the folder where you downloaded the Registration.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_25"&gt;xml&lt;/span&gt; file (type &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_26"&gt;cd&lt;/span&gt; C:\path\to\folder&lt;/span&gt;) and run:  &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:85%;"  &gt;&lt;br /&gt;&lt;br /&gt;C:\Windows\&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_27"&gt;ehome&lt;/span&gt;\&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_28"&gt;registermceapp&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_29"&gt;exe&lt;/span&gt; Registration.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_30"&gt;xml&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;This will put 4 new entry points in vista media center (or more or less, depending on how you edited the Registration.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_31"&gt;xml&lt;/span&gt; file) which you can see either using &lt;a href="http://www.xpmediacentre.com.au/community/plugins-addons-vista/25714-new-util-mc-menu-mender.html"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_32"&gt;MenuMender&lt;/span&gt;&lt;/a&gt; or in the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_33"&gt;vmc&lt;/span&gt; program library under &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_34"&gt;tv&lt;/span&gt;+movies. You can now use menu mender to put them wherever you please.&lt;br /&gt;&lt;br /&gt;And that's it. If you have questions, let me know. I might have skipped a step or two that I forgot or something. Just try to be as detailed as possible with your descriptions of the issues.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4060003091829965299-8972078435541008010?l=codeandconfig.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeandconfig.blogspot.com/feeds/8972078435541008010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeandconfig.blogspot.com/2009/02/if-you-would-like-to-have-multiple.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4060003091829965299/posts/default/8972078435541008010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4060003091829965299/posts/default/8972078435541008010'/><link rel='alternate' type='text/html' href='http://codeandconfig.blogspot.com/2009/02/if-you-would-like-to-have-multiple.html' title='MediaBrowser / VideoBrowser Hack for Multiple Entry Points'/><author><name>pako loko</name><uri>http://www.blogger.com/profile/03297416297865171996</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_AKpQYii06_0/SaCdA_BMFQI/AAAAAAAAAAM/P5o3XRUKekw/s72-c/context_menu.jpg' height='72' width='72'/><thr:total>2</thr:total></entry></feed>
