OSIM installation of a Windows 11 24H2 image is failing with error : "Windows 11 installation has failed" and
ERROR: Setup of <image_name> did not run correctly.
or Installation hangs during Client Automation Agent installation.
Client Automation 14.5 CU7
Windows Setup has changed in Windows 11 24H2 and some modifications should be made in OSIM script files.
Previous Solution/workaround before publication of patch 99112377 was :
1- Edit the file C:\Program Files (x86)\CA\DSM\osimips\os-template\updates\winpe10x64\amd64\ca-osim\osimrun.cmd on Domain Manager and add this line :
format u: /FS:FAT32 /X /Q /Y
in this part :
:normalOS
rem ++++ normal OS setup job
rem ++++ format the complete partition
if "%$BootServerNFS$%"=="no" (set FILESYSTEM=NTFS) else (set FILESYSTEM=FAT32)
format c: /FS:%FILESYSTEM% /X /Q /V:OSIM_VOL /Y
if %ERRORLEVEL% NEQ 0 (
echo Failed to format C: volume. Is disk marked read-only or path not available?
goto end
)
format u: /FS:FAT32 /X /Q /Y
rem ++++ copies CA tools to c: ++++
mkdir c:\ca-osim
xcopy x:\amd64\ca-osim\* c:\ca-osim /Y /E
2- Then update the Boot Image to include the updated file osimrun.cmd in the Boot Image :
3- With this new Boot Image, Windows 11 24H2 could be installed but installation hangs during SD Agent installation (this problem should be resolved when certification of Windows 11 24H2 will be completed).
Set InstallAgent = No in OSIM job
SD Agent could be installed later using deployment Wizard