[Help Us!] Windows native ISO support (2 Viewers)

Owlsroost

Development Group
  • Team MediaPortal
  • October 28, 2008
    5,539
    5,037
    Cambridge
    United Kingdom United Kingdom
    Country flag
    Yes, the 'AttachVirtualDisk' function is supported on Win 7, but not for mounting ISO images.

    The first line on the MSDN page says "Attaches a virtual hard disk (VHD) or CD or DVD image file (ISO)"
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    Hi,
    I have pushed some change because at first i wasn't able to build the branch. (using nuget to use the correct dll) ;)

    There is a fix also that @red5goahead detected here :
    https://forum.team-mediaportal.com/...-an-amd-video-card.132066/page-8#post-1153924

    I get some others issues, seems to be timing related (maybe impacted by anydvd or anti-virus) :
    Code didn't detect the newly mounted drive and then failed to open the ISO and when it happen, the unmount can't be done because drive letter is unknown from MP side.
    Opening the same ISO multiple times and i get random result lol.

    Not sure if we can use something else than PowerShell API or maybe force PowerShell API to use always the same drive.

    Thanks @regeszter :p
     
    Last edited:

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Hungary Hungary
    maybe force PowerShell API to use always the same drive.
    There is no parameter which pass the drive letter to the API. We can only get the result using Get-Volume. :(

    Seb,

    can you upload a log when the mount is failed?
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    There is no parameter which pass the drive letter to the API. We can only get the result using Get-Volume. :(
    Can't you use Set-Volume after mounting to change to the desired drive letter?
    Yep it's a really code idea, like it seems on my side to failed to get the return result of the mount (but the mouting is ok, i can see it in explorer) if we can force the drive letter right after the mounting when the drive letter set in config, we surely are good to go :)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    It's seems that adding :

    Code:
              ps.AddCommand("Mount-DiskImage")
                .AddParameter("ImagePath", IsoFile)
                .AddParameter("PassThru")
                .AddCommand("Set-Volume").AddParameter("DriveLetter", "M");
    And it works, the drive is set to M for testing and ISO seems to always mounted to M:
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    Ok, it seems to work :

    Code:
    using (var ps = PowerShell.Create())
            {
              Log.Debug("Mount-DiskImage {0}", IsoFile);
              ps.AddCommand("Mount-DiskImage")
                .AddParameter("ImagePath", IsoFile)
                .AddParameter("PassThru")
                .AddCommand("Set-Volume").AddParameter("DriveLetter", _Drive.Remove(_Drive.Length - 1));
              ps.Invoke();
              Log.Debug("Mount-DiskImage DriveLetter {0}", _Drive);
            }
    I will test more later :) need to go to bed lol
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    Finally, i have push the change, need to be tested, i have modified MP config to be able to set a drive letter not used by windows.
    Will see what happen :)
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 2)

    OP Similar threads Forum Replies Date
    vvulture Using Windows 10 MediaPortal 1 Talk 8
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    Dark Eyes Updated to Windows 10, now TVServer won't work Installation, configuration support 1
    rsbrux Operating System Win 10 vs. 8.1 Operating System 2
    M.Hulot Moving Pictures lässt sich nach Windows-Update nicht mehr öffnen Plugins & Erweiterungen 1
    O Analog Angel USB TV Tuner on Windows 7 Ultimate Newcomers Forum 7
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    R Problem with MP1 and WifiRemote Skins and Plugins Installer (MPEI) 8
    R Directx 9.0 June 2010 does not install on Windows 10 x64, ends up with weird failure / no debug file Installation, configuration support 0
    W windows 7 and mediaportal 1.22 and 1.23 installer problem General Support 2
    D [solved] Active Movie window General 2
    TLD Windows 10 1903 feature update General Support 3
    A Problem Windows 10 64 bit prof. Update auf Version 1903(gelöst) Installationsprobleme? 0
    T No TV after updating Windows 10 to latest Version 1903 / OS build 18362.175 (logs attached) General Support 2
    T Can Emprex 3009ARF III MCE Remote Control be used to toggle Fullscreen/Windowed mode?? Remotes 7
    P WMC on Windows 7 migrating to Media Portal on Windows 10 Newcomers Forum 5
    R [solved] Hide Windows 10 volume OSD Feature Requests 3
    F [solved] Mediaportal (1 oder 2) Installation mit Fehler bei DirectX9.0 unter Windows 10 Allgemeines Support- und Diskussionsforum 10
    HTPCSourcer [Rejected] Mouse movements and focus: Windows standards MediaPortal 2 3
    D [solved] HID remote for mp2 and w10 64 bit? using all tools: sony, cisco, homeworkx ng General 2
    Lehmden MP2 client for Windows 10 ARM, possible? Maybe an UWP version could do the trick... MediaPortal 2 11
    Rob Hexenmeister [solved] Latests Media Handler - Skinning an updating window or control Fanart Handler 26
    el Filou Is Windows Media Player still needed on Windows 10 ? MediaPortal 1 Talk 0
    A Enigma2 receiver channels on Windows PC with Media Portal help General Support 0
    W Playback stuttering after upgrade from MP1 on Windows 7 to MP2 on Windows 10 General 2
    Similar threads

























    Top Bottom