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

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

  1. GOD666

    GOD666 MDL Expert

    Aug 1, 2015
    1,957
    2,059
    60
    No worries, we all have those moments. Thanks for the update. Here is how my directory looks now (see screenshot).

    Capture.PNG
     
  2. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    3,262
    1,733
    120
    @s1ave77 If you put this code at beginning your command file is self-elevating. No need to run as admin.
    Code:
    @echo off
    color 1f
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    if "%errorlevel%" NEQ "0" (
        echo: Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        echo: UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
        "%temp%\getadmin.vbs" &    exit 
    )
    if exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs"
    )
    %windir%\system32\reg.exe query "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /v PROCESSOR_ARCHITECTURE | find /i "amd64" 1>nul || (
    echo ============================================================
    echo ERROR: This pack is for 64-bit systems.
    echo ============================================================
    echo.
    echo.
    echo Press any key to exit...
    pause >nul
    goto :eof
    )
    %~d0
    cd /d "%~dp0"
    cls
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    3,262
    1,733
    120
    I am not sure if you can run this on 32-bit. I have never tried. I think this code was originally written for a 64 bit program, so that part can be removed.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    3,262
    1,733
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. whatever127

    whatever127 MDL PHP Wizard

    Nov 9, 2012
    1,050
    7,357
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    3,262
    1,733
    120
    Nice. I always change to blue, also.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Not sure what you mean. Script is already self-elevated.

    This is a good case where exist dozens of ways to achieve. Yours is one, but is using temp file what i wanted to avoid.

    @abbodi1406 uses similiar attempt as one-liner:
    Code:
    cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || (  echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
    Still prefer the powershell way without any temp files:
    Code:
    (cd /d "%~dp0")&&(NET FILE||(powershell start-process -FilePath '%0' -verb runas)&&(exit /B)) >NUL 2>&1
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    3,262
    1,733
    120
    Thanks for clarifying, and sharing your code. I like!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Not any secret :D. Was afaik @BetonMAN in the old Rearm Wizard thread who presented the powershell way :good3:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Will do, when there is breath again :D.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    18,820
    19,028
    340
    @Atari800XL

    Umm... create a repo so that at least we can look & if possible, can contribute.

    :cool:
     
  12. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    @mkuba50 already created GitLab project, but is private atm.

    BTW: @adguard allowed doggie to use his FTP so JSON database is easier to maintain that way :good3::flowers: .

    Official Update rolling ....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    S-M-R-T M50 UUPDL v0.05.11 released :cool2:.

    +++ FEATURE UPDATE RELEASE +++



    v0.05.11
    --database for JSONs now is FTP hosted (thanks to adguard@rgadguard)
    --some little fixes and cleansing

    +++silently+++released+++update+++test+++phase+++

    v0.05.01
    --ARM builds celebrate re-appearance

    v0.04.22
    --almost last visual updates

    v0.04.15
    --some more visual updates
    --fixed error when database folder is empty
    --when folder is empty it will be recreated

    v0.04.01
    --some more visual updates
    --added database update from latest known state (atm maintained by me)

    +++silently+++released+++update+++test+++phase+++



    https://forums.mydigitallife.net/threads/uup-dump.75052/page-5#post-1368477
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. antonio8909

    antonio8909 MDL Guru

    Feb 16, 2014
    3,116
    1,517
    120
    Nice! :)
     
  15. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Code:
    [ USER ] [R]eplace current or [S]kip ?: R
    
    
    [ INFO ] UPDATER WILL START NOW. TOOL WILL CLOSE.
    
    
    [ USER ] PRESS ANY KEY >>
    Code:
    #####################
    [ INFO ] UUPDL UPDATE
    #####################
    [ INFO ] PLEASE WAIT.
    #####################
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Muggaen

    Muggaen MDL Addicted

    Dec 30, 2011
    746
    329
    30
    exelent tool, wonder if it can me maked all in one så after download it ask would you like to make it to iso now Y/N -maybe I just dream :) -
     
  17. antonio8909

    antonio8909 MDL Guru

    Feb 16, 2014
    3,116
    1,517
    120
    Did you run it for download the AiO? If you placed @abbodi1406 tool in the folder (just bin and convert-UUP.cmd) it will detect it and make the iso