Jump to content

Windows 7 & vLite *DEPRECATED*


Recommended Posts

Posted (edited)

Yes that's the problem..i did not check the r/w. Thanks dead..One last thing how can i get the list of packages that can be removed using cmd or dism? Your 7201.bat file did not work for my 7231 even if I edit. Only the languages are removed and i think its only 4 packages that i've been removed. And the error shows access denied...

Edited by zeporpai109

Posted
Yes that's the problem..i did not check the r/w. Thanks dead..One last thing how can i get the list of packages that can be removed using cmd or dism? Your 7201.bat file did not work for my 7231 even if I edit. Only the languages are removed and i think its only 4 packages that i've been removed. And the error shows access denied...

run dism /image:c:\s2 /get-packages which should list all the packages

then replace the names from the list in the batch file

Posted

@dead0: I checked if winsxs\backup can be removed, but I am not too sure especially when I read this

I am creating batch file that is reusable for the aactions specified, should not be that complex.

Posted

Hi all! :hello:

Nice results! :thumbup

Anyone had tests CPC fully loaded Windows 7 vs elite Windows 7? B)

about winsxs:

I agree to Jeronimo, but maybe there is a some way to control Winsxs's actions, to reduce CPU and HDD load?

Posted (edited)

I created all steps in 3 batch-files that should do the trick (along with the stuff dead0 posted in the same folder).

removal.bat (note the 5 parameters you need to alter):

@echo off
REM amd64 or x86
set bits=amd64
set version=7232
set sources=I:\Windows 7\sources

REM Imagex mount/unmount
set mount=E:
set imagex="D:\Quicksilver\Windows\Instellingen\imagex.exe"
set mountimagex=%imagex% /mountrw "%sources%\install.wim" 1 "%mount%"
set unmountimagex=%imagex% /unmount /commit %mount%

REM Dism mount/unmount
set mountwim=E:\Wim
set mountdism="%sources%\dism.exe" /mount-wim /wimfile:"%sources%\install.wim" /index:1 /mountdir:%mountwim%
set unmountdism="%sources%\dism.exe" /unmount-wim /mountdir:%mountwim% /commit

Rem Imagex/Dism
set mountimage=%mountimagex%
set unmountimage=%unmountimagex%
REM mkdir %mountwim%
REM set mountimage=%mountdism%
REM set unmountimage=%unmountdism%

REM Perform the install tweak
%mountimage%
install_wim_tweak.exe /p %mount% /m
del /s /f %mount%\Windows\System32\Recovery /q
REM delete wallpapers except for Windows (default) from %mount%\Windows\Web\Wallpaper
%unmountimage%

REM Perform the package removals
%mountimage%
call rempckgs.bat
call rempckg2.bat
%unmountimage%

rempckgs.bat (dead0 rem7201):

@echo off
set dism="%sources%\dism.exe" /image:%mount% /remove-package /packagename
%dism%:Microsoft-Hyper-V-Common-Drivers-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Hyper-V-Guest-Integration-Drivers-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Anytime-Upgrade-Results-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Backup-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-BLB-Client-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-BusinessScanning-Feature-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Client-Wired-Network-Drivers-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-ClipsInTheLibrary-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Common-Modem-Drivers-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Disk-Diagnosis-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Gadget-Platform-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Help-Customization-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-IIS-WebServer-AddOn-2-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-IIS-WebServer-AddOn-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Indexing-Service-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-IE-Troubleshooters-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Links-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-LocalPack-AU-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-LocalPack-CA-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-LocalPack-GB-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-LocalPack-ZA-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-LocalPack-US-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-MediaCenter-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-MobilePC-Client-Basic-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-MobilePC-Client-Premium-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-MobilePC-Client-Sensors-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-MobilePC-Client-SideShow-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-NetworkDiagnostics-DirectAccessEntry-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-NFS-ClientSKU-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-OfflineFiles-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-OpticalMediaDisc-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-ParentalControls-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-PeerDist-Client-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-PeerToPeer-Full-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-PhotoPremiumPackage~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Printer-Drivers-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Printing-Foundation-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Printing-XPSServices-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
REM %dism%:Microsoft-Windows-RasCMAK-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-RasRip-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-RDC-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-RecDisc-SDP-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-RemoteAssistance-Package-Client~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-SampleContent-Music-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-SampleContent-Ringtones-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-SecureStartup-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Shell-HomeGroup-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Shell-InboxGames-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Sidebar-Killbits-SDP-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-SimpleTCP-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-SnippingTool-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-SNMP-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-StickyNotes-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-SUA-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-SystemRestore-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-TabletPC-OC-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Telnet-Client-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Telnet-Server-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-TerminalServices-CommandLineTools-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-TerminalServices-MiscRedirection-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-TerminalServices-Publishing-WMIProvider-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-TerminalServices-RemoteApplications-Client-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-TerminalServices-UsbRedirector-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-TerminalServices-WMIProvider-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-TFTP-Client-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Tuner-Drivers-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-WindowsMediaPlayer-Troubleshooters-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-WinOcr-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-WMPNetworkSharingService-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Xps-Foundation-Client-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Server-Help-Package.ClientUltimate~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Networking-MPSSVC-Rules-UltimateEdition-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0

