Jump to content

Windows 7 x64 vLite "extreme removal"


Jeronimo

Recommended Posts


@gendouhydeist: I used the one delivered with vLite and I would use the one from Windows Vista AIK SP1 if I would need it now.

@Cr4z33: I do not even need to check, I now I always use mountrw in my batch-file and never mount.

Link to comment
Share on other sites

@gendouhydeist: I used the one delivered with vLite and I would use the one from Windows Vista AIK SP1 if I would need it now.

@Cr4z33: I do not even need to check, I now I always use mountrw in my batch-file and never mount.

Yeah, my fault actually.

I just realised I had to run no commands at all apart from removal.bat and its related actions... :blushing:

Link to comment
Share on other sites

OK I am getting a different problem now.

I succesfully created a first Windows 7 Ultimate ITA installation, but I didn't like the fact .NET Framework was missing and many programs needed it.

So I started again making a new revision, but now during the Windows installation I get a generic installation error when the setup is at the Updates step. :no:

I have to say I got some errors while running removal.bat, also I didn't need to include languages (I've got an Italian RTM build), drivers and updates.

All I want is to remove the unneeded stuff but Windows Media Player, .NET Framework and the Intel Matrix Storage drivers.

Therefore I deselected Windows Media Player and the INTEL driver in vLite, and used "set remove.NET=K" in REMOVAL.BAT.

Here is how does my batch file look like:

@echo off

REM Initialisation part 2 triggered from removal_custom.bat
if "%1" == "init2" goto init2

REM Initialising environment variables (check for your usage)
REM ----------------------------------------------------------------------------
REM Windows codebase: amd64, x86 or empty (determine from %DVD%\setup.exe)
set cb=amd64
REM Windows 7 build
set build=7600
REM Sub version
set svn=16385
REM Pre-part (the same for all Windows 7 builds?)
set pre=31bf3856ad364e35
REM Image edition (Starter, HomeBasic, HomePremium, Professional or Ultimate)
set edition=Ultimate
REM Obsolete - Image Index (pre-vLite: 1 HomeBasic/Starter, 2 Home Premium, 3 Professional, 4 Ultimate)
set II=4
REM Remove Microsoft.NET (C for complete removal, V to keep vLite working or K to keep)
set remove.NET=K

REM Folder of updates to be integrated
set updateloc=C:\vLite\Updates
REM Extenstion of the updates to be integrated (msu, cab or * for all/both)
set update.ext=*

REM Folder of drivers to be integrated
set driverloc=C:\vLite\Drivers

REM Language to be integrated (do not change to your en-US/0409)
set lang=it-IT
set langid=1040
REM Program location intlcfg.exe (WAIK)
set intlcfg=C:\vLite\intlcfg.exe
REM Location Language pack and extracted files for Localised Setup
set langloc=C:\vLite\Langpack

REM DVD & sources-folder containing install.wim (and dism.exe)
set DVD=D:\s1

REM Folder for mount (Dism/Imagex) or Root (Imagex)
set mount=D:\s2

REM Imagex
set imagex="C:\vLite\imagex.exe"
Rem Dism
set dism="%sources%\dism.exe"

REM Command for install WIM tweak
REM -----------------------------
set iwt=install_wim_tweak.exe /p %mount% /m

REM Command for creating an image from an active installation at OOBE (EXAMPLE!)
REM ----------------------------------------------------------------------------
REM %imagex% /compress maximum /flags "HomePremium" /capture e: c:\install.wim "Windows 7 Home Premium" "Windows 7 Home Premium"


REM Initialising other environment variables
REM ----------------------------------------------------------------------------
:init2
set PATH=%PATH%;%cd%
set version=6.1.%build%.%svn%
set tail=~%pre%~%cb%~~%version%
set IEver=8.0.%build%.%svn%
set tailIE=~%pre%~%cb%~~%IEver%
if not exist %mount% mkdir %mount%
set sources=%DVD%\sources

REM Set Image id for your edition
for /l %%i in (1,1,6) do (
%imagex% /info "%sources%\install.wim" %%i|find /i "flags"|find /i "%edition%" >nul
if not errorlevel 1 set II=%%i
)

REM Set the proper codebase
if %cb% == "" (
find /i "processorArchitecture=""amd64""" "%DVD%\setup.exe" >nul
if not errorlevel 1 (set cb=amd64) else (set cb=x86)
)

REM Imagex mount/unmount
set mountimagex=%imagex% /mountrw "%sources%\install.wim" %II% "%mount%"
set unmountimagex=%imagex% /unmount /commit %mount%
set discardimagex=%imagex% /unmount %mount%

