Deleting .Net framework files from Windows 8 ISO

Discussion in 'Windows 8' started by Lothan88, Dec 21, 2012.

  1. Lothan88

    Lothan88 MDL Novice

    Mar 10, 2012
    23
    2
    0
    #1 Lothan88, Dec 21, 2012
    Last edited: Dec 21, 2012
    Hello, I've made my integration which pre-enables the .netframework 3.5 into my .wim images, my AIO includes w8, w8 pro, w8 pro WMC and w8 Enterprise for both architectures, now I'm facing the problem that the iso exceeds the weight by 22 MB, so I'm forced to use a dvd9, now that the feature is preinstaled into de the win images I think that I can reduce the space by deleting the .net framework files for 3.5 in the sxs folder but exactly which files do I have to delete? Thanks a lot who can enlighten me.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    7,181
    21,984
    240
    delete the whole sxs folder
     
  3. Lothan88

    Lothan88 MDL Novice

    Mar 10, 2012
    23
    2
    0
    #3 Lothan88, Dec 21, 2012
    Last edited: Dec 21, 2012
    (OP)
    The sxs folder contains also files of .net 4 and other stuff so maybe the installation could be affected if I do that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. NABAKUMAR

    NABAKUMAR MDL Member

    Sep 10, 2012
    199
    145
    10
    Delete the Windows 8 Pro for both Architectures from the ISO...Windows 8 Core or Pro installation depends upon the product key you use during installation...So keep Win8 Core, Windows 8 Pro with Media Center and Windows 8 Enterprise for both architectures ..I think that would reduce the size of the ISO...Don't delete the sxs folder...it would be problematic later on to install .Net Framework...as it cannot be installed offline from the ISO by cmd.
     
  5. anarchist9027

    anarchist9027 MDL Expert

    Oct 30, 2010
    1,320
    667
    60
    I don't believe you can delete the .Net 3.5 files because .Net 4.5 depends on .Net 3.5 for some dependencies to run. Me personally would delete Windows 8 Core seeing that it is virtually useless.
     
  6. 100

    100 MDL Expert

    May 17, 2011
    1,346
    1,539
    60
    This is about \sources\sxs on the DVD, so it doesn't matter. The installer only deploys the Windows image from the .wim, not the sxs directory.

    That is not an issue here since it was installed in the offline image.
     
  7. Lothan88

    Lothan88 MDL Novice

    Mar 10, 2012
    23
    2
    0
    Yeah, I think that that's my best option, nobody uses it. However, I wanted to ask to see if there was a way to reduce those 22 mb in stead of deleting a image of the wim intall.

    I should eliminate the core version, not pro, the key decides which image is gonna use to install but not creates a custom installation, if there wasn't that way the wim file would contain only one image in stead of two.

    dism /Get-WIMInfo /WimFile:c:\dvdx86\sources\install.wim
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Shenj

    Shenj MDL Expert

    Aug 12, 2010
    1,557
    652
    60
    if you integrated updates properly, with audit etc, you "could" go inside winsxs and get rid of the "old" stuff, Shell32.dll for example should be there in several versions, Windows will never read these ever again, i think they are simply kepts for easy hotfix uninstall, not sure really, but you should be able to simply delete 1-2 old shell32.dll revisions, as Windows will always use the newest one, at least i don't think it matters if you delete these or not, shell32.dll is even big enough to ga
    Though fact stays, you should never delete anything in winsxs, Windows is actually using it, if you delete the whole folder you are basicly crippling the whole system to the ground and some stuff simply stops working completly.

    C:\Windows\WinSxS\amd64_microsoft-windows-shell32_31bf3856ad364e35_6.2.9200.16433_none_c527e37a9b987bd1
    C:\Windows\WinSxS\amd64_microsoft-windows-shell32_31bf3856ad364e35_6.2.9200.16420_none_c52fb2889b9313db

    for example and voila you have your space 22mb back, deleting them ofc is your own risk :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Lothan88

    Lothan88 MDL Novice

    Mar 10, 2012
    23
    2
    0
    it seems to work, I deleted the sxs folder and tried in my vmware, the installer worked fine and I asked for the enabled features and showed me the same than my host system, .net 3.5 and net 4 were enabled, I also tried to install them and the systems told me that they were part of the system already. However, now the problem is if there is missing any dll from the sxs folder.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. sezz

    sezz MDL Novice

    Apr 20, 2009
    24
    1
    0
    imagex /export install.wim * install2.wim /compress max
    del install.wim
    ren install2.wim install.wim
     
  11. Lothan88

    Lothan88 MDL Novice

    Mar 10, 2012
    23
    2
    0
    Yeah, Btor gave me this solution a few hours ago, I reduced 350 MB so now I can say that my problem is solved.Thanks to all those who tried to help me.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...