rempckg2.bat (gendouhydeist additions - REM-lines: did not work, already removed)

@echo off
set dism="%sources%\dism.exe" /image:%mount% /remove-package /packagename
%dism%:Microsoft-Media-Foundation-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
REM %dism%:Microsoft-Windows-Anytime-Upgrade-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-GroupPolicy-ClientExtensions-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
REM %dism%:Microsoft-Windows-Help-CoreClientUAHP-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
REM %dism%:Microsoft-Windows-Help-CoreClientUAPS-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-Help-CoreClientUAUE-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-IIS-WebServer-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-MediaPlayback-OC-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
REM %dism%:Microsoft-Windows-MediaPlayer-DVDRegistration-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
REM %dism%:Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
REM %dism%:Microsoft-Windows-MSMQ-Client-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-SearchEngine-Client-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
REM %dism%:Microsoft-Windows-StorageService-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-VirtualPC-Licensing-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-VirtualPC-USB-RPM-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0
%dism%:Microsoft-Windows-VirtualXP-Licensing-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0

After this the following packages remain (not including Language Packages):

Microsoft-Windows-Branding-Ultimate-Client-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-Client-Drivers-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-Client-Features-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-CodecPack-Basic-Encoder-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-CodecPack-Basic-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-Common-Drivers-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-DesktopWindowManager-uDWM-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-Editions-Client-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-GPUPipeline-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-ICM-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~8.0.7232.0
Microsoft-Windows-InternetExplorer-Package~31bf3856ad364e35~amd64~~8.0.7232.0
Microsoft-Windows-Killbits-Package~31bf3856ad364e35~amd64~~8.0.7232.0
Microsoft-Windows-Media-Format-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-Personalization-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-Printing-LocalPrinting-Home-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-Printing-PremiumTools-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-Security-SPP-Component-SKU-Ultimate-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-ServicingBaseline-Ultimate-Package~31bf3856ad364e35~amd64~~6.1.7232.0
Microsoft-Windows-Shell-SoundThemes-Package~31bf3856ad364e35~amd64~~6.1.7232.0

Please note that VHD versions (as with my 7232 x62) have differeny versions in sources (taken from 7137), so you need to extract dism from the install.wim (windows\system32\dism.exe and windows\system32\dism\dism*.*) in that case and place the files in the sourcs-folder.

Also I have not yet tested vLite or installation yet. Think I will try plain installation first.

Edited by Jeronimo
Posted

Great job guys (dead0 & Jeronimo) :) As far as the winsxs/backup folder i always delete it haven't had any issues with that. Scripts are very nice will have to give them a whirl. So far loving this build 7232 it works really well and its pretty much close to final. :thumbup

Posted

Jeronimo, in line 3 of file rempckgs.bat you have a "ECHO":

echo %dism%:Microsoft-Hyper-V-Common-Drivers-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0

is wrong?

Posted (edited)
Jeronimo, in line 3 of file rempckgs.bat you have a "ECHO":

echo %dism%:Microsoft-Hyper-V-Common-Drivers-Package~31bf3856ad364e35~%bits%~~6.1.%version%.0

is wrong?

Yep, that was a test. Thanks for the heads up, I corrected it (did remove the package, see last code-bit where he package is not shown).

Edited by Jeronimo
Posted

hi, i just did a iso image for WINDOWS 7 and now when i want to start this iso in a virtual machine (microsoft virtual machine tool) win7 installation says me that the cd key is not accaptable for the installation files or smthing like that.

someone got a clue what might be the problm ?

Posted
@dead0: I checked if winsxs\backup can be removed, but I am not too sure especially when I read this

I am creating batch file that is reusable for the aactions specified, should not be that complex.

it should be ok to delete the files from the backup folder as they're already in the system32/winsxs folder but i would suggest deleting those files from vstemp19\windows\winsxs\backup when vlite is doing its thing?!

Posted

ps if you use dism to remove packages, they are not completely removed? ie if you remove the printer drivers package, the drivers are still left in the winsxs folder so you may have to remove them manually! also, does anyone find that removing the packages actually makes the install size bigger?

Posted
guys do you have link for WAIK Win7, cause i need the imagex.. if you have link for it, pls.. give it here or.. PM me the WAIK or imagex thx guys.

if you only need imagex, use waik 1.1 as its much quicker than the one in waik 7

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...