@SunLion Hello, There is a path error in the script you provided for 26H1, and because of this, the update isn't working. Here's the line: “Data is written twice”—that's the error. Code: FOR /F "eol=; tokens=1,2*" %%i in (all.txt) do if not exist "%~dp0DATA\UUP\%%i" echo Downloading: "%%i" & "%~dp0DATA\DATA\tools\%HostArchitecture%\wget.exe" -q --show-progress --no-hsts --no-check-certificate -O "%%i" "%%j" Once you fix this line, everything works normally. Code: FOR /F "eol=; tokens=1,2*" %%i in (all.txt) do if not exist "%~dp0DATA\UUP\%%i" echo Downloading: "%%i" & "%~dp0DATA\tools\%HostArchitecture%\wget.exe" -q --show-progress --no-hsts --no-check-certificate -O "%%i" "%%j"
Got it, thanks! By the way: it’s not just about English support, because the script doesn’t care at all what language the image is in. The issue here is either with the image you used (it no longer contains these “Capabilities,” or they have different names in it than the ones on my list). But anyway, thank you very much for your help; I’ll take another look at my code just in case...
========================= 2xH2_Creator_17.2 ========================= Update to 26x00.8973 In this new version, several code snippets suggested by @mustafa gotr have been adopted We are very grateful to him for this Since we made several modifications and did not test every possible variable, errors may still occur If this happens, please let us know - Added new code to identify ISO images for selection (thanks to @mustafa gotr) - Added "Set Default Values" code, which replaces the questions at the beginning of the script (thanks to @mustafa gotr) - Added "Loading the Advanced Package Selector (GUI)" code (thanks to @mustafa gotr) - Removed the boot.wim update—which was an attempt to resolve the issue with Ventoy—as it turned out not to be the cause - Adjusted MAS codes for script copying options to the OEM folder or install.wim - Folder layout modified - Various minor modifications implemented Test with: - pt-br_windows_11_enterprise_ltsc_2024_x64_dvd_2bb6b75b_2.iso - 26100.1742.240909-0928.GE_RELEASE_SVC_REFRESH_CLIENTBUSINESS_VOL_X64FRE_PT-BR.ISO https://forums.mydigitallife.net/th...to-classic-legacy-windows.90039/#post-1872013 Enjoy
Thanks to Mustafa Gotr (much better known on another site) and of course to the man who has been tirelessly providing us with this wonderful script for a long time, SunLion . For the work put into some things, the reward is money. For the work put into other things, the reward is just one word, but said from the heart and is much more valuable than money. And it is: Thank you .
Hello, @SunLion I tested the latest script and here’s what I observed: 1- if “%DisableStore%”==“1” echo Disable Store if “%DisableStore%”==‘0’ echo Enable Store—in both cases, the store is removed. I resolved this by adding the store to the “Remove ProvisionedAppxPackages” section. 2- The “if exist” statement was used incorrectly on the OneDrive blog; I did it this way: Code: ECHO. ECHO. echo. echo =========================================================== ECHO Remove OneDrive echo =========================================================== reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\OneDrive" /v "PreventNetworkTrafficPreUserSignIn" /t REG_DWORD /d 1 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSync" /t REG_DWORD /d 1 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSyncNGSC" /t REG_DWORD /d 1 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableMeteredNetworkFileSync" /t REG_DWORD /d 1 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableLibrariesDefaultSaveToOneDrive" /t REG_DWORD /d 1 /f REM reg delete "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSyncNGSC" /f reg query "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "OneDriveSetup" >nul 2>&1 && reg delete "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "OneDriveSetup" /f If Exist "%~dp0mount\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" del /q /f "%~dp0mount\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk">nul If Exist "%~dp0mount\Windows\System32\OneDriveSetup.exe" del /q /f "%~dp0mount\Windows\System32\OneDriveSetup.exe" If Exist "%~dp0mount\Windows\SysWOW64\OneDriveSetup.exe" del /q /f "%~dp0mount\Windows\SysWOW64\OneDriveSetup.exe" 3- If “%RemoveClient%”==‘1’, echo “Remove ClickToDo - GetStarted - WindowsBackup,” the search icon definitely doesn’t work. These are my observations; I wanted to share them in the hope that they’ll be helpful. Thank you for your work. Everything went very well; my install.wim size is now 4.90 GB. My install.wim is 4.90 GB, yes, but I made significant changes—removing Edge and disabling Defender—which is why the size is so high.
Yes, the search icon doesn't work if that option is enabled. Thanks for the feedback. I'll check and fix it. Best regards,
I noticed one more thing: in some places it said “Integratestore” and in others “IntegratestoreLTSC,” so I made them all the same. Changes I made: 852-853--- IntegrateStore → IntegrateStoreLTSC 2395--- IntegrateStore → IntegrateStoreLTSC and: My list is a little different, so I wanted to share it as an example. Code: echo. ECHO. ECHO ============================================================ ECHO Remove Provisioned AppxPackages ECHO ============================================================ set "NoRemUWPapps=Microsoft.SecHealthUI,Microsoft.DesktopAppInstaller" set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.HEIFImageExtension,Microsoft.HEVCVideoExtension,Microsoft.VP9VideoExtensions,Microsoft.WebMediaExtensions,Microsoft.WebpImageExtension" set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.Windows.CloudExperienceHost,Microsoft.AccountsControl,Microsoft.XboxIdentityProvider" set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.NET.Native,Microsoft.UI.Xaml,Microsoft.VCLibs.140.00,Microsoft.WindowsAppRuntime" if "%DisableStore%"=="0" set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.WindowsStore,Microsoft.StorePurchaseApp,Microsoft.Services.Store.Engagement" if "%EnableMediaPlayer%"=="1" set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.ZuneMusic" if "%EnableClassicCalculator%"=="0" set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.WindowsCalculator" if "%RemoveEdge%"=="0" set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.MicrosoftEdge,MicrosoftEdge,Microsoft.Win32WebViewHost" for /f "tokens=2 delims=: " %%a in ('start "" /b "%DISM%" /English /Image:"%~dp0mount" /Get-ProvisionedAppxPackages ^| find "PackageName"') do ( set "RemoveUWPapp=%%a" for %%u in (%NoRemUWPapps%) do ( echo %%a | findstr /l /i /c:"%%u" >nul 2>&1 && set RemoveUWPapp= ) if not "!RemoveUWPapp!"=="" ( ECHO !RemoveUWPapp! "%DISM11%" /English /quiet /Image:"%~dp0mount" /Remove-ProvisionedAppxPackage /PackageName:"!RemoveUWPapp!" ) )
OK, I see you've added your preferences to that block. In this version, I opted to remove all `ProvisionedAppxPackages` and perform the update using newer files within the `Updating ProvisionedAppxPackages` block. The only exception is for BUSINESS images, which I observed were already being updated with the recent packages.
There's one more important thing—please check the :skipNetfx3 tag. It looks like it's in the wrong place.
I find in my tests the search icon doesn't automatically show, just a matter of toggling in taskbar settings.
I'll check it out... That seems correct to me, as this tag begins with the choice of whether or not to enable netfx3 and ends after the re-application of the net481 and LCU updates. In other words, if the choice is not to enable netfx3, the updates do not need to be reinstalled. Keep in mind that we are talking about the "2xH2_Creator_17.2" script here.
There are a few situations that cause this: 1 - If you apply the custom WPI settings 2 - If you choose to disable Windows Search 3 - If you choose RemoveClient=1
You're absolutely right—I didn't notice that... I went over the entire script and checked all the code line by line... I think I'll finish it today. Thank you.