Lex247

W10UI_10.17f_Error-267

Mar 17th, 2022
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.73 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 22000 LSS 22483 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 22000 GEQ 22483 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!_24387"
  305.  
  306. >set "winremount=!winremount!_28382"
  307.  
  308. >set "_cabdir=!_cabdir!_22808"
  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. call :cleanup
  441. reg.exe delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v W10UIclean /f
  442. reg.exe delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v W10UIrebase /f
  443. goto :fin
  444. )
  445.  
  446. >set savc=0 & set savr=1
  447.  
  448. >if 22000 GEQ 18362 (set savc=3 & set savr=3 )
  449.  
  450. >if exist "!mumtarget!\Windows\Servicing\Packages\*WinPE-LanguagePack*.mum" (
  451. if 0 == 1 (
  452. echo.
  453. echo ============================================================
  454. echo Resetting WinPE image base...
  455. echo ============================================================
  456. )
  457. call :MeltdownSpectre
  458. if 22000 GEQ 16299 if /I not x64 == arm64 (
  459. set ksub=SOFTWIM
  460. reg.exe load HKLM\!ksub! "!mumtarget!\Windows\System32\Config\SOFTWARE"
  461. reg.exe add HKLM\!ksub!\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v SupersededActions /t REG_DWORD /d 3 /f
  462. reg.exe add HKLM\!ksub!\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v DisableComponentBackups /t REG_DWORD /d 1 /f
  463. reg.exe unload HKLM\!ksub!
  464. if 1 EQU 0 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Cleanup-Image /StartComponentCleanup
  465. if !errorlevel! EQU 1726 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Get-Packages
  466. )
  467. if 1 EQU 0 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Cleanup-Image /StartComponentCleanup /ResetBase
  468. if !errorlevel! EQU 1726 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Get-Packages
  469. call :cleanmanual
  470. goto :eof
  471. )
  472.  
  473. >if 1 == 0 call :cleanmanual & goto :eof
  474.  
  475. >if exist "!mumtarget!\Windows\WinSxS\pending.xml" (
  476. if 1 == 1 (
  477. if 1 == 0 (set rValue=W10UIclean ) else (set rValue=W10UIrebase )
  478. reg.exe add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v !rValue! /t REG_DWORD /d 1 /f
  479. goto :eof
  480. )
  481. call :cleanmanual & goto :eof
  482. )
  483.  
  484. >if 1 == 0 (
  485. set ksub=SOFTWIM
  486. reg.exe load HKLM\!ksub! "!mumtarget!\Windows\System32\Config\SOFTWARE"
  487. ) else (set ksub=SOFTWARE )
  488.  
  489. >if 1 == 0 (
  490. echo.
  491. echo ============================================================
  492. echo Cleaning up OS image...
  493. echo ============================================================
  494. if /I not x64 == arm64 (
  495. reg.exe add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v DisableResetbase /t REG_DWORD /d 1 /f
  496. reg.exe add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v SupersededActions /t REG_DWORD /d 3 /f
  497. )
  498. if 1 == 0 (
  499. if /I amd64 == x86 if /I not x64 == x86 reg.exe save HKLM\SOFTWARE "!mumtarget!\Windows\System32\Config\SOFTWARE2"
  500. reg.exe unload HKLM\!ksub!
  501. if /I amd64 == x86 if /I not x64 == x86 move /y "!mumtarget!\Windows\System32\Config\SOFTWARE2" "!mumtarget!\Windows\System32\Config\SOFTWARE"
  502. )
  503. dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Cleanup-Image /StartComponentCleanup
  504. if !errorlevel! EQU 1726 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Get-Packages
  505. ) else (
  506. echo.
  507. echo ============================================================
  508. echo Resetting OS image base...
  509. echo ============================================================
  510. if /I not x64 == arm64 (
  511. reg.exe add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v DisableResetbase /t REG_DWORD /d 0 /f
  512. reg.exe add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration /v SupersededActions /t REG_DWORD /d 3 /f
  513. )
  514. if 1 == 0 (
  515. if /I amd64 == x86 if /I not x64 == x86 reg.exe save HKLM\SOFTWARE "!mumtarget!\Windows\System32\Config\SOFTWARE2"
  516. reg.exe unload HKLM\!ksub!
  517. if /I amd64 == x86 if /I not x64 == x86 move /y "!mumtarget!\Windows\System32\Config\SOFTWARE2" "!mumtarget!\Windows\System32\Config\SOFTWARE"
  518. )
  519. if 1 == 0 if 22000 GEQ 16299 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Cleanup-Image /StartComponentCleanup
  520. if !errorlevel! EQU 1726 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Get-Packages
  521. dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Cleanup-Image /StartComponentCleanup /ResetBase
  522. if !errorlevel! EQU 1726 dism.exe /English /NoRestart /ScratchDir:"!_cabdir!" /online /Get-Packages
  523. )
  524.  
  525. ============================================================
  526. Resetting OS image base...
  527. ============================================================
  528. The operation completed successfully.
  529.  
  530. The operation completed successfully.
  531.  
  532.  
  533. Deployment Image Servicing and Management tool
  534. Version: 10.0.22000.1
  535.  
  536.  
  537. Error: 267
  538.  
  539. An error occurred while accessing the temporary directory.
  540. Ensure that the path to the directory exists and that you have Read/Write permissions on the folder. For more information, refer to the help by running DISM.exe /ScratchDir /?.
  541.  
  542. >call :cleanmanual
  543.  
  544. >if 1 == 1 goto :eof
  545.  
  546. >goto :eof
  547. ERROR: The system was unable to find the specified registry key or value.
  548. The operation completed successfully.
  549.  
  550.  
  551. >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" (
  552. del /f /q C:\Windows\System32\ext-ms-win-security-slc-l1-1-0.dll
  553. if /I not amd64 == x86 del /f /q C:\Windows\SysWOW64\ext-ms-win-security-slc-l1-1-0.dll
  554. )
  555.  
  556. >call :cleaner
  557.  
  558. >cd /d "!_work!"
  559.  
  560. >if defined msucab (
  561. for %# in ((null)) do del /f /q "!repo!\%~#"
  562. set msucab=
  563. )
  564.  
  565. >if defined tmpcmp (
  566. for %# in ((null)) do del /f /q "!repo!\%~#"
  567. set tmpcmp=
  568. )
  569.  
  570. >if defined uuppkg (
  571. for %# in ((null)) do del /f /q "!repo!\%~#"
  572. set uuppkg=
  573. )
  574.  
  575. >if 0 NEQ 0 goto :eof
  576.  
  577. >if exist "cabmsu.txt" (
  578. for /F %# in (cabmsu.txt) do del /f /q "!repo!\%~#"
  579. del /f /q cabmsu.txt
  580. )
  581.  
  582. >if exist "!_cabdir!\cmpcab.txt" (
  583. cd /d "!_cabdir!"
  584. for /F %# in (cmpcab.txt) do del /f /q "!repo!\%~#"
  585. del /f /q cmpcab.txt
  586. cd /d "!_work!"
  587. )
  588.  
  589. >if exist "!_cabdir!\" (
  590. echo.
  591. echo ============================================================
  592. echo Removing temporary extracted files...
  593. echo ============================================================
  594. echo.
  595. rmdir /s /q "!_cabdir!\"
  596. )
  597.  
  598. >if exist "!_cabdir!\" (
  599. mkdir E:\_del286 1>nul 2>nul
  600. robocopy E:\_del286 "!_cabdir!" /MIR 1>nul 2>nul
  601. rmdir /s /q E:\_del286\ 1>nul 2>nul
  602. rmdir /s /q "!_cabdir!\"
  603. )
  604.  
  605. >goto :eof
  606.  
  607. >if defined tmpssu (
  608. for %# in ((null)) do del /f /q "!repo!\%~#"
  609. set tmpssu=
  610. )
  611.  
  612. >if 0 EQU 1 if exist "!mountdir!\" rmdir /s /q "!mountdir!\"
  613.  
  614. >if exist "!winremount!\" rmdir /s /q "!winremount!\"
  615.  
  616. >if 0 == 1 if 0 == 1 call :ISO
  617.  
  618. >if 0 EQU 0 (
  619. echo.
  620. echo ============================================================
  621. echo Finished
  622. echo ============================================================
  623. echo.
  624. )
  625.  
  626. ============================================================
  627. Finished
  628. ============================================================
  629.  
  630.  
  631. >if 1 == 1 if exist "C:\Windows\winsxs\pending.xml" (
  632. echo.
  633. echo ============================================================
  634. echo System restart is required to complete installation
  635. echo ============================================================
  636. echo.
  637. )
  638.  
  639. >if 0 NEQ 0 goto :eof
  640.  
  641. >if 1 NEQ 0 goto :eof
Advertisement
Add Comment
Please, Sign In to add comment