[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
    426
    526
    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,695
    267
    60
  3. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    18,681
    18,589
    340
  4. dobbelina

    dobbelina MDL Senior Member

    Apr 2, 2009
    426
    526
    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...