Windows Editions Reconstruction Project

Discussion in 'Windows 10' started by whatever127, Jan 10, 2020.

  1. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,006
    540
    60
    #2161 zhanglin, Mar 27, 2021
    Last edited: Mar 27, 2021
    Today, I found that the replaced ssu can be uninstalled directly
     
  2. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
    #2162 xinso, Mar 27, 2021
    Last edited: Mar 27, 2021
    Good.

    Wait. You are talking one same thing, or two different things?

    Giving examples is better for easy understanding.
     
  3. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,006
    540
    60
    Said attribute is permanence="permanent" uninstall method of these packages
     
  4. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
    So you just modify registry CurrentState to 50, right?

    You are not a good teacher.
     
  5. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,006
    540
    60
    Yes
     
  6. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
    #2166 xinso, Mar 27, 2021
    Last edited: Mar 27, 2021
    OK. You are a good teacher now.

    But I need testings. If not working, you return to bad teacher.

    OK, test it right away.

    (If it worked, all scripts need renewal... not an easy job.)

    Code:
    [HKEY_LOCAL_MACHINE\1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.17763.1]
    "InstallClient"="DISM Package Manager Provider"
    "InstallName"="Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.17763.1.mum"
    "InstallLocation"="\\\\?\\d:\\os\\out\\Temp\\amd64fre\\4hbhcfxl.jug\\Client_staged\\"
    "CurrentState"=dword:00000050
    "SelfUpdate"=dword:00000000
    "Visibility"=dword:00000002
    "InstallTimeHigh"=dword:01d44cc6
    "InstallTimeLow"=dword:d5e5bf5d
    "InstallUser"="S-1-5-21-397955417-626881126-188441444-4882392"
    
    Code:
    C:\WINDOWS\system32>dism /english /image:z:\1 /Remove-package /Packagename:Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.17763.1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - An error occurred - Windows-Defender-Client-Package Error: 0x80070005
    
    Error: 5
    
    Access is denied.
    
    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
    
    C:\WINDOWS\system32>
    
     
  7. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,006
    540
    60
    I tried it many times, and it’s definitely no problem. Welcome to test.
     
  8. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
    #2168 xinso, Mar 27, 2021
    Last edited: Mar 27, 2021
    Did you test Windows Defender? It definitely failed many times in a row (for me).
    Code:
    Microsoft Windows [版本 10.0.19042.867]
    (c) 2020 Microsoft Corporation。著作權所有,並保留一切權利。
    
    C:\WINDOWS\system32>dism /english /image:z:\1 /Remove-package /Packagename:Package_for_KB5000859~31bf3856ad364e35~amd64~~17763.1812.1.1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Removing package Package_for_KB5000859~31bf3856ad364e35~amd64~~17763.1812.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    C:\WINDOWS\system32>dism /english /image:z:\1 /Remove-package /Packagename:Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.17763.1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - An error occurred - Windows-Defender-Client-Package Error: 0x80070005
    
    Error: 5
    
    Access is denied.
    
    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
    
    C:\WINDOWS\system32>
    
    Code:
    C:\WINDOWS\system32>dism /english /image:z:\1 /Remove-package /Packagename:Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.17763.1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - An error occurred - Windows-Defender-Client-Package Error: 0x80070005
    
    Error: 5
    
    Access is denied.
    
    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
    
    C:\WINDOWS\system32>dism /english /image:z:\1 /Remove-package /Packagename:Package_for_KB5000859~31bf3856ad364e35~amd64~~17763.1812.1.1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Removing package Package_for_KB5000859~31bf3856ad364e35~amd64~~17763.1812.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    C:\WINDOWS\system32>
    
     
  9. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
    #2169 xinso, Mar 27, 2021
    Last edited: Mar 27, 2021
    It is another "workaround" for packages with permanence="permanent".

    Done.
     
  10. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,006
    540
    60
  11. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
    #2171 xinso, Mar 27, 2021
    Last edited: Mar 27, 2021
    Show it again like I showed at #2166:

    1. Registry status

    2. Remove with Command Prompt (or show the modification to the script if you did. If the script has not been modified for the registry status, it is deleted by the script, not by the CurrentStatus 50.)
     
  12. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,006
    540
    60
    #2172 zhanglin, Mar 27, 2021
    Last edited: Mar 27, 2021
    Teacher, you have time to look at the Flash update package (KB4580325) and uninstall package (KB4577586). The fundamental difference between KB4580325 and KB4577586 is amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.606_none_09c46c9cc83e6ba3.manifest.
    This may become an uninstall method for Component (without a separate package).
     
  13. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
    OK. But I am waiting your answer for #2171.
     
  14. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,006
    540
    60
    I don’t know the details, I just observed and found this rule (18362 and later versions, new upgrade strategy)
     
  15. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
    #2175 xinso, Mar 27, 2021
    Last edited: Mar 27, 2021
    modified manifest:

    capture = OK
    Code:
    C:\WINDOWS\system32>dir /b D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867 /s
    D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44
    D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44.manifest
    D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_microsoft-windows-c..equired-deployment0_31bf3856ad364e35_10.0.19041.867_none_57ae35c052515b97.manifest
    D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\update.cat
    D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\update.mum
    D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44\activex.vch
    D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44\Flash.ocx
    D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44\FlashUtil_ActiveX.dll
    D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44\FlashUtil_ActiveX.exe
    
    C:\WINDOWS\system32>
    

    install = Not OK
    remove = Not OK
    update = Not OK (Official or Customized)
    https://forums.mydigitallife.net/th...struction-project.80939/page-108#post-1652124
     
  16. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
  17. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
    #2177 xinso, Mar 28, 2021
    Last edited: Mar 28, 2021
    Add this to the script:
    Code:
    reg add "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%i" /v CurrentState /t REG_DWORD /d 80 /f >nul 2>nul
    
    But this is good for the SSU package only when the image has not been reset base.
     
  18. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
    #2178 xinso, Mar 28, 2021
    Last edited: Mar 28, 2021
    FYI only:
    Code:
    D:\PackExtractor>for /F %x in ('findstr /i . Remove.txt 2>nul') do if exist z:\1\Windows\servicing\Packages\%x.mum dism /english /image:z:\1 /Remove-package /Packagename:%x
    
    D:\PackExtractor>if exist z:\1\Windows\servicing\Packages\Microsoft-Windows-EducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0.mum dism /english /image:z:\1 /Remove-package /Packagename:Microsoft-Windows-EducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.15063.0
    
    Processing 1 of 1 - Removing package Microsoft-Windows-EducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    D:\PackExtractor>if exist z:\1\Windows\servicing\Packages\Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.15063.0.mum dism /english /image:z:\1 /Remove-package /Packagename:Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.15063.0
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.15063.0
    
    Processing 1 of 1 - Removing package Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.15063.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    D:\PackExtractor>if exist z:\1\Windows\servicing\Packages\Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.15063.0.mum dism /english /image:z:\1 /Remove-package /Packagename:Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.15063.0
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.15063.0
    
    Processing 1 of 1 - Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.15063.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    D:\PackExtractor>if exist z:\1\Windows\servicing\Packages\Microsoft-Windows-ProfessionalEducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0.mum dism /english /image:z:\1 /Remove-package /Packagename:Microsoft-Windows-ProfessionalEducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.15063.0
    
    Processing 1 of 1 - Removing package Microsoft-Windows-ProfessionalEducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    D:\PackExtractor>pause
    
    Press any key to continue . . .
    
    
     
  19. remek002

    remek002 MDL Novice

    Oct 28, 2012
    35
    54
    0
    #2179 remek002, Mar 28, 2021
    Last edited: Apr 22, 2023
    del
     
  20. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,697
    340
    #2180 xinso, Mar 28, 2021
    Last edited: Mar 28, 2021
    How about?

    deleted