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

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

  1. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    the thing about versioning is I don't feel like I'm a maintainer of this mess
    in a perfect world we would host it on GitHub and maybe even update uupdump.net to the current code, but it's not possible at this moment

    anyway, I'm going to drop Electron app and PHP-built-in server support and release new version based on PHP & Apache HTTP server (it's much faster and way more stable), version number in filename and some scripts wouldn't hurt
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    #4842 Paul Mercer, Mar 13, 2023
    Last edited: Nov 29, 2024
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,479
    1,474
    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.
     
  5. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    #4846 Paul Mercer, Mar 13, 2023
    Last edited: Mar 13, 2023
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    if Dev mode is disabled on your OS then that's the reason why I wasn't aware about this mess
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. El_Heffe

    El_Heffe MDL Member

    Jul 16, 2007
    200
    87
    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...
  8. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. El_Heffe

    El_Heffe MDL Member

    Jul 16, 2007
    200
    87
    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...
  10. armond

    armond MDL Addicted

    Jun 16, 2008
    736
    235
    30
  11. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    #4854 Paul Mercer, Mar 18, 2023
    Last edited: Mar 18, 2023
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #4857 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)
    
     
  13. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    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.
     
  14. gjohnson5

    gjohnson5 MDL Member

    Jul 25, 2013
    132
    55
    10