MDL Win 7 Tool for SiMPLiX UpdatePack AiO ISO (with install.wim/esd) Creation

Discussion in 'Windows 7' started by Enthousiast, Apr 16, 2019.

  1. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,944
    450
    Please post your results;):D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. @Enthousiast,
    the code used to elevate these scripts has an error.
    Even if the scripts are launched from an admin cmd, a new window with another uac prompt is opened.
    The code used is:
    Code:
    if not "%1"=="am_admin" powershell start -verb runas '%0' am_admin & exit /b
    
    it should be:
    Code:
    fsutil dirty query %systemdrive% 2>nul || if not "%1"=="am_admin" powershell start -verb runas '%0' am_admin & exit /b
    
     
  3. Mc Donie

    Mc Donie MDL Novice

    Jun 23, 2021
    13
    15
    0
    I tried W7_x64_AiO_2.7_Modern.cmd. The script worked for me without any errors. Is there a way to skip on creating other SKUs? I only want to create Professional, Ultimate, and Enterprise. Thank you.
     
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,944
    450
    Next update only ESU supported SKUs will be left (was already planning to do this but not without first upload the current updated scripts), saves me a lot of code updating when those are gone :D:D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,944
    450
    #1446 Enthousiast, Aug 17, 2021
    Last edited: Aug 17, 2021
    (OP)
    When i initially made this "tool" it was just a lining up of commands i previously ran manually, i've mentioned that my coding skills where next to none (some boolean which we had to use to program a traffic light situation (programming a NE555 IC, iirc) in school, a little bit of msbasic and turbo pascal 7 (after that i lost all interest in coding entirely)).

    From the start i planned to have some sort of sku toggling but again not at that level of coding, yet.

    If you can provide me with some actual code to do this i could check if i am capable of using it, in one way or the other.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Atenza

    Atenza MDL Junior Member

    Feb 16, 2011
    95
    70
    0
    How about the N editons and E editions?
    I would like to use the tool to upgrade these images.

    Thanks in advanced.
     
  7. #1448 Deleted member 1435102, Aug 18, 2021
    Last edited by a moderator: Aug 18, 2021
    :)
    Code:
    @echo off
    setlocal enabledelayedexpansion
    set "starter="
    set "hb="
    set "hp="
    set "pro=1"
    set "ent=1"
    set "ult=1"
    :menu
    cls
    if defined starter (
    echo [S] Starter: [On]
    ) else (
    echo [S] Starter: [Off]
    )
    if defined hb (
    echo [B] Home Basic: [On]
    ) else (
    echo [B] Home Basic: [Off]
    )
    if defined hp (
    echo [H] Home Premium: [On]
    ) else (
    echo [H] Home Premium: [Off]
    )
    if defined pro (
    echo [P] Professional: [On]
    ) else (
    echo [P] Professional: [Off]
    )
    if defined ent (
    echo [E] Enterprise: [On]
    ) else (
    echo [E] Enterprise: [Off]
    )
    if defined ult (
    echo [U] Ultimate: [On]
    ) else (
    echo [U] Ultimate: [Off]
    )
    choice /c sbhpeu0 /m "Toggle editions, or press 0 to start the process: " /n
    set "_errtemp=%errorlevel%"
    if [!_errtemp!]==[1] call :toggle starter
    if [!_errtemp!]==[2] call :toggle hb
    if [!_errtemp!]==[3] call :toggle hp
    if [!_errtemp!]==[4] call :toggle pro
    if [!_errtemp!]==[5] call :toggle ent
    if [!_errtemp!]==[6] call :toggle ult
    if [!_errtemp!]==[7] call :start
    goto menu
    :toggle
    if defined %~1 (
    set "%~1="
    ) else (
    set "%~1=1"
    )
    exit /b
    :start
    rem rest of the script...
    if defined pro (
    echo==============================================
    echo Creating Professional %warch% %StarterLang%...
    echo==============================================
    bin\imagex /mountrw "TEMP\wim\aio.install.wim" 1 "%SystemDrive%\AiO_Mount"
    %_dism% /Image:"%SystemDrive%\AiO_Mount" /Set-Edition:Professional
    bin\imagex /commit /append "%SystemDrive%\AiO_Mount" Windows 7 Professional
    bin\imagex /unmount "%SystemDrive%\AiO_Mount"
    set "imgcount="
    for /f "tokens=3 delims=: " %%i in ('%_wimlib% info TEMP\wim\aio.install.wim ^| findstr /c:"Image Count"') do set imgcount=%%i
    Bin\imagex.exe /flags "Professional" /info "TEMP\WIM\aio.install.wim" %imgcount% "Windows 7 Professional" "Windows 7 Professional SiMPLiXED"
    )
    rem add code for other editions similarly
    
    rem at the end, delete starter index if not chosen
    if not defined starter (
    for /f "tokens=3 delims=: " %%i in ('%_wimlib% info TEMP\wim\aio.install.wim ^| findstr /c:"Image Count"') do set imgcount=%%i
    for /l %%# in (2,1,%imgcount%) do %_wimlib% export "TEMP\WIM\aio.install.wim" %%# "TEMP\WIM\new.install.wim" --compress=lzx:100
    if exist TEMP\WIM\new.install.wim del TEMP\WIM\aio.install.wim
    ren TEMP\WIM\new.install.wim aio.install.wim
    )
    pause
    exit /b
    
    add code as needed :)
     
  8. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    8,076
    10,299
    270
    With a little adaption, the scripts could be changed to support N SKUs, although @Enthousiast won't be the one doing that.

    About E SKUs, unless you are in for a lot of pain, it's best to just forget it. Lots of time intensive tasks in Audit mode, capturing, re-deploying base images for the heavily adapted scripts. Not fun.
    One example: As Windows 7 E was barely released, there don't exist any "Windows 7 E with SP1" media, required by the script. You need to create these by yourself, first.
    Another: Windows 7 Starter E x64 and Windows 7 Enterprise E x86+x64 cannot be created, as the packages are missing.
    It goes on like this.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,944
    450
    @Exe Csrss thanks, will try to apply this to the scripts asap.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. jiafei2427

    jiafei2427 MDL Senior Member

    Nov 26, 2020
    262
    118
    10
    I look forward to merging X86's SKU & X64's SKU .
     
  11. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,944
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. @Enthousiast, don't mean to bother you but did you try the code I gave you?
     
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,944
    450
    Not yet, it's running in my mind and when it starts to stick in there, i can start to edit the scripts.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. zmeul86

    zmeul86 MDL Member

    Jun 17, 2014
    195
    79
    10
  15. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,944
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. jiafei2427

    jiafei2427 MDL Senior Member

    Nov 26, 2020
    262
    118
    10
    #1460 jiafei2427, Aug 31, 2021
    Last edited: Aug 31, 2021
    Isn't simplix7r2 integrated?
    EDIT:
    By @Enthousiast
    It's strange why it (the updatepack integrates the esu) doesn't work ?
    EDIT: