[Solved] install_wim_tweak.exe unhide option how?

Discussion in 'Windows 10' started by dobbelina, Aug 11, 2016.

  1. dobbelina

    dobbelina MDL Senior Member

    Apr 2, 2009
    425
    509
    10
    #1 dobbelina, Aug 11, 2016
    Last edited: Aug 11, 2016
    Hi!

    The tool install_wim_tweak.exe has an unhide option that shows packages that normally dism wouldn't see.

    I wonder, how does it do this, and can I do it without using this tool ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,622
    234
    60
    #2 tnx, Aug 11, 2016
    Last edited: Aug 11, 2016
    M
    A good while back I messed about doing just this. I did manage to do it but it was a bit involved. I never stuck with it and in fact I left removing packages all together .

    Here is a link to one of my old threads. You may or may not find it interesting\helpfull but it may give you an idea of how it's done.

    http://forums.mydigitallife.net/thr...emoving-One-Drive-and-other-packages-via-DISM
     
  3. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,647
    15,573
    340
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. dobbelina

    dobbelina MDL Senior Member

    Apr 2, 2009
    425
    509
    10
    #4 dobbelina, Aug 11, 2016
    Last edited: Aug 13, 2016
    (OP)
    Thanks for the replies!

    I know now exactly what it does.

    Easiest with an example:

    Here is Media-Ocr-Package reg key path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Media-Ocr-Package~31bf3856ad364e35~amd64~sv-SE~10.0.10586.0

    It changes Visibility DWORD value from 2 to 1
    And Add a new DWORD value named DefVis and set the value to 2
    Then it deletes the subkey Owners

    The package can now be deleted with Dism after one has taken ownership.
    (Or maybe I should say you must take ownership before you can edit these properties, or run a "Trustedinstaller hack").

    Sad part is if you once ran it with parameter /o , using /h will not restore it as it was from the beginning.
    It only sets visibility back to 2, but leaves all the DefVis values behind, and all Owners subkeys are gone,
    from all packages!

    Bad idea to use I think.
    I have already found a PS script that only goes after the packages that is the target, and leave everything
    else intact.

    I'll work on this for a while, thanks for the input!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...