REM Dism mount/unmount
set mountdism=%dism% /mount-wim /wimfile:"%sources%\install.wim" /index:%II% /mountdir:%mount%
set unmountdism="%sources%\dism.exe" /unmount-wim /mountdir:%mount% /commit
set discarddism="%sources%\dism.exe" /unmount-wim /mountdir:%mount% /discard
set getpackages="%sources%\dism.exe" /image:%mount% /get-packages
set rempackage="%sources%\dism.exe" /image:%mount% /remove-package /packagename:

REM Command for mounting by Imagex or Dism (currently Imagex)
REM ---------------------------------------------------------
set mountimage=if not exist "%mount%\Windows" %mountimagex%
set unmountimage=if exist "%mount%\Windows" %unmountimagex%
set discardimage=if exist "%mount%\Windows" %discardimagex%
REM set mountimage=if not exist "%mount%\Windows" %mountdism%
REM set unmountimage=if exist "%mount%\Windows" %unmountdism%
REM set discardimage=if exist "%mount%\Windows" %discarddism%


REM Initialisation part 2 triggered from removal_custom.bat
if "%1" == "init2" goto end
REM Languagepack integration Windows (pre-vLite)
if "%1"=="langpack" goto langpack
REM Languagepack integration Setup (pre-vLite)
if "%1"=="langpack2" goto langpack2
REM Update integration (pre-vLite)
if "%1"=="updates" goto updates
REM Packages removal (pre-vLite)
if "%1"=="packages" goto packages
REM Update integration + packages removal (pre-vLite)
if "%1"=="pre" goto updates
REM Cleanup of "redundant files and folders (post-vLite)
if "%1"=="cleanup" goto cleanup
REM Integrate drivers (post-vLite)
if "%1"=="drivers" goto drivers
REM Not recommended: packages+cleanup+drivers (pre-vLite)
if "%1"=="full" goto packages
REM Clean-up + integrate drivers (post-vLite prefereable)
if "%1"=="post" goto cleanup
REM Actions under the freshly installed Windows (post-installation)
if "%1"=="final" goto final


REM Initialisation of environment variables for manual use
set updates=%0 updates
set langpack=%0 langpack
set langpack2=%0 langpack2
set packages=%0 packages
set cleanup=%0 cleanup
set drivers=%0 drivers
set pre=%0 pre
set post=%0 post
set full=%0 full
set final=%0 final

REM Custom action in removal_custom.bat
if exist removal_custom.bat (
if not "%1" == "" set %1=removal_custom.bat %1
removal_custom.bat %1
if not "%1" == "" goto unmount
)

start "WIM-prompt" cmd
exit

REM Update integration (pre-vLite)
REM ----------------------------------------------------------------------------
:updates
%mountimage%
for /f %%i in ("%updateloc%\*.%update.ext%") do %dism% /image:"%mount%" /add-package /packagepath:"%%i"
if "%1" == "updates" goto unmount


REM Packages removal (pre-vLite)
REM ----------------------------------------------------------------------------
:packages
%mountimage%
REM Perform the install Wim tweak
%iwt%

REM Remove "localisation" packages
%getpackages%|find "Microsoft-Windows-Client-LanguagePack-Package~%pre%~%cb%~%lang%~%version%" >nul
if not errorlevel 1 if not "%lang%" == "en-US" %rempackage%Microsoft-Windows-Client-LanguagePack-Package~%pre%~%cb%~en-US~%version%
%rempackage%Microsoft-Windows-LocalPack-AU-Package%tail%
%rempackage%Microsoft-Windows-LocalPack-CA-Package%tail%
%rempackage%Microsoft-Windows-LocalPack-GB-Package%tail%
%rempackage%Microsoft-Windows-LocalPack-US-Package%tail%
%rempackage%Microsoft-Windows-LocalPack-ZA-Package%tail%

REM Remove "Windows Features" pacakages
%rempackage%Microsoft-Windows-Gadget-Platform-Package%tail%
%rempackage%Microsoft-Windows-IE-Troubleshooters-Package%tail%
%rempackage%Microsoft-Windows-InternetExplorer-Optional-Package%tailIE%
%rempackage%Microsoft-Windows-OpticalMediaDisc-Package%tail%
%rempackage%Microsoft-Windows-Shell-MultiplayerInboxGames-Package%tail%
%rempackage%Microsoft-Windows-SnippingTool-Package%tail%
%rempackage%Microsoft-Windows-StickyNotes-Package%tail%
%rempackage%Microsoft-Windows-Xps-Foundation-Client-Package%tail%

