[DISCUSSION] Patch WMC to run on Windows 10 final & possible alternatives

Discussion in 'Windows 10' started by ricktendo64, May 8, 2015.

  1. Kévin Chalet

    Kévin Chalet MDL Member

    Apr 11, 2019
    143
    125
    10
  2. Shortyportuguese

    Shortyportuguese MDL Senior Member

    Apr 3, 2019
    490
    138
    10
    Have any way to integrate WMC to a offline image?
     
  3. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150

    It takes literally 5 seconds to install WMC online, so IMO not worth the hassle.

    But If you want you can either

    • Mod the installation script yourself
    or
    • Use a setupcomplete.cmd script

    or the most obvious way

    • Boot the OS in audit mode (either using a VM, a native vhdx or a old school partition), install wmc, sysprep/generalize, capture the wim.
     
  4. Shortyportuguese

    Shortyportuguese MDL Senior Member

    Apr 3, 2019
    490
    138
    10
    I wonder just because the DVD APPX, I don't know if it can brake the Sysprep or make the installation "invalid" and I will not be able to generalize the installation again...
     
  5. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    I never tested personally

    Did you try using Garayand's or the original T-S installer?

    For the DVD app I don't think it's the culprit but it's easy to test just comment out/remove the part that installs it

    Perhaps it's becoming useless given it's meant to provide the mpeg2 support and transmissions are migrated/migrating to H264 or H265.

    Also the LAV codecs do the job pretty well.

    In short the dvd app is a nice to have thing, but not essential.
     
  6. ruslanshchur

    ruslanshchur MDL Senior Member

    Sep 13, 2020
    417
    95
    10
    Does multipoint server 2011 have BDA/TV/codecs?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    No
     
  8. ruslanshchur

    ruslanshchur MDL Senior Member

    Sep 13, 2020
    417
    95
    10
    Even SBS 2011 Essentials lacks BDA/TV/codecs? As it more belongs to WHS/Essentials family
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Delphiwizard

    Delphiwizard MDL Novice

    Sep 12, 2015
    39
    5
    0
    In the channel categories, most of all i use the 'Most used' category but sometimes i wished i could remove and add entries in that list myself.
    Does anybody know which file that list is stored in?
    Or is that list stored in registry?
     
  10. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    #10631 acer-5100, Jul 31, 2023
    Last edited: Jul 31, 2023
    As @Kévin Chalet told you, I have detailed extensively what's the situation on servers few message earlier, please read that message, instead of posting a question for every SKU of the universe.
     
  11. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    #10632 acer-5100, Jul 31, 2023
    Last edited: Jul 31, 2023
    Never looked to the matter, but it's stored in the main db. I have no idea about editing it directly (@Kévin Chalet is way more expert than me about that)

    But I think you can edit it doing a backup using Epg123 editing lineup.xmf inside it, and restoring the modified backup.

    The most viewed thing is part of favorites, and starts with something like this:

    Code:
    <favoriteLineups>
            <FavoriteLineup isAutoGenerated="true" name="I più visti" isAutoEnabled="true" priority="2147483647">
              <channels>
    (name="I più visti" is localized)
     
  12. ruslanshchur

    ruslanshchur MDL Senior Member

    Sep 13, 2020
    417
    95
    10
    #10633 ruslanshchur, Aug 1, 2023
    Last edited: Aug 1, 2023
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    Come on! Don't ape stupid opinions based on nothing.

    We can discuss about telemetry, about personal preferences about the GUI, but not about about "bugcrash".

    Server 2016 is better than 2012[r2], which are better than 2008R2 in practically any feature, starting from stability.

    The only thing worse than W7/2008R2 is the start menu, but installing Classic Shell requires 5 seconds to be installed.

    Everything else is better or hugely better, just to name few.... way faster boot time, vhdx support, vastly improved RemoteFX and Hyper V, deduplication, connected standby, LZX compression, cumulative updates, instant IP acquisition using the dhcp, SMB direct and so on, nested virtualization, WSL1/2, WSA and so on...
     
  14. ruslanshchur

    ruslanshchur MDL Senior Member

    Sep 13, 2020
    417
    95
    10
    UPD: I just found out in SBS 2011 Essentials iso that there is no BDA files, so, I am now installing Windows Storage Server 2008 R2 Essentials on my main laptop (yes I know that it have crappy 8GB RAM limit, but idc anyway, because I have only 8GB RAM in my main laptop anyway), so, I guess I can enjoy Windows Media Center
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. ruslanshchur

    ruslanshchur MDL Senior Member

    Sep 13, 2020
    417
    95
    10
    I do not need those anyway, what I really need is those:
    wmp/plex streaming, mc server hosting, backup, etc
    And whs 2011/storage server 2008 r2 essentials is enough for that
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    Use native vhd/vhdx and backup is matter of copying a single file using explorer or the copy command

    wmp/plex?

    For tv dvblink and/or npvr do the job way better.

    For recordings/movies wmc/kodi/mediaportal or even explorer + mpc-hc (or vlc) are more than enough. What's the point of plex/wmp?
     
  17. Delphiwizard

    Delphiwizard MDL Novice

    Sep 12, 2015
    39
    5
    0
    Thanks, so it is stored in mcepg3-0.db, being a developer i'll look how to acces it, probably sqlite or sqlserver database, if Kevin has more info it would be blad to hear.
     
  18. Kévin Chalet

    Kévin Chalet MDL Member

    Apr 11, 2019
    143
    125
    10
    If you don't want to use EPG123 and its restore feature as @acer-5100 suggested, the best approach for advanced scenarios is probably to do it programmatically, using the public WMC .NET APIs. I haven't tested it, but should be something like this:

    Code:
    <Project Sdk="Microsoft.NET.Sdk">
    
      <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>net48</TargetFramework>
        <LangVersion>11</LangVersion>
        <Nullable>enable</Nullable>
        <RuntimeIdentifier>win7-x64</RuntimeIdentifier>
      </PropertyGroup>
    
      <PropertyGroup>
        <AssemblySearchPaths>$(AssemblySearchPaths);$(SystemRoot)\ehome</AssemblySearchPaths>
      </PropertyGroup>
    
      <ItemGroup>
        <Reference Include="BDATunePIA" />
        <Reference Include="mcepg" />
        <Reference Include="mcstore" />
      </ItemGroup>
    
    </Project>
    
    Code:
    using System;
    using System.Linq;
    using System.Security.Cryptography;
    using System.Text;
    using Microsoft.MediaCenter.Guide;
    using Microsoft.MediaCenter.Store;
    
    using var algorithm = SHA256.Create();
    using var store = ObjectStore.Open(providerName: "Anonymous!User", password: Convert.ToBase64String(
        algorithm.ComputeHash(Encoding.Unicode.GetBytes(ObjectStore.GetClientId(createIfMissing: true)))));
    
    using var channels = new MergedChannels(store);
    using var lineups = new FavoriteLineups(store);
    
    var lineup = lineups.First(lineup =>
        lineup.IsAutoGenerated &&
        lineup.IsMostViewedLineup &&
        lineup.BaseLineup is not null &&
        lineup.BaseLineup.Name.Contains("DefaultLineup"));
    
    lineup.AddChannel(/* the channel you want to add, taken from the "channels" collection */);
    lineup.Update();
    
    That said, why not creating a custom favorite lineup directly from WMC (Settings -> TV -> Guide -> Edit Favorite Lineups)? You can give it the name you want and easily select the channels that will be attached to that collection.
     
  19. Delphiwizard

    Delphiwizard MDL Novice

    Sep 12, 2015
    39
    5
    0
    Actually a great idea, now why didn't i think of that myself o_O
    I have channels in categories per country, Belgium, UK, Holland but most of the time i use 'most used', but indeed i can create another one that contains those channels too.