[SOLVED] Need help for script installation

Discussion in 'Windows Server' started by Chibi ANUBIS, Jul 4, 2025.

  1. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    1,283
    933
    60
    #1 Chibi ANUBIS, Jul 4, 2025
    Last edited: Jul 4, 2025
    Hello !

    I need to understand why the Windows Server installation does not offer me the choice of index and partitions after I have chosen my version of Server.

    I run this setup from a iso in virtual machine, I put choice.exe and the menu open properly, I select 1 or 2 and the installation is done automatically.


    Code:
    @ECHO OFF
    TITLE Install Windows Setup
    
    CLS
    ECHO.
    ECHO Please select a number :
    ECHO 1 for install Windows Server 2022
    ECHO 2 for install Windows Server 2025
    ECHO 3 for cancel
    CHOICE /N /C:123 /M "PICK A NUMBER (1, 2, or 3)"
    IF ERRORLEVEL 3 EXIT
    IF ERRORLEVEL 2 SET NUMBER=2025
    IF ERRORLEVEL 1 SET NUMBER=2022
    
    FOR %%I IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST "%%I:\sources\*.wim" SET DRIVE=%%I:
    
    ECHO.
    ECHO Running Windows Server %NUMBER% install...
    
    IF EXIST "%DRIVE%\sources\SERVER%NUMBER%.wim" (
    "%DRIVE%\setup.exe" /installfrom:"%DRIVE%\sources\SERVER%NUMBER%.wim"
    ) ELSE (
    "%~dp0setup.exe" /installfrom "%~dp0sources\SERVER%NUMBER%.wim"
    )
    EXIT
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    1,283
    933
    60
    Thank you ! Is fixed only with the EI.CFG
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...