REM Remove packages (1/3)
%rempackage%Microsoft-Hyper-V-Common-Drivers-Package%tail%
%rempackage%Microsoft-Hyper-V-Guest-Integration-Drivers-Package%tail%
%rempackage%Microsoft-Windows-Anytime-Upgrade-Results-Package%tail%
%rempackage%Microsoft-Windows-Backup-Package%tail%
%rempackage%Microsoft-Windows-BLB-Client-Package%tail%
%rempackage%Microsoft-Windows-BusinessScanning-Feature-Package%tail%
%rempackage%Microsoft-Windows-ClipsInTheLibrary-Package%tail%
%rempackage%Microsoft-Windows-GPUPipeline-Package%tail%
%rempackage%Microsoft-Windows-GroupPolicy-ClientExtensions-Package%tail%
%rempackage%Microsoft-Windows-Links-Package%tail%
%rempackage%Microsoft-Windows-MobilePC-Client-Sensors-Package%tail%
%rempackage%Microsoft-Windows-PeerDist-Client-Package%tail%
%rempackage%Microsoft-Windows-PhotoPremiumPackage%tail%
%rempackage%Microsoft-Windows-RecDisc-SDP-Package%tail%
%rempackage%Microsoft-Windows-Shell-HomeGroup-Package%tail%
%rempackage%Microsoft-Windows-TerminalServices-Publishing-WMIProvider-Package%tail%
%rempackage%Microsoft-Windows-TerminalServices-RemoteApplications-Client-Package%tail%
%rempackage%Microsoft-Windows-VirtualPC-Licensing-Package%tail%
%rempackage%Microsoft-Windows-VirtualPC-USB-RPM-Package%tail%
%rempackage%Microsoft-Windows-VirtualXP-Licensing-Package%tail%
%rempackage%Microsoft-Windows-WindowsMediaPlayer-Troubleshooters-Package%tail%
%rempackage%Microsoft-Windows-WinOcr-Package%tail%
if "%edition%"=="Professional" %rempackage%Networking-MPSSVC-Rules-HomePremiumEdition-Package%tail%
if "%edition%"=="HomePremium" %rempackage%Networking-MPSSVC-Rules-BusinessEdition-Package%tail%
if not "%edition%"=="Ultimate" %rempackage%Networking-MPSSVC-Rules-UltimateEdition-Package%tail%

REM Remove packages (2/3)
%rempackage%Microsoft-Media-Foundation-Package%tail%
%rempackage%Microsoft-Windows-Client-Wired-Network-Drivers-Package%tail%
%rempackage%Microsoft-Windows-CodecPack-Basic-Encoder-Package%tail%
%rempackage%Microsoft-Windows-Editions-Client-Package%tail%
%rempackage%Microsoft-Windows-GroupPolicy-ClientTools-Package%tail%
%rempackage%Microsoft-Windows-NetworkDiagnostics-DirectAccessEntry-Package%tail%
%rempackage%Microsoft-Windows-ServicingBaseline-Ultimate-Package%tail%

REM Remove packages (3/3)
if not "%edition%"=="Ultimate" %rempackage%Microsoft-Windows-Anytime-Upgrade-Package%tail%
if "%edition%"=="Professional" %rempackage%Microsoft-Windows-Branding-HomePremium-Client-Package%tail%
if "%edition%"=="HomePremium" %rempackage%Microsoft-Windows-Branding-Professional-Client-Package%tail%
if not "%edition%"=="Ultimate" %rempackage%Microsoft-Windows-Branding-Ultimate-Client-Package%tail%
if not "%remove.NET%" == "K" %rempackage%Microsoft-Windows-NetFx3-OC-Package%tail%
%rempackage%Microsoft-Windows-OfflineFiles-Package%tail%
if "%edition%"=="Professional" %rempackage%Microsoft-Windows-Security-SPP-Component-SKU-HomePremium-Package%tail%
if "%edition%"=="HomePremium" %rempackage%Microsoft-Windows-Security-SPP-Component-SKU-Professional-Package%tail%
if not "%edition%"=="Ultimate" %rempackage%Microsoft-Windows-Security-SPP-Component-SKU-Ultimate-Package%tail%
%rempackage%Microsoft-Windows-ShareMedia-ControlPanel-Package%tail%
if not "%edition%"=="Ultimate" %rempackage%Microsoft-Windows-StorageService-Package%tail%
if "%1"=="packages" goto unmount
if "%1"=="pre" goto unmount


REM Cleanup of "redundant" files and folders (post-vLite)
REM ----------------------------------------------------------------------------
:cleanup
%mountimage%

REM Remove packages
%rempackage%Microsoft-Windows-ICM-Package%tail%
%dism% /image:%mount% /disable-feature:MediaPlayback
echo Disregard the above message, feature was properly disabled!

