Need advice about Install_wim_tweak

Discussion in 'Windows 10' started by Carol666, Sep 3, 2015.

  1. Carol666

    Carol666 MDL Member

    Aug 12, 2015
    129
    10
    10
    #1 Carol666, Sep 3, 2015
    Last edited: Sep 3, 2015
    I mounted wim and used Install_wim_tweak to remove packages I used /l to export packages list was about 1856. After I removed several and created list with /l packages dropped to 1811. The thing is that Install_wim_tweak refuse to remove anymore packages.
    I unmounted wim and mounted wim and closed cmd and restarted pc and Install_wim_tweak just won't remove anymore packages. When I /r more packages It shows as if it was removing but when I output text /l with list of packages, they're not removed.


    Can someone advice?


    Thanks
     
  2. Carol666

    Carol666 MDL Member

    Aug 12, 2015
    129
    10
    10
    No one able to help me. , ?
     
  3. pisthai

    pisthai Imperfect Human

    Jul 29, 2009
    6,728
    1,954
    210
    Maybe you should remove the Attributes Read only and Hidden from ALL files inside wim?! You may need to take ownership of ALL files within wim, at first!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Carol666

    Carol666 MDL Member

    Aug 12, 2015
    129
    10
    10
    @pisthai thanks I will try do what you said I have to do :) atm taking ownership of everything in mounted wim then will unmark read only
     
  5. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,601
    227
    60
    To remove the packages you only need take control of the REG hive.
    But using that tweaker.exe should do it for you.
     
  6. Carol666

    Carol666 MDL Member

    Aug 12, 2015
    129
    10
    10
    @pisthai OK I took ownership of everything in wim also unmarked read only. Then tried Install_wim_tweak again and it still doesn't remove more packages.

    What's happening is that I tried twice on the same wim once I managed remove until there left 1811 packages then Install_wim_tweak stopped removing more packages

    Today I started from fresh stock wim and Install_wim_tweak removed until there left 1755 packages and it doesn't want to remove anymore

    Even it shows packages are being removed when I create text with /l the packages are a till there

    Can someone advice of what else can I do?



    Thanks
     
  7. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,601
    227
    60
    what packages are you trying to remove
     
  8. pisthai

    pisthai Imperfect Human

    Jul 29, 2009
    6,728
    1,954
    210
    Maybe, some packages couldn't be removed as they may be classified as 'system needed' and a remove would break the setup procedure.

    Maybe, if you use 3.party apps, you could use that for to delete some packages, just it maybe has a bad effect on the integrity of the wim?!

    It doesn't matter what you're doing, there will be always a lot 'maybe's'! It's quite time consuming as well and for to do such 'work', it's really recommended to work on 2 or even more computers at the same time! If I do such tweaking/hacking, I use at least 3 computer for that or even 4, incl. 1 Laptop! I've 3 Monitors in front of me and use RAdmin on all machines, so I could use the same Keyboard & Mouse, even if the Laptop is running on that work too!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. RADITZDJ

    RADITZDJ MDL Member

    Jun 24, 2011
    150
    34
    10
    #9 RADITZDJ, Sep 3, 2015
    Last edited by a moderator: Apr 20, 2017
    CMD (run as administrator)

    unhide packages :
    install_wim_tweak /p {your mount dir}

    export all packages list :
    install_wim_tweak /p {your mount dir} /l

    open your listpackage.txt file

    choose the packages you targeted to remove like this one (this is just example)
    Code:
    install_wim_tweak /o /c Microsoft-OneCore-AllowTelemetry-Reduced-Default-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak /o /c Microsoft-OneCore-TroubleShooting-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak /o /c Microsoft-OneCore-TroubleShooting-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak /o /c Microsoft-OneCore-TroubleShooting-WOW64-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak /o /c Microsoft-OneCore-TroubleShooting-WOW64-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak /o /c Microsoft-Windows-DiagTrack-Internal-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak /o /c Microsoft-Windows-DiagTrack-Internal-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    
    AFAIK you can't remove ALL packages
     
  10. Carol666

    Carol666 MDL Member

    Aug 12, 2015
    129
    10
    10
    For example once I removed from fresh wim defender hyper v and other packages around 50 in total and Install_wim_tweak stopped removing anymore packages no matter what else I tried to remove. When tried to remove Adobe Flash it couldn't remove it it showed as if the package was removed but in the end when i /l the package was still there

    The second time I started removing from fresh wim and started from Adobe Flash and it removed it without issue then as I removed more going through hyper v and others like edge and cortana and defender at some point Install_wim_tweak stopped again refusing to remove more packages


    What I have found is that in the begging when Install_wim_tweak still works removing packages it shows

    Editing packagespending subkeys fail key not exist

    And as I remove more packages

    Editing packagespending subkeys changes to OK

    That's when it doesn't remove anything anymore

    No matter I Unmount image
    Export it
    Reboot

    It won't remove one single package more

    Any advice?
     
  11. RADITZDJ

    RADITZDJ MDL Member

    Jun 24, 2011
    150
    34
    10
    #11 RADITZDJ, Sep 3, 2015
    Last edited: Sep 3, 2015
    I prefer doing manual DISM via PowerShell
    And hide and unhide packages before and after deleting packages simply by using regedit dan notepad
    After you deleting the packages you MUST hide the shown packages and left it the "default shown" original packages
     
  12. Carol666

    Carol666 MDL Member

    Aug 12, 2015
    129
    10
    10
    @RADITZDJ that's not help
     
  13. Carol666

    Carol666 MDL Member

    Aug 12, 2015
    129
    10
    10
    OK found solution sort of, as soon as I use Install_wim_tweak to remove hyper V Install_wim_tweak remove some packages of hyper V other become pending and they stay pending and I haven't found way of cleaning Install_wim_tweak from pending packages removal and that's why unable to remove more packages. Solution don't touch hyper V using Install_wim_tweak in windows 10. Instead use dism only.
    I have just made my first custom wim image removed whatever could and installed my own custom windows 10 crapware free :)
     
  14. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,601
    227
    60
    sounds good..

    What packages did you remove in the end and have you seen any side effects ?
     
  15. xinso

    xinso MDL Guru

    Mar 5, 2009
    3,929
    5,280
    120
    #15 xinso, Sep 4, 2015
    Last edited by a moderator: Apr 20, 2017
    Unless you treated it as Embedded System, it might be unable to

    Code:
    dism /online /Cleanup-Image /RestoreHealth
    And fail to Sysprep.
     
  16. Carol666

    Carol666 MDL Member

    Aug 12, 2015
    129
    10
    10
    offline image
     
  17. Carol666

    Carol666 MDL Member

    Aug 12, 2015
    129
    10
    10
    #17 Carol666, Sep 4, 2015
    Last edited: Sep 4, 2015
    (OP)
    loads of them i had in the beginning 1859 and dropped to 1611 plus removed all that zune crap win home+proffesional iso became 2.7gb :)
     
  18. spidernz

    spidernz MDL Senior Member

    May 20, 2011
    273
    67
    10
    Carol666 Would you share you script? Love to thin out my windows 10 too.
     
  19. odiebugs1

    odiebugs1 MDL Expert

    Jul 30, 2015
    1,390
    453
    60
    How are they going to share when they've been banned, see the line through the name and the words BANNED.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. spidernz

    spidernz MDL Senior Member

    May 20, 2011
    273
    67
    10
    haha, so it does actually mean banned, wasn't sure as I'm on some other forums where people actually have silly tags like that which mean nothing really.