MSMG ToolKit to Convert W8.1/Srv 2012 R2 RTM/GA ISO - W8.1/Srv 2012 R2 Update 1 ISO

Discussion in 'MDL Projects and Applications' started by MSMG, Mar 7, 2014.

Thread Status:
Not open for further replies.
  1. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    Obviously a misunderstanding as he seems to think the code you posted could be used to manipulate the ISO directly, not the WIM.......:tea::smoking:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. nechrist

    nechrist MDL Guide Pack

    Apr 24, 2010
    326
    163
    10
    @msmg

    Is it possible to add the option to update just the winre.wim instead to process the whole thing?
     
  3. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,486
    210
    #123 MSMG, Mar 11, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    so if someone wants to convert store created .esd to .wim then only the 4th index is sufficient right?. when I got updated to windows 8.1 pro wmc by store upgrade method the folder which stored the files had only consisted of all files including install.esd but not boot.wim so I thought it may be missing and used the one which I got from regular isos and tested it booted but I didn't knew the install.esd contained 4 indexes and it included boot index 1&2

    so my question is everyone who updated to 8.1 by store and saved there install folder, does the folder contains boot.wim with it or not?


    and if I need to add convert .esd to .wim to the toolkit, do I need to also make boot.wim?


    one more thing is I applied the .esd to a folder and capture the folder to install.wim and after that couldn't removed the folder used for applying .esd file by the /Unmount-Wim /MountDir: so what's the exact command for removal of the folder.


     
  4. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,486
    210
    why do want to just update winre.wim coz if you use the updated winre.wim with older install.wim then it might create problem when using the recovery function on installed os

     
  5. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,486
    210
    People who wants to add other features like .netfx35, wmc, dart, drivers, updates for install.wim please do use my main toolkit. this toolkit is just for windows 8.1 update integration purpose. this toolkit will get merged with the main toolkit once the Microsoft release the windows 8.1 update 1.

    Once the Microsoft releases the windows 8.1 update 1 ISOs then only we may know what updates gets included with boot.wim and winre.wim until then its a mystery, so wait until then.

    so far its working properly..
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,703
    340
    #126 abbodi1406, Mar 11, 2014
    Last edited by a moderator: Apr 20, 2017
    Right :)
    that's correct, even the store upgrade install.esd contains boot.wim, but it will never get extracted or used since the process is a live upgrade and not from boot session.
    and the whole install.esd with folder contents will be removed once the upgrade is done

    that's depends on if the .esd used is a store related one, and/or the user does not have boot.wim ready

    but be adviced that applying an re-capturing .esd as .wim will not be sufficient, you need to set Edition flag for the newly made wim image using imagex, otherwise the edition will not be recognized in the setup process.
    same thing goes for boot.wim of install.esd, you need to set first index flag as 9 and the second as 2

    yeah, i can see the dilemma, the folder will be considered as system and cannot be removed completely
    you may use UNLOCKER 1.9.2 BY CEDRICK 'NITCH' COLLOMB
    Code:
    Unlocker MountDir /S /D
    or you can create a temporary expandable .vhd file, and apply the .esd to it, then you can easily format it, clean it or delete it
     
  7. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    #127 murphy78, Mar 11, 2014
    Last edited by a moderator: Apr 20, 2017
    That's a much easier method but I believe you can use the takeown/icacls method as well if you don't wanna use non-windows programs:
    Code:
    takeown /f C:\ESDImage /r /d y && icacls C:\ESDImage /grant administrators:F /t
    rd /q /s c:\ESDImage
     
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,703
    340
    #128 abbodi1406, Mar 11, 2014
    Last edited by a moderator: Apr 20, 2017
    I believe even if you take ownership, some folders or paths cannot be removed (specially if UAC is on)
     
  9. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    #129 murphy78, Mar 11, 2014
    Last edited by a moderator: Apr 20, 2017
    If you try to run the commands separately, you will run into errors, but if you run it exactly as I put it conjoined with the && it will work.
    I transposed the /d y /r and it should be /r /d y
    I'm not sure if that matters, but I thought it's worth mentioning...
    User would just need admin permissions to execute these. Getting admin permissions will trigger the UAC in itself.
    scripted-takeown-and-icacls-dir-del.jpg

    *Edit... also if you use this as a separate script you can replace the directory with %1
    The revised command for use in a script would be:
    Code:
    takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t
    rd /q /s %1
    Or pointed at a single file would be:
    Code:
    takeown /f "%1" /d y && icacls "%1" /grant administrators:F
    del /q /s %1
    I'm sure someone could come up with an easy way to determine whether the user passed a file or a directory as the %1 argument
    and use goto and exit /b commands
     
  10. Mannlich

    Mannlich MDL Member

    Jul 14, 2009
    221
    92
    10
    Just wanted to say thank you for this tool. It worked perfectly to update all of my Win8.1 and Server 2012 R2 ISOs with Update 1.
     
  11. sukinsin88

    sukinsin88 MDL Addicted

    Oct 17, 2012
    731
    43
    30
    i have windows 8.1 iso with rollup A do i must integrate only these updates or need more ?
     
  12. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,486
    210
    #133 MSMG, Mar 11, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    this is what I use in my toolkit for taking ownership and granting permission for files. this command works for files but if path to the file contains a space like Program Files\Windows Mail\<filename>.exe then it won't work, you need to navigate to the folder and then us the TakeOwnerShip function.

    will check out the code you have given and see what happens for directories

    Code:
    
    ::-------------------------------------------------------------------------------------------
    :: Function to Take Onwer Ship of Files That Has to be Replaced
    :: Input Parameters [%~1 : File Name]
    ::-------------------------------------------------------------------------------------------
    :TakeOwnerShip
    takeown /f %~1
    icacls %~1 /grant "Everyone":F
    goto:eof
    ::-------------------------------------------------------------------------------------------
    
    

     
  13. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,486
    210
    i.e you have ga iso, no issues you can use the windows 8.1 update 1 updates directly over it.

     
  14. fkar

    fkar MDL Recognized Advisor

    Nov 3, 2012
    1,588
    1,410
    60
    Only these updates are enough as KB2919355 is released as a cumulative update which contains all previously released rollups. :rolleyes:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. nechrist

    nechrist MDL Guide Pack

    Apr 24, 2010
    326
    163
    10
    #136 nechrist, Mar 11, 2014
    Last edited: Mar 11, 2014
    Becouse for integration of the main one, i prefere the manual way :) So if you already have an up to date install.wim, just update the winre.wim would be usefull ;)
     
  16. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    #137 murphy78, Mar 11, 2014
    Last edited by a moderator: Apr 20, 2017
  17. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,486
    210
  18. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,486
    210
    #139 MSMG, Mar 11, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    did some work on this esd2wim conversion, was able to get the esd image index details like name, description, edition and also applying the esd to folder and capture back the folder to wim image worked well, the only problem is when I tried to capture the folder to wim with a wim image description e.g "Windows 8.1 Pro WMC" the capture command doesn't work but it works with "Windows_8". i.e if there is a space or a . then its giving error. so I think its better to use the imagex for naming the index name and description along with the flag settings.

     
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,703
    340
    #140 abbodi1406, Mar 11, 2014
    Last edited by a moderator: Apr 20, 2017
    Since you need to use imagex, then it's better if you gave any standard one word name when capturing with dism, and later you can change appropiate name and description using imagex
    i.e.
    Code:
    dism /Capture-Image /ImageFile:install.wim /CaptureDir:C:\ESD /Name:Windows /Compress:max /CheckIntegrity
    imagex /flags "ProfessionalWMC" /info install.wim 1 "Windows 8.1 Pro WMC" "Windows 8.1 Pro WMC"