REM Fix Registry key (NameSpace)
reg load HKLM\%edition%_%part% %mount%\Windows\System32\config\software
reg delete HKLM\%edition%_%part%\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{98D99750-0B8A-4c59-9151-589053683D73} /f
reg unload HKLM\%edition%_%part%

REM Logfiles
del /f /s /q "%mount%\*.log" >nul

REM BITS related files (untested with Windows Update)
REM del /f /q "%mount%\ProgramData\Microsoft\Network\Downloader\qmgr?.dat" >nul

REM Empty folders
rd /s /q "%mount%\Program Files\Windows Portable Devices" >nul
rd /s /q "%mount%\Program Files (x86)\Windows Portable Devices" >nul

REM Internet Explorer
move /y "%mount%\Program Files\Internet Explorer\ieproxy.dll" "%mount%\Windows\system32" >nul
rd /s /q "%mount%\Program Files\Internet Explorer" >nul
rd /s /q "%mount%\Program Files (x86)\Internet Explorer" >nul
rd /s /q "%mount%\Users\Administrator\AppData\Local\Microsoft\Internet Explorer" >nul
del /f /q "%mount%\Users\Administrator\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\*.lnk" >nul

REM Microsoft Games
rd /s /q "%mount%\Program Files\Microsoft Games" >nul

REM Default pictures
rd /s /q "%mount%\ProgramData\Microsoft\User Account Pictures\Default Pictures" >nul

REM Ringtones
rd /s /q "%mount%\ProgramData\Microsoft\Windows\Ringtones" >nul

REM Public
for /d %%i in ("%mount%\Users\Public\*.*") do rd /s /q "%%i" >nul 2>&1

REM Boot languages
for /d %%i in ("%mount%\Windows\Boot\EFI\*-*") do (
if not "%%i" == "%mount%\Windows\Boot\EFI\nl-NL" if not "%%i" == "%mount%\Windows\Boot\EFI\en-US" rd /s /q "%%i" >nul
)

REM Help
%getpackages%|find "Microsoft-Windows-Client-LanguagePack-Package~%pre%~%cb%~en-US~%version%" >nul
if not errorlevel 1 (
del /f /q "%mount%\Windows\Help\mui\0409\*.chm" >nul
del /f /q "%mount%\Windows\Help\Windows\en-US\*.h1s" >nul
)
%getpackages%|find "Microsoft-Windows-Client-LanguagePack-Package~%pre%~%cb%~%lang%~%version%" >nul
if not errorlevel 1 (
del /f /q "%mount%\Windows\Help\mui\%langid%\*.chm" >nul
del /f /q "%mount%\Windows\Help\Windows\%lang%\*.h1s" >nul
)

REM Media
rd /s /q "%mount%\Users\Administrator\AppData\Local\Microsoft\Windows Media" >nul
for /d %%i in ("%mount%\Windows\Media\*") do rd /s /q "%%i" >nul
del /s /f /q "%mount%\Windows\Media\*.mid" >nul

REM Remove Recovery
del /s /f /q "%mount%\Windows\System32\Recovery\*.*" >nul

REM Wallpapers
for /d %%i in (%mount%\Windows\Web\Wallpaper\*) do rd /s /q %%i >nul

REM Windows Powershell
rd /s /q "%mount%\windows\system32\WindowsPowerShell" >nul
rd /s /q "%mount%\windows\syswow64\WindowsPowerShell" >nul

REM Nullify Backup folder (Filenames required for Windows update)
for %%i in ("%mount%\Windows\winsxs\Backup\*") do type nul>"%%i"

REM Redundant drivers
REM ATi
set part=ati
del /f /s /q "%mount%\Windows\inf\%part%*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\%cb%_%part%*" >nul
for /d %%i in (%mount%\Windows\system32\Driverstore\FileRepository\%part%*) do rd /s /q %%i >nul
for /d %%i in (%mount%\Windows\winsxs\%cb%_%part%*) do rd /s /q %%i >nul

REM Brother
set part=brmf
del /f /s /q "%mount%\Windows\inf\%part%*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\%cb%_%part%*" >nul
for /d %%i in (%mount%\Windows\system32\Driverstore\FileRepository\%part%*) do rd /s /q %%i >nul
for /d %%i in (%mount%\Windows\winsxs\%cb%_%part%*) do rd /s /q %%i >nul

REM Fax
set part=faxc
del /f /s /q "%mount%\Windows\inf\%part%*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\%cb%_%part%*" >nul
for /d %%i in (%mount%\Windows\system32\Driverstore\FileRepository\%part%*) do rd /s /q %%i >nul
for /d %%i in (%mount%\Windows\winsxs\%cb%_%part%*) do rd /s /q %%i >nul

