Advertisement
Lex247

W10UI_1017r_debug

Mar 19th, 2022
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.00 KB | None | 0 0
  1.  
  2. >title Installer for Windows NT 10.0 Updates
  3.  
  4. >set "_dLog=C:\Windows\Logs\DISM"
  5.  
  6. >cd /d "!_work!"
  7.  
  8. >if not exist "W10UI.ini" goto :proceed
  9.  
  10. >find /i "[W10UI-Configuration]" W10UI.ini || goto :proceed
  11.  
  12. ---------- W10UI.INI
  13. [W10UI-Configuration]
  14.  
  15. >setlocal DisableDelayedExpansion
  16.  
  17. >for %# in (target repo dismroot net35 net35source cleanup resetbase winre lcuwinre skipbootfiles skipedge _cabdir mountdir winremount wim2esd wim2swm iso isodir delete_source autostart) do (call :ReadINI %# )
  18.  
  19. >(call :ReadINI target )
  20.  
  21. >find /i "target " W10UI.ini 1>nul || goto :eof
  22.  
  23. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "target " W10UI.ini') do call set "target=%~B"
  24.  
  25. >call set "target="
  26.  
  27. >goto :eof
  28.  
  29. >(call :ReadINI repo )
  30.  
  31. >find /i "repo " W10UI.ini 1>nul || goto :eof
  32.  
  33. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "repo " W10UI.ini') do call set "repo=%~B"
  34.  
  35. >call set "repo="
  36.  
  37. >goto :eof
  38.  
  39. >(call :ReadINI dismroot )
  40.  
  41. >find /i "dismroot " W10UI.ini 1>nul || goto :eof
  42.  
  43. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "dismroot " W10UI.ini') do call set "dismroot=%~B"
  44.  
  45. >call set "dismroot=dism.exe"
  46.  
  47. >goto :eof
  48.  
  49. >(call :ReadINI net35 )
  50.  
  51. >find /i "net35 " W10UI.ini 1>nul || goto :eof
  52.  
  53. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "net35 " W10UI.ini') do call set "net35=%~B"
  54.  
  55. >call set "net35=0"
  56.  
  57. >goto :eof
  58.  
  59. >(call :ReadINI net35source )
  60.  
  61. >find /i "net35source " W10UI.ini 1>nul || goto :eof
  62.  
  63. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "net35source " W10UI.ini') do call set "net35source=%~B"
  64.  
  65. >call set "net35source="
  66.  
  67. >goto :eof
  68.  
  69. >(call :ReadINI cleanup )
  70.  
  71. >find /i "cleanup " W10UI.ini 1>nul || goto :eof
  72.  
  73. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "cleanup " W10UI.ini') do call set "cleanup=%~B"
  74.  
  75. >call set "cleanup=1"
  76.  
  77. >goto :eof
  78.  
  79. >(call :ReadINI resetbase )
  80.  
  81. >find /i "resetbase " W10UI.ini 1>nul || goto :eof
  82.  
  83. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "resetbase " W10UI.ini') do call set "resetbase=%~B"
  84.  
  85. >call set "resetbase=1"
  86.  
  87. >goto :eof
  88.  
  89. >(call :ReadINI winre )
  90.  
  91. >find /i "winre " W10UI.ini 1>nul || goto :eof
  92.  
  93. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "winre " W10UI.ini') do call set "winre=%~B"
  94.  
  95. >call set "winre=0"
  96.  
  97. >call set "winre=0"
  98.  
  99. >goto :eof
  100.  
  101. >(call :ReadINI lcuwinre )
  102.  
  103. >find /i "lcuwinre " W10UI.ini 1>nul || goto :eof
  104.  
  105. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "lcuwinre " W10UI.ini') do call set "lcuwinre=%~B"
  106.  
  107. >call set "lcuwinre=0"
  108.  
  109. >goto :eof
  110.  
  111. >(call :ReadINI skipbootfiles )
  112.  
  113. >find /i "skipbootfiles " W10UI.ini 1>nul || goto :eof
  114.  
  115. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "skipbootfiles " W10UI.ini') do call set "skipbootfiles=%~B"
  116.  
  117. >call set "skipbootfiles=1"
  118.  
  119. >goto :eof
  120.  
  121. >(call :ReadINI skipedge )
  122.  
  123. >find /i "skipedge " W10UI.ini 1>nul || goto :eof
  124.  
  125. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "skipedge " W10UI.ini') do call set "skipedge=%~B"
  126.  
  127. >call set "skipedge=0"
  128.  
  129. >goto :eof
  130.  
  131. >(call :ReadINI _cabdir )
  132.  
  133. >find /i "_cabdir " W10UI.ini 1>nul || goto :eof
  134.  
  135. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "_cabdir " W10UI.ini') do call set "_cabdir=%~B"
  136.  
  137. >call set "_cabdir=W10UItemp"
  138.  
  139. >goto :eof
  140.  
  141. >(call :ReadINI mountdir )
  142.  
  143. >find /i "mountdir " W10UI.ini 1>nul || goto :eof
  144.  
  145. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "mountdir " W10UI.ini') do call set "mountdir=%~B"
  146.  
  147. >call set "mountdir=W10UImount"
  148.  
  149. >goto :eof
  150.  
  151. >(call :ReadINI winremount )
  152.  
  153. >find /i "winremount " W10UI.ini 1>nul || goto :eof
  154.  
  155. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "winremount " W10UI.ini') do call set "winremount=%~B"
  156.  
  157. >call set "winremount=W10UImountre"
  158.  
  159. >goto :eof
  160.  
  161. >(call :ReadINI wim2esd )
  162.  
  163. >find /i "wim2esd " W10UI.ini 1>nul || goto :eof
  164.  
  165. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "wim2esd " W10UI.ini') do call set "wim2esd=%~B"
  166.  
  167. >call set "wim2esd=0"
  168.  
  169. >goto :eof
  170.  
  171. >(call :ReadINI wim2swm )
  172.  
  173. >find /i "wim2swm " W10UI.ini 1>nul || goto :eof
  174.  
  175. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "wim2swm " W10UI.ini') do call set "wim2swm=%~B"
  176.  
  177. >call set "wim2swm=0"
  178.  
  179. >goto :eof
  180.  
  181. >(call :ReadINI iso )
  182.  
  183. >find /i "iso " W10UI.ini 1>nul || goto :eof
  184.  
  185. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "iso " W10UI.ini') do call set "iso=%~B"
  186.  
  187. >call set "iso=0"
  188.  
  189. >goto :eof
  190.  
  191. >(call :ReadINI isodir )
  192.  
  193. >find /i "isodir " W10UI.ini 1>nul || goto :eof
  194.  
  195. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "isodir " W10UI.ini') do call set "isodir=%~B"
  196.  
  197. >call set "isodir="
  198.  
  199. >goto :eof
  200.  
  201. >(call :ReadINI delete_source )
  202.  
  203. >find /i "delete_source " W10UI.ini 1>nul || goto :eof
  204.  
  205. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "delete_source " W10UI.ini') do call set "delete_source=%~B"
  206.  
  207. >call set "delete_source=0"
  208.  
  209. >goto :eof
  210.  
  211. >(call :ReadINI autostart )
  212.  
  213. >find /i "autostart " W10UI.ini 1>nul || goto :eof
  214.  
  215. >for /F "skip=2 tokens=1* delims==" %A in ('find /i "autostart " W10UI.ini') do call set "autostart=%~B"
  216.  
  217. >call set "autostart=0"
  218.  
  219. >goto :eof
  220.  
  221. >setlocal EnableDelayedExpansion
  222.  
  223. >goto :proceed
  224.  
  225. >if 1 NEQ 0 set autostart=1
  226.  
  227. >if "!repo!" == "" set "repo=!_work!"
  228.  
  229. >if "!dismroot!" == "" set "DismRoot=dism.exe"
  230.  
  231. >if "!_cabdir!" == "" set "_CabDir=W10UItemp"
  232.  
  233. >if "!mountdir!" == "" set "MountDir=W10UImount"
  234.  
  235. >if "!winremount!" == "" set "WinreMount=W10UImountre"
  236.  
  237. >if "0" == "" set Net35=1
  238.  
  239. >if "1" == "" set Cleanup=0
  240.  
  241. >if "1" == "" set ResetBase=0
  242.  
  243. >if "0" == "" set WinRE=1
  244.  
  245. >if "0" == "" set LCUwinre=0
  246.  
  247. >if "1" == "" set SkipBootFiles=0
  248.  
  249. >if "0" == "" set SkipEdge=0
  250.  
  251. >if "0" == "" set ISO=1
  252.  
  253. >if "1" == "" set AutoStart=0
  254.  
  255. >if "0" == "" set Delete_Source=0
  256.  
  257. >if "0" == "" set wim2esd=0
  258.  
  259. >if "0" == "" set wim2swm=0
  260.  
  261. >set _ADK=0
  262.  
  263. >set "showdism=Host OS"
  264.  
  265. >set "_dism2=dism.exe /English /NoRestart /ScratchDir"
  266.  
  267. >if /I not "!dismroot!" == "dism.exe" (
  268. set _ADK=1
  269. set "showdism=dism.exe"
  270. set _dism2="dism.exe" /English /NoRestart /ScratchDir
  271. )
  272.  
  273. >set _drv=E:
  274.  
  275. >if /I "W10UI" == "W10UI" set "_cabdir=E:\W10UItemp"
  276.  
  277. >set _ntf=NTFS
  278.  
  279. >if /I not "E:" == "C:" if 1 EQU 1 for /F "tokens=2 delims==" %# in ('"wmic volume where DriveLetter='E:' get FileSystem /value"') do set "_ntf=%#"
  280.  
  281. >set "_ntf=NTFS
  282. "
  283.  
  284. >if /I not "E:" == "C:" if 1 EQU 0 for /F %# in ('powershell -nop -c "(([WMISEARCHER]'Select * from Win32_Volume where DriveLetter=\"E:\"').Get()).FileSystem"') do set "_ntf=%#"
  285.  
  286. >if /I not "NTFS" == "NTFS" set _drv=C:
  287.  
  288. >if /I "W10UI" == "W10UI" set "mountdir=E:\W10UImount"
  289.  
  290. >if /I "W10UI" == "W10UI" set "winremount=E:\W10UImountre"
  291.  
  292. >if "p" == "\" set "_cabdir=!_cabdir:~0,-1!"
  293.  
  294. >if "p" == ":" set "_cabdir=!_cabdir!\"
  295.  
  296. >if not "!_cabdir!" == "!_cabdir: =!" set "_cabdir=!_cabdir: =!"
  297.  
  298. >if "t" == "\" set "mountdir=!mountdir:~0,-1!"
  299.  
  300. >if "t" == ":" set "mountdir=!mountdir!\"
  301.  
  302. >if not "!mountdir!" == "!mountdir: =!" set "mountdir=!mountdir: =!"
  303.  
  304. >set "mountdir=!mountdir!_5653"
  305.  
  306. >set "winremount=!winremount!_4889"
  307.  
  308. >set "_cabdir=!_cabdir!_19091"
  309.  
  310. >if defined cmd_target if defined cmd_tmpdir if exist "!cmd_target!\Windows\regedit.exe" (
  311. set "Target=!cmd_target!"
  312. set "_cabdir=!cmd_tmpdir!"
  313. set "repo=!_work!"
  314. if defined cmd_source if exist "!cmd_source!\sxs\*netfx3*.cab" set "Net35Source=!cmd_source!\sxs"
  315. if defined cmd_source if exist "!cmd_source!\setup.exe" set _offdu=1
  316. set AutoStart=1
  317. set _embd=1
  318. )
  319.  
  320. >if 0 EQU 0 if exist "!_cabdir!\" (
  321. echo.
  322. echo ============================================================
  323. echo Cleaning temporary extraction folder...
  324. echo ============================================================
  325. echo.
  326. rmdir /s /q "!_cabdir!\"
  327. )
  328.  
  329. >set _init=1
  330.  
  331. >set tmpssu=
  332.  
  333. >set _fixEP=0
  334.  
  335. >set _actEP=0
  336.  
  337. >set _SrvEdt=0
  338.  
  339. >set _DNF=0
  340.  
  341. >set directcab=0
  342.  
  343. >set dvd=0
  344.  
  345. >set wim=0
  346.  
  347. >set offline=0
  348.  
  349. >set online=0
  350.  
  351. >set copytarget=0
  352.  
  353. >set imgcount=0
  354.  
  355. >set wimfiles=0
  356.  
  357. >set keep=0
  358.  
  359. >set targetname=0
  360.  
  361. >set _skpd=0
  362.  
  363. >set _skpp=0
  364.  
  365. >set uupboot=0
  366.  
  367. >if 1 == 1 if "!target!" == "" if exist "*.wim" (for /F "tokens=* delims=" %# in ('dir /b /a:-d "*.wim"') do set "target=!_work!\%~nx#" )
  368.  
  369. >if "!target!" == "" set "target=C:"
  370.  
  371. >if ":" == "\" set "target=!target:~0,-1!"
  372.  
  373. >if /I "!target!" == "C:" (
  374. if /I amd64 == x86 (set arch=x86 ) else if /I amd64 == amd64 (set arch=x64 ) else (set arch=arm64 )
  375. if 1 == 1 (goto :check ) else (goto :mainmenu )
  376. )
  377.  
  378. >if /I "!target!" == "C:" (
  379. set _build=22000
  380. reg.exe query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v W10UIclean && (set onlineclean=1 & set online=1 & set cleanup=1 )
  381. reg.exe query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v W10UIrebase && (set onlineclean=1 & set online=1 & set cleanup=1 & set resetbase=1 )
  382. )
  383.  
  384.  
  385. ERROR: The system was unable to find the specified registry key or value.
  386.  
  387. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration
  388. W10UIrebase REG_DWORD 0x1
  389.  
  390.  
  391. >if defined onlineclean goto :main2board
  392.  
  393. >if 0 NEQ 0 (echo.) else if 1 NEQ 0 (echo.) else ()
  394.  
  395.  
  396. >echo ============================================================
  397. ============================================================
  398.  
  399. >echo Running W10UI v10.17
  400. Running W10UI v10.17
  401.  
  402. >echo ============================================================
  403. ============================================================
  404.  
  405. >if 1 == 1 (
  406. net stop trustedinstaller
  407. net stop wuauserv
  408. del /f /q C:\Windows\Logs\CBS\*
  409. )
  410. The Windows Modules Installer service is not started.
  411.  
  412. More help is available by typing NET HELPMSG 3521.
  413.  
  414. The Windows Update service is not started.
  415.  
  416. More help is available by typing NET HELPMSG 3521.
  417.  
  418.  
  419. >if not exist "C:\Windows\Logs\DISM\" mkdir "C:\Windows\Logs\DISM"
  420.  
  421. >if 0 EQU 0 del /f /q C:\Windows\Logs\DISM\*
  422.  
  423. >if 0 EQU 0 del /f /q C:\Windows\Logs\MoSetup\*
  424.  
  425. >if defined onlineclean (
  426. if exist "C:\Windows\WinSxS\pending.xml" (
  427. echo.
  428. echo ============================================================
  429. echo ERROR: you must restart the system first before cleaning up
  430. echo ============================================================
  431. echo.
  432. echo.
  433. echo Press any key to exit.
  434. goto :eof
  435. )
  436. set verb=0
  437. set "mountdir=!target!"
  438. set dismtarget=/online
  439. set _build=22000
  440. reg.exe delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v W10UIclean /f
  441. reg.exe delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v W10UIrebase /f
  442. if not exist "!_cabdir!\" mkdir "!_cabdir!"
  443. call :cleanup
  444. goto :fin
  445. )
  446. ERROR: The system was unable to find the specified registry key or value.
  447. The operation completed successfully.
  448.  
  449.  
  450. >set savc=0 & set savr=1
  451.  
  452. >if 22000 GEQ 18362 (set savc=3 & set savr=3 )
  453.  
  454. >if exist "!mumtarget!\Windows\Servicing\Packages\*WinPE-LanguagePack*.mum" (
  455. if 0 == 1 (
  456. echo.
  457. echo ============================================================
  458. echo Resetting WinPE image base...
  459. echo ============================================================
  460. )
  461. call :MeltdownSpectre
  462. if 22000 GEQ 16299 if /I not x64 == arm64 (
  463. set ksub=SOFTWIM
  464. reg.exe load HKLM\!ksub! "!mumtarget!\Windows\System32\Config\SOFTWARE"
  465. reg.exe add HKLM\!ksub!\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v SupersededActions /t REG_DWORD /d 3 /f
  466. reg.exe add HKLM\!ksub!\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v DisableComponentBackups /t REG_DWORD /d 1 /f
  467. reg.exe unload HKLM\!ksub!
  468. if 1 EQU 0 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Cleanup-Image /StartComponentCleanup
  469. if !errorlevel! EQU 1726 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Get-Packages
  470. )
  471. if 1 EQU 0 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Cleanup-Image /StartComponentCleanup /ResetBase
  472. if !errorlevel! EQU 1726 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Get-Packages
  473. call :cleanmanual
  474. goto :eof
  475. )
  476.  
  477. >if 1 == 0 call :cleanmanual & goto :eof
  478.  
  479. >if exist "!mumtarget!\Windows\WinSxS\pending.xml" (
  480. if 1 == 1 (
  481. if 1 == 0 (set rValue=W10UIclean ) else (set rValue=W10UIrebase )
  482. reg.exe add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v !rValue! /t REG_DWORD /d 1 /f
  483. goto :eof
  484. )
  485. call :cleanmanual & goto :eof
  486. )
  487.  
  488. >if 1 == 0 (
  489. set ksub=SOFTWIM
  490. reg.exe load HKLM\!ksub! "!mumtarget!\Windows\System32\Config\SOFTWARE"
  491. ) else (set ksub=SOFTWARE )
  492.  
  493. >if 1 == 0 (
  494. echo.
  495. echo ============================================================
  496. echo Cleaning up OS image...
  497. echo ============================================================
  498. if /I not x64 == arm64 (
  499. reg.exe add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v DisableResetbase /t REG_DWORD /d 1 /f
  500. reg.exe add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v SupersededActions /t REG_DWORD /d 3 /f
  501. )
  502. if 1 == 0 (
  503. if /I amd64 == x86 if /I not x64 == x86 reg.exe save HKLM\SOFTWARE "!mumtarget!\Windows\System32\Config\SOFTWARE2"
  504. reg.exe unload HKLM\!ksub!
  505. if /I amd64 == x86 if /I not x64 == x86 move /y "!mumtarget!\Windows\System32\Config\SOFTWARE2" "!mumtarget!\Windows\System32\Config\SOFTWARE"
  506. )
  507. dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Cleanup-Image /StartComponentCleanup
  508. if !errorlevel! EQU 1726 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Get-Packages
  509. ) else (
  510. echo.
  511. echo ============================================================
  512. echo Resetting OS image base...
  513. echo ============================================================
  514. if /I not x64 == arm64 (
  515. reg.exe add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v DisableResetbase /t REG_DWORD /d 0 /f
  516. reg.exe add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v SupersededActions /t REG_DWORD /d 3 /f
  517. )
  518. if 1 == 0 (
  519. if /I amd64 == x86 if /I not x64 == x86 reg.exe save HKLM\SOFTWARE "!mumtarget!\Windows\System32\Config\SOFTWARE2"
  520. reg.exe unload HKLM\!ksub!
  521. if /I amd64 == x86 if /I not x64 == x86 move /y "!mumtarget!\Windows\System32\Config\SOFTWARE2" "!mumtarget!\Windows\System32\Config\SOFTWARE"
  522. )
  523. if 1 == 0 if 22000 GEQ 16299 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Cleanup-Image /StartComponentCleanup
  524. if !errorlevel! EQU 1726 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Get-Packages
  525. dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Cleanup-Image /StartComponentCleanup /ResetBase
  526. if !errorlevel! EQU 1726 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Get-Packages
  527. )
  528.  
  529. ============================================================
  530. Resetting OS image base...
  531. ============================================================
  532. The operation completed successfully.
  533.  
  534. The operation completed successfully.
  535.  
  536.  
  537. Deployment Image Servicing and Management tool
  538. Version: 10.0.22000.1
  539.  
  540. Image Version: 10.0.22000.527
  541.  
  542.  
  543. [===== 10.0% ]
  544.  
  545. [=========== 19.0% ]
  546.  
  547. [=========== 20.0% ]
  548.  
  549. [=========== 20.0% ]
  550. The operation completed successfully.
  551.  
  552. >call :cleanmanual
  553.  
  554. >if 1 == 1 goto :eof
  555.  
  556. >goto :eof
  557.  
  558. >if 1 == 0 if 22000 GEQ 19041 if 22000 LSS 17133 if exist "C:\Windows\System32\ext-ms-win-security-slc-l1-1-0.dll" (
  559. del /f /q C:\Windows\System32\ext-ms-win-security-slc-l1-1-0.dll
  560. if /I not amd64 == x86 del /f /q C:\Windows\SysWOW64\ext-ms-win-security-slc-l1-1-0.dll
  561. )
  562.  
  563. >call :cleaner
  564.  
  565. >cd /d "!_work!"
  566.  
  567. >if defined msucab (
  568. for %# in ((null)) do del /f /q "!repo!\%~#"
  569. set msucab=
  570. )
  571.  
  572. >if defined tmpcmp (
  573. for %# in ((null)) do del /f /q "!repo!\%~#"
  574. set tmpcmp=
  575. )
  576.  
  577. >if defined uuppkg (
  578. for %# in ((null)) do del /f /q "!repo!\%~#"
  579. set uuppkg=
  580. )
  581.  
  582. >if 0 NEQ 0 goto :eof
  583.  
  584. >if exist "cabmsu.txt" (
  585. for /F %# in (cabmsu.txt) do del /f /q "!repo!\%~#"
  586. del /f /q cabmsu.txt
  587. )
  588.  
  589. >if exist "!_cabdir!\cmpcab.txt" (
  590. cd /d "!_cabdir!"
  591. for /F %# in (cmpcab.txt) do del /f /q "!repo!\%~#"
  592. del /f /q cmpcab.txt
  593. cd /d "!_work!"
  594. )
  595.  
  596. >if exist "!_cabdir!\" (
  597. echo.
  598. echo ============================================================
  599. echo Removing temporary extracted files...
  600. echo ============================================================
  601. echo.
  602. rmdir /s /q "!_cabdir!\"
  603. )
  604.  
  605. ============================================================
  606. Removing temporary extracted files...
  607. ============================================================
  608.  
  609.  
  610. >if exist "!_cabdir!\" (
  611. mkdir E:\_del286 1>nul 2>nul
  612. robocopy E:\_del286 "!_cabdir!" /MIR 1>nul 2>nul
  613. rmdir /s /q E:\_del286\ 1>nul 2>nul
  614. rmdir /s /q "!_cabdir!\"
  615. )
  616.  
  617. >goto :eof
  618.  
  619. >if defined tmpssu (
  620. for %# in ((null)) do del /f /q "!repo!\%~#"
  621. set tmpssu=
  622. )
  623.  
  624. >if 0 EQU 1 if exist "!mountdir!\" rmdir /s /q "!mountdir!\"
  625.  
  626. >if exist "!winremount!\" rmdir /s /q "!winremount!\"
  627.  
  628. >if 0 == 1 if 0 == 1 call :ISO
  629.  
  630. >if 0 EQU 0 (
  631. echo.
  632. echo ============================================================
  633. echo Finished
  634. echo ============================================================
  635. echo.
  636. )
  637.  
  638. ============================================================
  639. Finished
  640. ============================================================
  641.  
  642.  
  643. >if 1 == 1 if exist "C:\Windows\winsxs\pending.xml" (
  644. echo.
  645. echo ============================================================
  646. echo System restart is required to complete installation
  647. echo ============================================================
  648. echo.
  649. )
  650.  
  651. >if 0 NEQ 0 goto :eof
  652.  
  653. >if 1 NEQ 0 goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement