[DISCUSSION] UUP dump - download Windows 10/11 UUPs with ease

Discussion in 'MDL Projects and Applications' started by Enthousiast, Sep 2, 2017.

  1. Paul Mercer

    Paul Mercer MDL Guru

    Apr 6, 2018
    2,145
    4,485
    90
    #4841 Paul Mercer, Mar 13, 2023
    Last edited: Mar 19, 2025
  2. Paul Mercer

    Paul Mercer MDL Guru

    Apr 6, 2018
    2,145
    4,485
    90
    admin rights are not mandatory, it just works for me without elevated rights on 22621 Host OS
    I've added auto elevation in other scripts which really requires it
     
  3. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,551
    1,678
    60
    My bad. I got an error message when executing the mlink statements of the script at #4841; but the applications worked (the mlink don't figure in the latest release).; admin rights are not requested.
     
  4. Paul Mercer

    Paul Mercer MDL Guru

    Apr 6, 2018
    2,145
    4,485
    90
  5. Paul Mercer

    Paul Mercer MDL Guru

    Apr 6, 2018
    2,145
    4,485
    90
    if Dev mode is disabled on your OS then that's the reason why I wasn't aware about this mess
     
  6. El_Heffe

    El_Heffe MDL Member

    Jul 16, 2007
    202
    90
    10
    In the latest version, the file "uupdump-run-website.cmd" has been replaced by "uupdump-run-apache.cmd".

    Slightly confusing, but it works.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Paul Mercer

    Paul Mercer MDL Guru

    Apr 6, 2018
    2,145
    4,485
    90
    PHP built-in server was replaced with much more faster and way more reliable Apache HTTP Server https://forums.mydigitallife.net/posts/1781105
    you can find old scripts in the "scripts" folder as a fallback if Apache isn't working for some reason
     
  8. El_Heffe

    El_Heffe MDL Member

    Jul 16, 2007
    202
    90
    10
    "uupdump-run-apache.cmd" works just fine. It was just confusing for a minute because of the name change.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. armond

    armond MDL Addicted

    Jun 16, 2008
    756
    253
    30
  10. Paul Mercer

    Paul Mercer MDL Guru

    Apr 6, 2018
    2,145
    4,485
    90
  11. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,602
    60
    #4856 inTerActionVRI, Apr 1, 2023
    Last edited: Apr 1, 2023
    But this problem above occurred because of downloading the version of "uup-converter-wimlib" in the old version overwriting the version you downloaded manually. so it was necessary to delete these lines. Currently, this procedure is no longer necessary.

    However, you can modify the script to use PwSh if you don't have native PowerShell 5.1 on your system.

    Code:
    where.exe /F PowerShell.exe >nul 2>&1 && ( set "PSexe=PowerShell.exe" )
    if "%PSexe%" equ "" where.exe /F PwSh.exe >nul 2>&1 && ( set "PSexe=PwSh.exe" )
    %PSexe% -NoProfile -ExecutionPolicy Unrestricted .\files\depends_win.ps1 || (pause & exit /b 1)
    
    or
    Code:
    where.exe /F PowerShell.exe >nul 2>&1 && ( set "PSexe=PowerShell.exe" )
    if "%PSexe%" equ "" where.exe /F PwSh.exe >nul 2>&1 && ( set "PSexe=PwSh.exe" )
    %PSexe% -NoProfile -ExecutionPolicy Unrestricted .\files\depends_win.ps1 -ForDownload || (pause & exit /b 1)
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,602
    60
    That's curious. Usually the native Powershell is 5.1 although the folder has the 1.0 nomenclature.
    What is your system?

    For your case you can invert the code.
    Code:
    where.exe /F PwSh.exe >nul 2>&1 && ( set "PSexe=PwSh.exe" )
    if "%PSexe%" equ "" where.exe /F PowerShell.exe >nul 2>&1 && ( set "PSexe=PowerShell.exe" )
    %PSexe% -NoProfile -ExecutionPolicy Unrestricted .\files\depends_win.ps1 || (pause & exit /b 1)
    
    or
    Code:
    where.exe /F PwSh.exe >nul 2>&1 && ( set "PSexe=PwSh.exe" )
    if "%PSexe%" equ "" where.exe /F PowerShell.exe >nul 2>&1 && ( set "PSexe=PowerShell.exe" )
    %PSexe% -NoProfile -ExecutionPolicy Unrestricted .\files\depends_win.ps1 -ForDownload || (pause & exit /b 1)
    
    So it will always use Powershell 7.x when present. If not, native Powershell will be used.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. gjohnson5

    gjohnson5 MDL Member

    Jul 25, 2013
    132
    55
    10