REM HP
set part=hp
del /f /s /q "%mount%\Windows\inf\%part%*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\%cb%_%part%*" >nul
for /d %%i in (%mount%\Windows\system32\Driverstore\FileRepository\%part%*) do rd /s /q %%i >nul
for /d %%i in (%mount%\Windows\winsxs\%cb%_%part%*) do rd /s /q %%i >nul

REM Intel Graphics
set part=ig
del /f /s /q "%mount%\Windows\inf\%part%*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\%cb%_%part%*" >nul
for /d %%i in (%mount%\Windows\system32\Driverstore\FileRepository\%part%*) do rd /s /q %%i >nul
for /d %%i in (%mount%\Windows\winsxs\%cb%_%part%*) do rd /s /q %%i >nul

REM Intel Wireless
set part=netw5
del /f /s /q "%mount%\Windows\inf\%part%*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\%cb%_%part%*" >nul
for /d %%i in (%mount%\Windows\system32\Driverstore\FileRepository\%part%*) do rd /s /q %%i >nul
for /d %%i in (%mount%\Windows\winsxs\%cb%_%part%*) do rd /s /q %%i >nul

REM Modem
set part=mdm
del /f /s /q "%mount%\Windows\inf\%part%*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\%cb%_%part%*" >nul
for /d %%i in (%mount%\Windows\system32\Driverstore\FileRepository\%part%*) do rd /s /q %%i >nul
for /d %%i in (%mount%\Windows\winsxs\%cb%_%part%*) do rd /s /q %%i >nul

REM Nvidia
set part=nv
del /f /s /q "%mount%\Windows\inf\%part%*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\%cb%_%part%*" >nul
for /d %%i in (%mount%\Windows\system32\Driverstore\FileRepository\%part%*) do rd /s /q %%i >nul
for /d %%i in (%mount%\Windows\winsxs\%cb%_%part%*) do rd /s /q %%i >nul

REM Printers
set part=prn
del /f /s /q "%mount%\Windows\inf\%part%*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\%cb%_%part%*" >nul
for /d %%i in (%mount%\Windows\system32\Driverstore\FileRepository\%part%*) do rd /s /q %%i >nul
for /d %%i in (%mount%\Windows\winsxs\%cb%_%part%*) do rd /s /q %%i >nul

REM Scanners
set part=wia
del /f /s /q "%mount%\Windows\inf\%part%*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\%cb%_%part%*" >nul
for /d %%i in (%mount%\Windows\system32\Driverstore\FileRepository\%part%*) do rd /s /q %%i >nul
for /d %%i in (%mount%\Windows\winsxs\%cb%_%part%*) do rd /s /q %%i >nul

REM Microsoft.Net
if "%remove.NET%" == "K" goto fonts
for /f %%i in ('dir %mount%\Windows\assembly\1.0* /s /ad /b') do rd /s /q "%%i" >nul
for /f %%i in ('dir %mount%\Windows\assembly\3.0* /s /ad /b') do rd /s /q "%%i" >nul
for /f %%i in ('dir %mount%\Windows\assembly\3.5* /s /ad /b') do rd /s /q "%%i" >nul
for /f %%i in ('dir %mount%\Windows\assembly\8.0* /s /ad /b') do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\assembly\NativeImages*") do rd /s /q "%%i" >nul
if "%remove.NET%" == "V" (
for /f %%i in ('dir %mount%\Windows\assembly\GAC_32\2.0* /s /ad /b') do rd /s /q "%%i" >nul
for /f %%i in ('dir %mount%\Windows\assembly\GAC_64\2.0* /s /ad /b') do rd /s /q "%%i" >nul
) else (
REM Complete removal (including files in GAC_MSIL)
for /f %%i in ('dir %mount%\Windows\assembly\2.0* /s /ad /b') do rd /s /q "%%i" >nul
)
del /f /q "%mount%\Windows\Microsoft.NET\Framework\*.*" >nul
for /d %%i in ("%mount%\Windows\Microsoft.NET\Framework\v1.*") do rd /s /q "%%i" >nul
if "%cb%" == "amd64" del /f /q "%mount%\Windows\Microsoft.NET\Framework64\*.*" >nul
REM Language folders and repository for x86 and (if present) amd64
for /f %%i in ('dir %mount%\Windows\Microsoft.NET\10?? /ad /s /b') do rd /s /q "%%i" >nul
for /f %%i in ('dir %mount%\Windows\Microsoft.NET\?? /ad /s /b') do rd /s /q "%%i" >nul
for /f %%i in ('dir %mount%\Windows\Microsoft.NET\ASP.NETWebAdminFiles /ad /s /b') do rd /s /q "%%i" >nul
REM Required for installation
REM for /f %%i in ('dir %mount%\Windows\Microsoft.NET\Config /ad /s /b') do rd /s /q "%%i" >nul
for /f %%i in ('dir %mount%\Windows\Microsoft.NET\GAC /ad /s /b') do rd /s /q "%%i" >nul
for /f %%i in ('dir %mount%\Windows\Microsoft.NET\MUI /ad /s /b') do rd /s /q "%%i" >nul
for /f %%i in ('dir %mount%\Windows\Microsoft.NET\MSBuild /ad /s /b') do rd /s /q "%%i" >nul
for /f %%i in ('dir %mount%\Windows\Microsoft.NET\RedistList /ad /s /b') do rd /s /q "%%i" >nul
for /f %%i in ('dir %mount%\Windows\Microsoft.NET\repository /ad /s /b') do rd /s /q "%%i" >nul
del /f /q %mount%\Windows\system32\dfshim.dll >nul
del /f /q %mount%\Windows\system32\netfxperf.dll >nul
del /f /s /q %mount%\Windows\system32\mscoree.dll >nul
del /f /s /q %mount%\Windows\system32\mscorier.dll >nul
rd /s /q %mount%\Windows\system32\MUI >nul
if "%cb%" == "amd64" (
del /f /q %mount%\Windows\SysWow64\dfshim.dll >nul
del /f /q %mount%\Windows\SysWow64\netfxperf.dll >nul
REM Required for vLite
if not "%remove.NET%" == "V" del /f /s /q %mount%\Windows\SysWow64\mscoree.dll >nul
del /f /s /q %mount%\Windows\SysWow64\mscorier.dll >nul
rd /s /q %mount%\Windows\SysWow64\MUI >nul
)
REM Removal of mscories.dll causes a non-fatal error with personalization upon first boot

REM Fonts
:fonts
del /f /s /q "%mount%\Windows\Fonts\angsa*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\aparaj*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\calibri*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\cambria*.tt?" >nul
del /f /s /q "%mount%\Windows\Fonts\Candara*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\comic*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\consola*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\constan*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\corbel*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\cordia*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\daunpenh.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\dokchamp*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\ebrima*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\estr*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\euphemia.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\framd*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\Gabriola.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\gautami*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\georgia*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\gisha*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\himalaya.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\impact.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\iskpota*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\kalinga*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\kartika*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\KhmerUI*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\kokila*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\LaoUI*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\latha*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\leelaw*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\l_10646.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\majalla*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\malgun*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\mangal*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\monbaiti.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\moolbor*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\msuighur.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\msyi.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\mvboli.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\ntailu*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\nyala.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\pala*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\phagspa*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\plant*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\raavi*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\modern.fon" >nul
del /f /s /q "%mount%\Windows\Fonts\roman.fon" >nul
del /f /s /q "%mount%\Windows\Fonts\script.fon" >nul
del /f /s /q "%mount%\Windows\Fonts\segoepr*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\segoesc*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\Shonar*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\shruti*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\sylfaen.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\taile*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\tunga*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\utsaah*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\vani*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\vijaya*.ttf" >nul
del /f /s /q "%mount%\Windows\Fonts\vrinda*.ttf" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-angsa*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-aparaj*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-calibri*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-cambria*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-Candara*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-comic*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-consola*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-constan*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-corbel*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-cordia*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-daunpenh_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-dokchamp*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-ebrima*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-estr*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-euphemia_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-franklingothic_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-Gabriola_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-gautami*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-georgia*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-gisha*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-microsofthimalaya_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-impact_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-iskoolapota_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-kalinga*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-kartika*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-KhmerUI*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-kokila*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-LaoUI*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-latha*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-leelaw*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-lucidasans_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-sakkalmajalla*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-malgun*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-mangal*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-mongolianbaiti_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-moolbor*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-microsoftuighur_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-yibaiti_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-mvboli_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-new_tai*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-nyala_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-pala*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-phagspa*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-plant*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-raavi*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-segoepr*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-segoesc*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-Shonar*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-shruti*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-sylfaen_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-tai_le*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-tunga*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-utsaah*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-vani*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-vijaya*_*") do rd /s /q "%%i" >nul
for /d %%i in ("%mount%\Windows\winsxs\*-vrinda*_*") do rd /s /q "%%i" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-angsa*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-aparaj*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-calibri*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-cambria*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-Candara*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-comic*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-consola*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-constan*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-corbel*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-cordia*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-daunpenh_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-dokchamp*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-ebrima*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-estr*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-euphemia_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-franklingothic_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-Gabriola_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-gautami*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-georgia*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-gisha*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-microsofthimalaya_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-impact_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-iskoolapota_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-kalinga*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-kartika*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-KhmerUI*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-kokila*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-LaoUI*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-latha*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-leelaw*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-lucidasans_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-sakkalmajalla*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-malgun*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-mangal*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-mongolianbaiti_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-moolbor*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-microsoftuighur_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-yibaiti_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-mvboli_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-new_tai*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-nyala_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-pala*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-phagspa*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-plant*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-raavi*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-segoepr*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-segoesc*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-Shonar*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-shruti*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-sylfaen_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-tai_le*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-tunga*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-utsaah*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-vani*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-vijaya*_*" >nul
del /f /s /q "%mount%\Windows\winsxs\Manifests\*-vrinda*_*" >nul
if "%1" == "cleanup" goto unmount

REM Driver integration (post-vLite, final step prefereable)
REM ----------------------------------------------------------------------------
:drivers
%mountimage%
%dism% /image:"%mount%" /add-driver /driver:"%driverloc%" /recurse
goto unmount

REM Languagepack integration (pre-vLite)
REM ----------------------------------------------------------------------------
:langpack
%mountimage%
%dism% /image:"%mount%" /add-package /packagepath:"%DVD%\original\lp7264x64.cab"

REM Windows Language
%intlcfg% -all:%lang% -image:%mount%
%intlcfg% -genlangini -dist:"%DVD%" -image:%mount%
%intlcfg% -defaultlang:%lang% -dist:"%DVD%"
%unmountimage%

REM Setup Language
echo Integration of Language pack into setup Language not fully automated (yet)
echo Extract the following files from "%langloc%\lp7264x64.cab":
echo "setup\sources\%lang%\*.*" -> "%langloc%\setup\sources\%lang%\*.*"
echo "sources\license\*.*" -> "%langloc%\sources\license\*.*"
echo When using different paths, rename these within "%0" and use:
echo "%0" langpack2
goto unmount

:langpack2
%imagex% /mountrw "%sources%\boot.wim" 2 "%mount%"
xcopy "%sources%\lang.ini" "%mount%\sources" /cheryki
mkdir "%mount%\sources\%lang%"
xcopy "%langloc%\setup\sources\%lang%\*.*" "%mount%\sources\%lang%" /cheryki
xcopy "%langloc%\sources\license\*.*" "%mount%\sources\license" /cheryki
%unmountimagex%
goto unmount

REM Actions under the freshly installed Windows (post-installation)
:final
REM Register file required for safe removal and proper explorer functionality
if exist "%SystemRoot%\system32\ieproxy.dll" regsvr32 /s "%SystemRoot%\system32\ieproxy.dll"
REM Remove Microsoft.NET files, but keeping those used by vLite
if "%remove.NET" == "K" goto end
takeown /f "%SystemRoot%\assembly\NativeImages*" /r >nul
icacls "%SystemRoot%\assembly\NativeImages*" /grant Administrators:F /t /q >nul
for /d %%i in ("%SystemRoot%\assembly\NativeImages*") do rd /s /q "%%i" >nul
takeown /f "%SystemRoot%\Microsoft.NET" /r >nul
icacls "%SystemRoot%\Microsoft.NET" /grant Administrators:F /t /q >nul
rd /s /q "%SystemRoot%\Microsoft.NET\Framework64" >nul
for /f %%i in ('dir %SystemRoot%\Microsoft.NET\Config /ad /s /b') do rd /s /q "%%i" >nul
set dn=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727
mkdir "%dn%\Temp"
move /y "%dn%\fusion.dll" "%dn%\Temp" >nul
move /y "%dn%\mscorie.dll" "%dn%\Temp" >nul
move /y "%dn%\mscorjit.dll" "%dn%\Temp" >nul
move /y "%dn%\mscorlib.dll" "%dn%\Temp" >nul
move /y "%dn%\mscorrc.dll" "%dn%\Temp" >nul
move /y "%dn%\mscorwks.dll" "%dn%\Temp" >nul
move /y "%dn%\sort*.nlp" "%dn%\Temp" >nul
del /f /q "%dn%\*.*" >nul
move /y "%dn%\Temp\*.*" "%dn%" >nul
rd /s /q "%dn%\Temp"
takeown /f "%SystemRoot%\system32\mscories.dll" >nul
takeown /f "%SystemRoot%\SysWow64\mscories.dll" >nul
icacls "%SystemRoot%\system32\mscories.dll" /grant Administrators:F /q >nul
icacls "%SystemRoot%\Syswow64\mscories.dll" /grant Administrators:F /q >nul
del /f /q "%SystemRoot%\system32\mscories.dll" >nul
del /f /q "%SystemRoot%\SysWow64\mscories.dll" >nul
goto unmount

REM Commit the image if all went wel (pre-vLite)
REM ----------------------------------------------------------------------------
:unmount
if not errorlevel 1 %unmountimage%
if exist "%mount%\Windows" echo An error occured, please commit/discard your image manually

:end

Can you please help me Jeronimo posting here a custom REMOVAL.BAT for my needs? :}

Edited by Cr4z33
Link to comment
Share on other sites

I appreciate the work of those involved but these guides are very poorly laid out and written. Many people are receiving errors due to steps overlooked or not easily understood due to gaps in the guides.

May I suggest a detailed, step-by-step guide that uniformly addresses what users should expect, must do and can easily understand? One will be surprised how a little structure in guides goes a long way to solving common issues and preventing common mistakes.

Link to comment
Share on other sites

@kawe: I saw it, but I will not participate in illegal distribution.

@Cr4z33: sorry, but I can only help you out once I have my own non-English release. I had no issues when integrating Dutch, removing English and that performing the additional actions.

ah well, ur right, missed that. well now i am trying to follow some guides and do it myself but still cant figure it out why i am having problems finishing installation. Replied to other topic but with no results. maybe u can help out

i followed the guide made by liquid and finished removing components with dism. problem is that at end of install i get error that setup couldnt configure win to work with my comps hardware..

didnt even edit the removal/components batches

Link to comment
Share on other sites

Thanks alot for your lovely tool Jeronimo, I have been using it for some time and playing around with the removal in integration of language packs.

I got 2 suggestion for a "maybe" better code:

When i run removal.bat it doesnt want to open dism.exe (cannot find the %sources%\dism.exe). I found a quick solution by moving the "set sources=%DVD%\sources" just below "set dism="%sources%\dism.exe""

like this

Rem Sources
set sources=%DVD%\sources
Rem Dism
set dism="%sources%\dism.exe"

Next part is the

:langpack
%mountimage%
%dism% /image:"%mount%" /add-package /packagepath:"%DVD%\original\lp7264x64.cab"

Here i changed

%DVD%\original\lp7264x64.cab

to

%langloc%\lp7264x64

%dism% /image:"%mount%" /add-package /packagepath:"%langloc%\lpx64.cab"

I hope u can use this information or test it yourself.

Link to comment
Share on other sites

@Rommsey: I intended to share my findings here and to make it easier for others where possible, I had/have no intention of writing a step-by-step guide.

@Cr4z33: sorry but I am not going to look through your entire batch file to see if there might be a mistake in it.

@frabber: thanks, starter post updated

Link to comment
Share on other sites

I got an issue with integrating updates with the batch file provided.

Anyone else got problems with that? I can integrate them doing manual file names and locations, but when using the batch file it doesn't work. I have tried working it out but cant seem too solve it.

If i got the updates in the same directory with an other code it works. but when moving them to another dir it doesn't work. Anyone else got issues with "removal.bat updates"?

I am trying different options right now to figure out how to solve this but haven't yet. I hope I'm not the only one having this issue?

PS. I have tried the standard paths provided in the batch file, everything else works but the update integration :(

Edited by franner
Link to comment
Share on other sites

What kind of errors did you get running removal.bat?

Well, considering I am running it on an Italian release and that I am not including languages, updates & drivers I get missing packages errors when running the packages and cleanup steps.

I tried to cleanup a little bit the batch, but if I will get no support into that I am definitely going to give up and use another better explained and better working method. :hello:

Link to comment
Share on other sites

I cannot apply the install_wim_tweak in no f*****g way neither in a real x64 partition nor into wmware because of ownership problems. :realmad:

SYSTEM is the owner and I cannot find a way to take the ownership of the SOFTWARE file located into C:\s2\windows\system32\config.

Even if I apply the authorization settings when I run the tweak I get that annoying error showed below again and again.

For the record it says something like "Exception not handled: System.Unauthorizedblah blah blah" and "Access to path: 'c:\s2\windowsblah blahblah' denied".

Please help. :(

errorzit.png

Seriously people if someone finds a solution to this please post it here. :(

do you have UAC enabled? if so, try disabling that & try again? also, make sure you're using imagex from amd64 to mount the wim to c:\s2...?

Edited by dead0
Link to comment
Share on other sites

@Rommsey: I intended to share my findings here and to make it easier for others where possible, I had/have no intention of writing a step-by-step guide.

@Cr4z33: sorry but I am not going to look through your entire batch file to see if there might be a mistake in it.

@frabber: thanks, starter post updated

This is why your guide is very poor and despite your good intentions to help people with your findings, such intentions are wasted by refusing to clearly state your findings and then not offer help directly to someone who tried to follow your steps and ran into issues.

Liquid's guide is superior and as such it's clear that Cr4z33 is making the better choice in looking for help elsewhere.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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