worried mostly about the big updates KB2919355 and KB3000850...i know the others probably want installed online... i test it again vbox if see any diffrence i send details...!!!
Although the windows update shows these big updates KB2919355 and KB3000850 but when you select and download them the actual size will be smaller in size for the required component its asking for to update. after installed these updates check in Windows\SoftwareDistribution\Download folder and find the the above two updates cab files and open them in 7-zip and see inside the cab file which components it was asking for to update.
Windows wimgapi resourses mcrosoft windows client aux resourses microsoft twinui resourses microsoft twinnapi something like that files i find inside the 2 .cabs is possible take that .cab for intergrate them or something ???
After using resetbase and checking Windows Update, it offered these two updates KB2962409 (2.1 MB), KB2919355 (2.6 MB) But when installed this two updates and checked inside the <Windows\SoftwareDistribution\Download> folder these two updates were found KB2959977, KB2980654 and checking these updates with 7-zip it was offered to update OneDrive and Windows Update client components. But I had removed all metro apps including onedrive, camera, store and still the windows update offered two updates to update these components. the same is the case with windows defender even if you had removeed this component the Windows Update will offer the update for it. For you it has offered updates for Windows Update and WIM Image servicing related components. Yes you can get those express cab files and place them in ToolKit's Updates\w8x\x64\custom folder integrate them with ToolKit. But you need to check again after using resetbase to know what's the outcome.
Hi MSGM ! Another feedback... 1) In function :ImportReg2WIM Spoiler Code: :ImportReg2WIM setlocal set RegMount=%~1 :: Loading WIM Registry for Offline Editing echo. echo.Loading WIM Registry for Offline Editing... reg load HKLM\WIM_Software "%RegMount%\Windows\System32\config\software" >nul reg load HKLM\WIM_System "%RegMount%\Windows\System32\config\system" >nul reg load HKLM\WIM_Default "%RegMount%\Users\Default\ntuser.dat" >nul :: Importing Registry Settings to WIM Registry echo. echo.Importing Registry Settings to WIM Registry... reg import %~2 2>nul :: Un-Loading WIM Registry... echo. echo.Un-Loading WIM Registry... reg unload HKLM\WIM_Software >nul reg unload HKLM\WIM_System >nul reg unload HKLM\WIM_Default >nul echo. :ImportReg2WIM , it's seems something missing Code: set RegMount= endlocal goto :eof 2) Code optimization (:IntGames [it's just a mimic of a ToolKit previous version]) Spoiler Code: :IntGames setlocal set SetGames= REM ---- Added ---- set GameXPack= cls echo.=============================================================================== echo. MSMG ToolKit - Integrate Microsoft Games echo.=============================================================================== echo. :: Checking Whether the Selected Source OS Is a Windows Server Edition or Not if "%WimIndexInstallType%" == "Server" ( echo.Windows Server 2008 R2 / 2012 R2 Edition OS Is Not Supported... echo. echo.Please Use Windows 7.x / 8.1 Client Edition OS as Source... goto :Stop ) :: Getting WIM Image Index Architecture call :GetWimIndexArch %InstallWim%, %WimIndexNo% >nul :: Checking Whether Microsoft Games Folder <Packs\Games> is Empty if not exist "%Games%\%WimIndexArch%\*.*" ( echo.Microsoft Games Folder ^<Packs\Games\%WimIndexArch%^> Is Empty... echo. echo.Please Copy Microsoft Games Files to Respective Folder... goto :Stop ) :: Checking Whether Microsoft Games MUI Folder <Packs\Games\*_mui> is Empty if not exist "%Games%\%WimIndexArch%_mui\*.*" ( echo.Microsoft Games MUI Folder ^<Packs\Games\%WimIndexArch%_mui^> Is Empty... echo. echo.Please Copy Microsoft Games MUI Files to Respective Folder... goto :Stop ) REM ---- Added ---- if "%SOS%" == "w7x" if "%WimIndexInstallType%" == "Client" goto :VGames if "%SOS%" == "w7x" if "%WimIndexInstallType%" == "Embedded" goto :W8xGames if not "%SOS%" == "w7x" goto :W8xGames :VGames echo.=============================================================================== echo. MSMG ToolKit - Integrate Microsoft Games Menu echo.=============================================================================== echo. echo. *** Windows XP ^& Vista Games *** echo. echo. [A] Carioca Rummy echo. Hold'Em echo. [C] Inkball echo. [D] Pinball echo. [E] Sudoku echo. [F] Tinker echo. echo. echo. echo. echo. echo. [1] Add All Games echo. echo. [X] Go Back echo. echo.=============================================================================== echo. choice /C:ABCDEF1X /N /M "Enter your choice : " if errorlevel 8 goto :Integrate if errorlevel 7 (set "SetGames=AllGames" & set "GameXPack=AllXPVistaGames") if errorlevel 6 set "SetGames=Tinker" if errorlevel 5 set "SetGames=Sudoku" if errorlevel 4 set "SetGames=Pinball" if errorlevel 3 set "SetGames=Inkball" if errorlevel 2 set "SetGames=HoldEm" if errorlevel 1 set "SetGames=CariocaRummy" :W8xGames echo.=============================================================================== echo. MSMG ToolKit - Integrate Microsoft Games Menu echo.=============================================================================== echo. ^| echo. *** Windows 7 Games *** ^| *** Windows XP ^& Vista Games *** echo. [A] Chess Titans ^| [M] Carioca Rummy echo. FreeCell ^| [N] Hold'Em echo. [C] Hearts ^| [O] Inkball echo. [D] Mahjong Titans ^| [P] Pinball echo. [E] Minesweeper ^| [Q] Sudoku echo. [F] Purble Place ^| [R] Tinker echo. [G] Solitaire ^| echo. [H] Spider Solitaire ^| echo. ^| echo. *** Multi-Player Online Games *** ^| [1] Add All Games echo. Internet Backgammon ^| [2] Add All Windows 7 Games echo. [J] Internet Checkers ^| [3] Add All XP ^& Vista Games echo. [K] Internet Spades ^| [4] Add All Online Games echo. [L] More Games from Microsot ^| echo. ^| [X] Go Back echo. ^| echo.=============================================================================== echo. choice /C:ABCDEFGHIJKLMNOPQR1234X /N /M "Enter your choice : " if errorlevel 23 goto :Integrate if errorlevel 22 (set "SetGames=AllGames" & set "GameXPack=AllOnlineGames") if errorlevel 21 (set "SetGames=AllGames" & set "GameXPack=AllXPVistaGames") if errorlevel 20 (set "SetGames=AllGames" & set "GameXPack=All7Games") if errorlevel 19 (set "SetGames=AllGames" & set "GameXPack=AllWinGames") if errorlevel 18 set "SetGames=Tinker" if errorlevel 17 set "SetGames=Sudoku" if errorlevel 16 set "SetGames=Pinball" if errorlevel 15 set "SetGames=Inkball" if errorlevel 14 set "SetGames=HoldEm" if errorlevel 13 set "SetGames=CariocaRummy" if errorlevel 12 set "SetGames=MoreGames" if errorlevel 11 set "SetGames=Spades" if errorlevel 10 set "SetGames=Checkers" if errorlevel 9 set "SetGames=Backgammon" if errorlevel 8 set "SetGames=SpiderSolitaire" if errorlevel 7 set "SetGames=Solitaire" if errorlevel 6 set "SetGames=PurblePlace" if errorlevel 5 set "SetGames=Minesweeper" if errorlevel 4 set "SetGames=MahjongTitans" if errorlevel 3 set "SetGames=Hearts" if errorlevel 2 set "SetGames=FreeCell" if errorlevel 1 set "SetGames=ChessTitans" cls echo.=============================================================================== echo. MSMG ToolKit - Integrate Microsoft Games echo.=============================================================================== echo. echo.------------------------------------------------------------------------------- echo.°°°°Starting Integrating Microsoft Games°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° echo.------------------------------------------------------------------------------- echo. echo.Source WIM Image : Install.wim if "%WimIndexNo%"=="*" echo.Source WIM Indexes : 1-%TotalWimIndexes% if not "%WimIndexNo%"=="*" echo.Source WIM Index : %WimIndexNo% echo.Source WIM Architecture : %WimIndexArch% echo.Source WIM Build : %WimIndexVersion%.%WimIndexVersionSPB% echo. echo.------------------------------------------------------------------------------- echo.°°°°Integrating Microsoft Games°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° echo.------------------------------------------------------------------------------- echo. echo. echo. echo. echo. echo. echo. if "%SetGames%"=="Tinker" ( if "%WimIndexNo%"=="*" ( echo.------------------------------------------------------------------------------- echo.Integrating Microsoft Tinker Game to WIM Image... echo.------------------------------------------------------------------------------- echo. for /L %%i in (1, 1, %TotalWimIndexes%) do ( if not %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################# if %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################ echo. :: Integrating Microsoft Tinker Game Files to WIM Image File echo.Copying Microsoft Tinker Game Files... if "%WimIndexArch%"=="x86" %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Tinker\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Tinker" >nul if "%WimIndexArch%"=="x64" %XCopy% "%Games%\%WimIndexArch%\Program Files (x86)\Microsoft Games\Tinker\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Tinker" >nul echo. call :GetWimIndexInfo %InstallWim%, %%i if "%WimIndexDefaultLang%"=="en-GB" set WimIndexDefaultLang="en-US" if "%WimIndexDefaultLang%"=="zh-HK" set WimIndexDefaultLang="zh-TW" :: Integrating Microsoft Tinker Game Explorer Data Files to WIM Image File echo.Copying Microsoft Tinker Game Explorer Data Files... %XCopy% "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\GameExplorer\{47F97240-F857-4146-8F3D-7F16816BAE4E}\*.*" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\GameExplorer\{47F97240-F857-4146-8F3D-7F16816BAE4E}" >nul %XCopy% "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\GameExplorer\{846E5638-E55A-4C48-A45C-FC729E217D83}\*.*" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\GameExplorer\{846E5638-E55A-4C48-A45C-FC729E217D83}" >nul echo. :: Integrating Microsoft Tinker Game Shortcut Files to WIM Image File echo.Copying Microsoft Tinker Game Shortcut Files... if not exist "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" md "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Tinker.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Tinker Level Editor.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul echo. ) ) else ( echo.------------------------------------------------------------------------------- echo.Integrating Microsoft Tinker Game to WIM Image... echo.------------------------------------------------------------------------------- echo. :: Integrating Microsoft Tinker Game Files to WIM Image File echo.Copying Microsoft Tinker Game Files... if "%WimIndexArch%"=="x86" %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Tinker\*.*" "%InstallMnt%\Program Files\Microsoft Games\Tinker" >nul if "%WimIndexArch%"=="x64" %XCopy% "%Games%\%WimIndexArch%\Program Files (x86)\Microsoft Games\Tinker\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Tinker" >nul echo. if "%WimIndexDefaultLang%"=="en-GB" set WimIndexDefaultLang="en-US" if "%WimIndexDefaultLang%"=="zh-HK" set WimIndexDefaultLang="zh-TW" :: Integrating Microsoft Tinker Game Explorer Data Files to WIM Image File echo.Copying Microsoft Tinker Game Explorer Data Files... %XCopy% "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\GameExplorer\{47F97240-F857-4146-8F3D-7F16816BAE4E}\*.*" "%InstallMnt%\ProgramData\Microsoft\Windows\GameExplorer\{47F97240-F857-4146-8F3D-7F16816BAE4E}" >nul %XCopy% "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\GameExplorer\{846E5638-E55A-4C48-A45C-FC729E217D83}\*.*" "%InstallMnt%\ProgramData\Microsoft\Windows\GameExplorer\{846E5638-E55A-4C48-A45C-FC729E217D83}" >nul echo. :: Integrating Microsoft Tinker Game Shortcut Files to WIM Image File echo.Copying Microsoft Tinker Game Shortcut Files... if not exist "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" md "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Tinker.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Tinker Level Editor.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul echo. ) ) if "%SetGames%"=="AllGames" ( if "%SOS%" == "w7x" if "%WimIndexInstallType%" == "Client" if "%GameXPack%" == "AllVistaXPGames" goto :IntAllXPVistaGames if "%SOS%" == "w7x" if "%WimIndexInstallType%" == "Embedded" if "%GameXPack%" == "AllOnlineGames" goto :IntAllOnlineGames if "%SOS%" == "w7x" if "%WimIndexInstallType%" == "Embedded" if "%GameXPack%" == "All7Games" goto :IntAllGames if not "%SOS%" == "w7x" if "%GameXPack%" == "7OnlineGames" goto :Int7OnlineGames if not "%SOS%" == "w7x" if "%GameXPack%" == "7Games" goto :IntAll7Games if not "%SOS%" == "w7x" if "%GameXPack%" == "AllWinGames" goto :IntAllGames :IntAllGames if "%WimIndexNo%"=="*" ( echo.------------------------------------------------------------------------------- echo.Integrating Microsoft Games to WIM Image... echo.------------------------------------------------------------------------------- echo. for /L %%i in (1, 1, %TotalWimIndexes%) do ( if not %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################# if %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################ echo. :: Integrating Microsoft Games Files to WIM Image File echo.Copying Microsoft Games Files... %XCopy% %Games%\%WimIndexArch%\*.* "%InstallMnt%\%%i" >nul echo. call :GetWimIndexInfo %InstallWim%, %%i :: Checking Whehter the WIM Index Default Languge is "en-GB", Is Yes Then Set Language to "en-US" if "%WimIndexDefaultLang%"=="en-GB" set WimIndexDefaultLang="en-US" :: Integrating Microsoft Games MUI Files to WIM Image File echo.Copying Microsoft Games [%WimIndexDefaultLang%] Files... %XCopy% "%Games%\%WimIndexArch%_mui\Windows\System32\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Windows\System32\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Chess\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Chess\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\FreeCell\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\FreeCell\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Hearts\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Hearts\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Mahjong\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Mahjong\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Minesweeper\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Minesweeper\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\More Games\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\More Games\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Backgammon\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Multiplayer\Backgammon\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Checkers\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Multiplayer\Checkers\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Spades\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Multiplayer\Spades\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Purble Place\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Purble Place\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Solitaire\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Solitaire\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\SpiderSolitaire\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\SpiderSolitaire\%WimIndexDefaultLang%" >nul :: Change Language Settings for the Sudoku Game. if "%WimIndexArch%"=="x86" ( if "%WimIndexDefaultLang%"=="de-DE" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\de-DE\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\de-DE" >nul if "%WimIndexDefaultLang%"=="es-ES" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\es-ES\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\es-ES" >nul if "%WimIndexDefaultLang%"=="fr-FR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\fr-FR\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\fr-FR" >nul if "%WimIndexDefaultLang%"=="it-IT" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\it-IT\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\it-IT" >nul if "%WimIndexDefaultLang%"=="ja-JP" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\ja-JP\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\ja-JP" >nul if "%WimIndexDefaultLang%"=="ko-KR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\ko-KR\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\ko-KR" >nul if "%WimIndexDefaultLang%"=="zh-CN" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\zh-CN\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\zh-CN" >nul if "%WimIndexDefaultLang%"=="zh-TW" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\zh-TW\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\zh-TW" >nul ) :: Change Language Settings for the Sudoku Game. if "%WimIndexArch%"=="x64" ( if "%WimIndexDefaultLang%"=="de-DE" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\de-DE\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\de-DE" >nul if "%WimIndexDefaultLang%"=="es-ES" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\es-ES\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\es-ES" >nul if "%WimIndexDefaultLang%"=="fr-FR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\fr-FR\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\fr-FR" >nul if "%WimIndexDefaultLang%"=="it-IT" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\it-IT\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\it-IT" >nul if "%WimIndexDefaultLang%"=="ja-JP" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\ja-JP\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\ja-JP" >nul if "%WimIndexDefaultLang%"=="ko-KR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\ko-KR\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\ko-KR" >nul if "%WimIndexDefaultLang%"=="zh-CN" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\zh-CN\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\zh-CN" >nul if "%WimIndexDefaultLang%"=="zh-TW" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\zh-TW\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\zh-TW" >nul ) :: Check If Language is zh-HK, If Yes Then Copy Zh-TW of Inkball Game Files Instead of zh-HK. if "%WimIndexDefaultLang%"=="zh-HK" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Inkball\zh-TW\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Inkball\zh-TW" >nul if not "%WimIndexDefaultLang%"=="zh-HK" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Inkball\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Inkball\%WimIndexDefaultLang%" >nul :: Check If Selected Source OS Is a Windows 8x/10x Then Delete the Duplicate More Games Shortcut if not %SOS% equ w7x del /f /q "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\More Games from Microsoft.lnk" >nul echo. ) ) else ( :: Integrating Microsoft Games Files to WIM Image File echo.Copying Microsoft Games Files... %XCopy% %Games%\%WimIndexArch%\*.* %InstallMnt% >nul echo. :: Checking Whehter the WIM Index Default Languge is "en-GB", Is Yes Then Set Language to "en-US" if "%WimIndexDefaultLang%"=="en-GB" set WimIndexDefaultLang="en-US" :: Integrating Microsoft Games MUI Files to WIM Image File echo.Copying Microsoft Games [%WimIndexDefaultLang%] Files... %XCopy% "%Games%\%WimIndexArch%_mui\Windows\System32\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Windows\System32\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Chess\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Chess\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\FreeCell\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\FreeCell\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Hearts\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Hearts\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Mahjong\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Mahjong\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Minesweeper\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Minesweeper\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\More Games\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\More Games\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Backgammon\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Multiplayer\Backgammon\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Checkers\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Multiplayer\Checkers\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Spades\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Multiplayer\Spades\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Purble Place\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Purble Place\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Solitaire\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Solitaire\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\SpiderSolitaire\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\SpiderSolitaire\%WimIndexDefaultLang%" >nul :: Change Language Settings for the Sudoku Game. if "%WimIndexArch%"=="x86" ( if "%WimIndexDefaultLang%"=="de-DE" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\de-DE\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\de-DE" >nul if "%WimIndexDefaultLang%"=="es-ES" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\es-ES\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\es-ES" >nul if "%WimIndexDefaultLang%"=="fr-FR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\fr-FR\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\fr-FR" >nul if "%WimIndexDefaultLang%"=="it-IT" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\it-IT\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\it-IT" >nul if "%WimIndexDefaultLang%"=="ja-JP" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\ja-JP\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\ja-JP" >nul if "%WimIndexDefaultLang%"=="ko-KR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\ko-KR\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\ko-KR" >nul if "%WimIndexDefaultLang%"=="zh-CN" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\zh-CN\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\zh-CN" >nul if "%WimIndexDefaultLang%"=="zh-TW" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\zh-TW\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\zh-TW" >nul ) :: Change Language Settings for the Sudoku Game. if "%WimIndexArch%"=="x64" ( if "%WimIndexDefaultLang%"=="de-DE" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\de-DE\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\de-DE" >nul if "%WimIndexDefaultLang%"=="es-ES" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\es-ES\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\es-ES" >nul if "%WimIndexDefaultLang%"=="fr-FR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\fr-FR\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\fr-FR" >nul if "%WimIndexDefaultLang%"=="it-IT" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\it-IT\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\it-IT" >nul if "%WimIndexDefaultLang%"=="ja-JP" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\ja-JP\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\ja-JP" >nul if "%WimIndexDefaultLang%"=="ko-KR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\ko-KR\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\ko-KR" >nul if "%WimIndexDefaultLang%"=="zh-CN" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\zh-CN\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\zh-CN" >nul if "%WimIndexDefaultLang%"=="zh-TW" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\zh-TW\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\zh-TW" >nul ) :: Check If Language is zh-HK, If Yes Then Copy Zh-TW of Inkball Game Files Instead of zh-HK. if "%WimIndexDefaultLang%"=="zh-HK" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Inkball\zh-TW\*.*" "%InstallMnt%\Program Files\Microsoft Games\Inkball\zh-TW" >nul if not "%WimIndexDefaultLang%"=="zh-HK" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Inkball\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Inkball\%WimIndexDefaultLang%" >nul :: Check If Selected Source OS Is a Windows 8x/10x Then Delete the Duplicate More Games Shortcut if not %SOS% equ w7x del /f /q "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\More Games from Microsoft.lnk" >nul echo. ) ) :IntAll7Games if "%WimIndexNo%"=="*" ( echo.------------------------------------------------------------------------------- echo.Integrating Microsoft Windows 7 Games to WIM Image... echo.------------------------------------------------------------------------------- echo. for /L %%i in (1, 1, %TotalWimIndexes%) do ( if not %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################# if %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################ echo. :: Integrating Microsoft Windows 7 Games Files to WIM Image File echo.Copying Microsoft Windows 7 Games Files... %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Chess\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Chess" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\FreeCell\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\FreeCell" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Hearts\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Hearts" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Mahjong\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Mahjong" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Minesweeper\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Minesweeper" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Purble Place\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Purble Place" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Solitaire\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Solitaire" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\SpiderSolitaire\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\SpiderSolitaire" >nul echo. call :GetWimIndexInfo %InstallWim%, %%i :: Integrating Microsoft Windows 7 Games MUI Files to WIM Image File echo.Copying Microsoft Windows 7 Games [%WimIndexDefaultLang%] Files... :: Checking Whehter the WIM Index Default Languge is "en-GB", Is Yes Then Set Language to "en-US" if "%WimIndexDefaultLang%"=="en-GB" set WimIndexDefaultLang="en-US" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Chess\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Chess\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\FreeCell\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\FreeCell\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Hearts\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Hearts\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Mahjong\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Mahjong\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Minesweeper\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Minesweeper\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Purble Place\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Purble Place\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Solitaire\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Solitaire\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\SpiderSolitaire\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\SpiderSolitaire\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Windows\System32\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Windows\System32\%WimIndexDefaultLang%" >nul echo. :: Integrating Microsoft Windows 7 Games Shortcut Files to WIM Image File echo.Copying Microsoft Windows 7 Games Shortcut Files... if not exist "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" md "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Chess.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\FreeCell.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Hearts.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Mahjong.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Minesweeper.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Purble Place.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Solitaire.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Spider Solitaire.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul echo. ) ) else ( echo.------------------------------------------------------------------------------- echo.Integrating Microsoft Windows 7 Games to WIM Image... echo.------------------------------------------------------------------------------- echo. :: Integrating Microsoft Windows 7 Games Files to WIM Image File echo.Copying Microsoft Windows 7 Games Files... %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Chess\*.*" "%InstallMnt%\Program Files\Microsoft Games\Chess" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\FreeCell\*.*" "%InstallMnt%\Program Files\Microsoft Games\FreeCell" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Hearts\*.*" "%InstallMnt%\Program Files\Microsoft Games\Hearts" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Mahjong\*.*" "%InstallMnt%\Program Files\Microsoft Games\Mahjong" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Minesweeper\*.*" "%InstallMnt%\Program Files\Microsoft Games\Minesweeper" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Purble Place\*.*" "%InstallMnt%\Program Files\Microsoft Games\Purble Place" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Solitaire\*.*" "%InstallMnt%\Program Files\Microsoft Games\Solitaire" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\SpiderSolitaire\*.*" "%InstallMnt%\Program Files\Microsoft Games\SpiderSolitaire" >nul echo. :: Integrating Microsoft Windows 7 Games MUI Files to WIM Image File echo.Copying Microsoft Windows 7 Games [%WimIndexDefaultLang%] Files... :: Checking Whehter the WIM Index Default Languge is "en-GB", Is Yes Then Set Language to "en-US" if "%WimIndexDefaultLang%"=="en-GB" set WimIndexDefaultLang="en-US" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Chess\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Chess\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\FreeCell\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\FreeCell\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Hearts\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Hearts\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Mahjong\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Mahjong\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Minesweeper\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Minesweeper\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Purble Place\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Purble Place\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Solitaire\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Solitaire\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\SpiderSolitaire\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\SpiderSolitaire\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Windows\System32\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Windows\System32\%WimIndexDefaultLang%" >nul echo. :: Integrating Microsoft Windows 7 Games Shortcut Files to WIM Image File echo.Copying Microsoft Windows 7 Games Shortcut Files... if not exist "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" md "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Chess.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\FreeCell.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Hearts.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Mahjong.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Minesweeper.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Purble Place.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Solitaire.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Spider Solitaire.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul echo. ) :IntAllXPVistaGames if "%WimIndexNo%"=="*" ( echo.------------------------------------------------------------------------------- echo.Integrating Microsoft Windows XP ^& Vista Games to WIM Image... echo.------------------------------------------------------------------------------- echo. for /L %%i in (1, 1, %TotalWimIndexes%) do ( if not %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################# if %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################ echo. :: Integrating Microsoft Windows XP and Vista Games Files to WIM Image File echo.Copying Microsoft Windows XP ^& Vista Games Files... if "%WimIndexArch%"=="x86" %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Carioca Rummy\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Carioca Rummy" >nul if "%WimIndexArch%"=="x64" %XCopy% "%Games%\%WimIndexArch%\Program Files (x86)\Microsoft Carioca Rummy\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Carioca Rummy" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\HoldEm\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\HoldEm" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Inkball\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Inkball" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Pinball\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Pinball" >nul if "%WimIndexArch%"=="x86" %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Sudoku\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku" >nul if "%WimIndexArch%"=="x64" %XCopy% "%Games%\%WimIndexArch%\Program Files (x86)\Microsoft Games\Sudoku\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku" >nul if "%WimIndexArch%"=="x86" %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Tinker\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Tinker" >nul if "%WimIndexArch%"=="x64" %XCopy% "%Games%\%WimIndexArch%\Program Files (x86)\Microsoft Games\Tinker\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Tinker" >nul echo. call :GetWimIndexInfo %InstallWim%, %%i :: Integrating Microsoft Windows XP and Vista Games MUI Files to WIM Image File echo.Copying Microsoft Windows XP ^& Vista Games [%WimIndexDefaultLang%] Files... :: Change Language Settings for the Sudoku Game. if "%WimIndexArch%"=="x86" ( if "%WimIndexDefaultLang%"=="de-DE" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\de-DE\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\de-DE" >nul if "%WimIndexDefaultLang%"=="es-ES" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\es-ES\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\es-ES" >nul if "%WimIndexDefaultLang%"=="fr-FR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\fr-FR\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\fr-FR" >nul if "%WimIndexDefaultLang%"=="it-IT" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\it-IT\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\it-IT" >nul if "%WimIndexDefaultLang%"=="ja-JP" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\ja-JP\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\ja-JP" >nul if "%WimIndexDefaultLang%"=="ko-KR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\ko-KR\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\ko-KR" >nul if "%WimIndexDefaultLang%"=="zh-CN" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\zh-CN\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\zh-CN" >nul if "%WimIndexDefaultLang%"=="zh-TW" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\zh-TW\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Sudoku\zh-TW" >nul ) :: Change Language Settings for the Sudoku Game. if "%WimIndexArch%"=="x64" ( if "%WimIndexDefaultLang%"=="de-DE" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\de-DE\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\de-DE" >nul if "%WimIndexDefaultLang%"=="es-ES" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\es-ES\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\es-ES" >nul if "%WimIndexDefaultLang%"=="fr-FR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\fr-FR\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\fr-FR" >nul if "%WimIndexDefaultLang%"=="it-IT" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\it-IT\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\it-IT" >nul if "%WimIndexDefaultLang%"=="ja-JP" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\ja-JP\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\ja-JP" >nul if "%WimIndexDefaultLang%"=="ko-KR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\ko-KR\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\ko-KR" >nul if "%WimIndexDefaultLang%"=="zh-CN" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\zh-CN\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\zh-CN" >nul if "%WimIndexDefaultLang%"=="zh-TW" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\zh-TW\*.*" "%InstallMnt%\%%i\Program Files (x86)\Microsoft Games\Sudoku\zh-TW" >nul ) :: Checking Whehter the WIM Index Default Languge is "en-GB", Is Yes Then Set Language to "en-US" if "%WimIndexDefaultLang%"=="en-GB" set WimIndexDefaultLang="en-US" :: Checking Whehter the WIM Index Default Languge is "zh-HK", Is Yes Then Set Language to "zh-TW" if "%WimIndexDefaultLang%"=="zh-HK" set WimIndexDefaultLang="zh-TW" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Inkball\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Inkball\%WimIndexDefaultLang%" >nul echo. :: Integrating Microsoft Windows XP and Vista Game Explorer Data Files to WIM Image File echo.Copying Microsoft Windows XP ^& Vista Game Explorer Data Files... %XCopy% "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\GameExplorer\*.*" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\GameExplorer" >nul echo. :: Integrating Microsoft Windows XP and Vista Games Shortcut Files to WIM Image File echo.Copying Microsoft Windows XP ^& Vista Games Shortcut Files... if not exist "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" md "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\3D Pinball - Space Cadet.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Carioca Rummy.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Hold 'Em.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\InkBall.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Sudoku.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Tinker.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Tinker Level Editor.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul echo. ) ) else ( echo.------------------------------------------------------------------------------- echo.Integrating Microsoft Windows XP ^& Vista Games to WIM Image... echo.------------------------------------------------------------------------------- echo. :: Integrating Microsoft Windows XP and Vista Games Files to WIM Image File echo.Copying Microsoft Windows XP ^& Vista Games Files... if "%WimIndexArch%"=="x86" %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Carioca Rummy\*.*" "%InstallMnt%\Program Files\Microsoft Carioca Rummy" >nul if "%WimIndexArch%"=="x64" %XCopy% "%Games%\%WimIndexArch%\Program Files (x86)\Microsoft Carioca Rummy\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Carioca Rummy" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\HoldEm\*.*" "%InstallMnt%\Program Files\Microsoft Games\HoldEm" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Inkball\*.*" "%InstallMnt%\Program Files\Microsoft Games\Inkball" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Pinball\*.*" "%InstallMnt%\Program Files\Microsoft Games\Pinball" >nul if "%WimIndexArch%"=="x86" %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Sudoku\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku" >nul if "%WimIndexArch%"=="x64" %XCopy% "%Games%\%WimIndexArch%\Program Files (x86)\Microsoft Games\Sudoku\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku" >nul if "%WimIndexArch%"=="x86" %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Tinker\*.*" "%InstallMnt%\Program Files\Microsoft Games\Tinker" >nul if "%WimIndexArch%"=="x64" %XCopy% "%Games%\%WimIndexArch%\Program Files (x86)\Microsoft Games\Tinker\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Tinker" >nul echo. :: Integrating Microsoft Windows XP and Vista Games MUI Files to WIM Image File echo.Copying Microsoft Windows XP ^& Vista Games [%WimIndexDefaultLang%] Files... :: Change Language Settings for the Sudoku Game. if "%WimIndexArch%"=="x86" ( if "%WimIndexDefaultLang%"=="de-DE" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\de-DE\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\de-DE" >nul if "%WimIndexDefaultLang%"=="es-ES" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\es-ES\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\es-ES" >nul if "%WimIndexDefaultLang%"=="fr-FR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\fr-FR\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\fr-FR" >nul if "%WimIndexDefaultLang%"=="it-IT" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\it-IT\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\it-IT" >nul if "%WimIndexDefaultLang%"=="ja-JP" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\ja-JP\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\ja-JP" >nul if "%WimIndexDefaultLang%"=="ko-KR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\ko-KR\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\ko-KR" >nul if "%WimIndexDefaultLang%"=="zh-CN" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\zh-CN\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\zh-CN" >nul if "%WimIndexDefaultLang%"=="zh-TW" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Sudoku\zh-TW\*.*" "%InstallMnt%\Program Files\Microsoft Games\Sudoku\zh-TW" >nul ) :: Change Language Settings for the Sudoku Game. if "%WimIndexArch%"=="x64" ( if "%WimIndexDefaultLang%"=="de-DE" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\de-DE\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\de-DE" >nul if "%WimIndexDefaultLang%"=="es-ES" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\es-ES\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\es-ES" >nul if "%WimIndexDefaultLang%"=="fr-FR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\fr-FR\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\fr-FR" >nul if "%WimIndexDefaultLang%"=="it-IT" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\it-IT\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\it-IT" >nul if "%WimIndexDefaultLang%"=="ja-JP" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\ja-JP\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\ja-JP" >nul if "%WimIndexDefaultLang%"=="ko-KR" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\ko-KR\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\ko-KR" >nul if "%WimIndexDefaultLang%"=="zh-CN" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\zh-CN\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\zh-CN" >nul if "%WimIndexDefaultLang%"=="zh-TW" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files (x86)\Microsoft Games\Sudoku\zh-TW\*.*" "%InstallMnt%\Program Files (x86)\Microsoft Games\Sudoku\zh-TW" >nul ) :: Checking Whehter the WIM Index Default Languge is "en-GB", Is Yes Then Set Language to "en-US" if "%WimIndexDefaultLang%"=="en-GB" set WimIndexDefaultLang="en-US" :: Checking Whehter the WIM Index Default Languge is "zh-HK", Is Yes Then Set Language to "zh-TW" if "%WimIndexDefaultLang%"=="zh-HK" set WimIndexDefaultLang="zh-TW" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Inkball\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Inkball\%WimIndexDefaultLang%" >nul echo. :: Integrating Microsoft Windows XP and Vista Game Explorer Data Files to WIM Image File echo.Copying Microsoft Windows XP ^& Vista Game Explorer Data Files... %XCopy% "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\GameExplorer\*.*" "%InstallMnt%\ProgramData\Microsoft\Windows\GameExplorer" >nul echo. :: Integrating Microsoft Windows XP and Vista Games Shortcut Files to WIM Image File echo.Copying Microsoft Windows XP ^& Vista Games Shortcut Files... if not exist "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" md "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\3D Pinball - Space Cadet.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Carioca Rummy.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Hold 'Em.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\InkBall.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Sudoku.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Tinker.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Tinker Level Editor.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul echo. ) :IntAll7OnlineGames if "%WimIndexNo%"=="*" ( echo.------------------------------------------------------------------------------- echo.Integrating Microsoft Windows 7 Multi-Player Games to WIM Image... echo.------------------------------------------------------------------------------- echo. for /L %%i in (1, 1, %TotalWimIndexes%) do ( if not %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################# if %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################ echo. :: Integrating Microsoft Windows 7 Multi-Player Games Files to WIM Image File echo.Copying Microsoft Windows 7 Multi-Player Games Files... %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\More Games\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\More Games" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Multiplayer\Backgammon\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Multiplayer\Backgammon" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Multiplayer\Checkers\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Multiplayer\Checkers" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Multiplayer\Spades\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Multiplayer\Spades" >nul echo. call :GetWimIndexInfo %InstallWim%, %%i :: Integrating Microsoft Windows 7 Multi-Player Games MUI Files to WIM Image File echo.Copying Microsoft Windows 7 Multi-Player Games [%WimIndexDefaultLang%] Files... :: Checking Whehter the WIM Index Default Languge is "en-GB", Is Yes Then Set Language to "en-US" if "%WimIndexDefaultLang%"=="en-GB" set WimIndexDefaultLang="en-US" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\More Games\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\More Games\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Backgammon\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Multiplayer\Backgammon\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Checkers\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Multiplayer\Checkers\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Spades\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Program Files\Microsoft Games\Multiplayer\Spades\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Windows\System32\%WimIndexDefaultLang%\*.*" "%InstallMnt%\%%i\Windows\System32\%WimIndexDefaultLang%" >nul echo. :: Integrating Microsoft Windows 7 Multi-Player Games Shortcut Files to WIM Image File echo.Copying Microsoft Windows 7 Multi-Player Games Shortcut Files... if not exist "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" md "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Internet Backgammon.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Internet Checkers.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Internet Spades.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\More Games from Microsoft.lnk" "%InstallMnt%\%%i\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul echo. ) ) else ( echo.------------------------------------------------------------------------------- echo.Integrating Microsoft Windows 7 Multi-Player Games to WIM Image... echo.------------------------------------------------------------------------------- echo. :: Integrating Microsoft Windows 7 Multi-Player Games Files to WIM Image File echo.Copying Microsoft Windows 7 Multi-Player Games Files... %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\More Games\*.*" "%InstallMnt%\Program Files\Microsoft Games\More Games" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Multiplayer\Backgammon\*.*" "%InstallMnt%\Program Files\Microsoft Games\Multiplayer\Backgammon" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Multiplayer\Checkers\*.*" "%InstallMnt%\Program Files\Microsoft Games\Multiplayer\Checkers" >nul %XCopy% "%Games%\%WimIndexArch%\Program Files\Microsoft Games\Multiplayer\Spades\*.*" "%InstallMnt%\Program Files\Microsoft Games\Multiplayer\Spades" >nul echo. :: Integrating Microsoft Windows 7 Multi-Player Games MUI Files to WIM Image File echo.Copying Microsoft Windows 7 Multi-Player Games [%WimIndexDefaultLang%] Files... :: Checking Whehter the WIM Index Default Languge is "en-GB", Is Yes Then Set Language to "en-US" if "%WimIndexDefaultLang%"=="en-GB" set WimIndexDefaultLang="en-US" %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\More Games\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\More Games\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Backgammon\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Multiplayer\Backgammon\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Checkers\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Multiplayer\Checkers\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Program Files\Microsoft Games\Multiplayer\Spades\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Program Files\Microsoft Games\Multiplayer\Spades\%WimIndexDefaultLang%" >nul %XCopy% "%Games%\%WimIndexArch%_mui\Windows\System32\%WimIndexDefaultLang%\*.*" "%InstallMnt%\Windows\System32\%WimIndexDefaultLang%" >nul echo. :: Integrating Microsoft Windows 7 Multi-Player Games Shortcut Files to WIM Image File echo.Copying Microsoft Windows 7 Multi-Player Games Shortcut Files... if not exist "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" md "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Internet Backgammon.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Internet Checkers.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Internet Spades.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul Xcopy /y "%Games%\%WimIndexArch%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\More Games from Microsoft.lnk" "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games" >nul echo. ) :: Checking If Selected Source OS Is a Windows ThinPC OS if %SOS% equ w7x if %WimIndexInstallType% equ Embedded ( :: Checking Whether Windows Parent Control Feature is Installed or Not, If Yes Then Remove the Game Explorer Duplicate Shortcut Entrires %DISM% /Get-Packages /Image:%InstallMnt% | findstr /c:"Package Identity : WinEmb-ParentalControl~31bf3856ad364e35~x86~~6.1.7601.17514" >nul if not errorlevel 1 del /f /q "%InstallMnt%\ProgramData\Microsoft\Windows\Start Menu\Programs\Games\Games Explorer.lnk" >nul ) echo.------------------------------------------------------------------------------- echo.°°°°Importing Microsoft Games Registry Settings°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° echo.------------------------------------------------------------------------------- if "%WimIndexNo%"=="*" ( echo. for /L %%i in (1, 1, %TotalWimIndexes%) do ( if not %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################# if %WimIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################ if "%SetGames%"=="ChessTitans" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\ChessTitans.reg" if "%SetGames%"=="FreeCell" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\FreeCell.reg" if "%SetGames%"=="Hearts" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\Hearts.reg" if "%SetGames%"=="MahjongTitans" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\MahjongTitans.reg" if "%SetGames%"=="Minesweeper" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\Minesweeper.reg" if "%SetGames%"=="PurblePlace" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\PurblePlace.reg" if "%SetGames%"=="Solitaire" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\Solitaire.reg" if "%SetGames%"=="SpiderSolitaire" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\SpiderSolitaire.reg" if "%SetGames%"=="Backgammon" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\Backgammon.reg" if "%SetGames%"=="Checkers" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\Checkers.reg" if "%SetGames%"=="Spades" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\Spades.reg" if "%SetGames%"=="MoreGames" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\MoreGames.reg" if "%SetGames%"=="CariocaRummy" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\CariocaRummy_%WimIndexArch%.reg" if "%SetGames%"=="HoldEm" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\HoldEm_%WimIndexArch%.reg" if "%SetGames%"=="Inkball" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\Inkball_%WimIndexArch%.reg" if "%SetGames%"=="Pinball" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\Pinball_%WimIndexArch%.reg" if "%SetGames%"=="Sudoku" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\Sudoku_%WimIndexArch%.reg" if "%SetGames%"=="Tinker" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\Tinker_%WimIndexArch%.reg" if "%SetGames%"=="AllGames" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\Games_%WimIndexArch%.reg" if "%SetGames%"=="All7Games" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\W7Games_%WimIndexArch%.reg" if "%SetGames%"=="AllXPVistaGames" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\WXPVGames_%WimIndexArch%.reg" if "%SetGames%"=="AllOnlineGames" call :ImportReg2WIM "%InstallMnt%\%%i", "%Games%\W7MPOGames_%WimIndexArch%.reg" ) ) else ( if "%SetGames%"=="ChessTitans" call :ImportReg2WIM %InstallMnt%, "%Games%\ChessTitans.reg" if "%SetGames%"=="FreeCell" call :ImportReg2WIM %InstallMnt%, "%Games%\FreeCell.reg" if "%SetGames%"=="Hearts" call :ImportReg2WIM %InstallMnt%, "%Games%\Hearts.reg" if "%SetGames%"=="MahjongTitans" call :ImportReg2WIM %InstallMnt%, "%Games%\MahjongTitans.reg" if "%SetGames%"=="Minesweeper" call :ImportReg2WIM %InstallMnt%, "%Games%\Minesweeper.reg" if "%SetGames%"=="PurblePlace" call :ImportReg2WIM %InstallMnt%, "%Games%\PurblePlace.reg" if "%SetGames%"=="Solitaire" call :ImportReg2WIM %InstallMnt%, "%Games%\Solitaire.reg" if "%SetGames%"=="SpiderSolitaire" call :ImportReg2WIM %InstallMnt%, "%Games%\SpiderSolitaire.reg" if "%SetGames%"=="Backgammon" call :ImportReg2WIM %InstallMnt%, "%Games%\Backgammon.reg" if "%SetGames%"=="Checkers" call :ImportReg2WIM %InstallMnt%, "%Games%\Checkers.reg" if "%SetGames%"=="Spades" call :ImportReg2WIM %InstallMnt%, "%Games%\Spades.reg" if "%SetGames%"=="MoreGames" call :ImportReg2WIM %InstallMnt%, "%Games%\MoreGames.reg" if "%SetGames%"=="CariocaRummy" call :ImportReg2WIM %InstallMnt%, "%Games%\CariocaRummy_%WimIndexArch%.reg" if "%SetGames%"=="HoldEm" call :ImportReg2WIM %InstallMnt%, "%Games%\HoldEm_%WimIndexArch%.reg" if "%SetGames%"=="Inkball" call :ImportReg2WIM %InstallMnt%, "%Games%\Inkball_%WimIndexArch%.reg" if "%SetGames%"=="Pinball" call :ImportReg2WIM %InstallMnt%, "%Games%\Pinball_%WimIndexArch%.reg" if "%SetGames%"=="Sudoku" call :ImportReg2WIM %InstallMnt%, "%Games%\Sudoku_%WimIndexArch%.reg" if "%SetGames%"=="Tinker" call :ImportReg2WIM %InstallMnt%, "%Games%\Tinker_%WimIndexArch%.reg" if "%SetGames%"=="AllGames" call :ImportReg2WIM %InstallMnt%, "%Games%\Games_%WimIndexArch%.reg" if "%SetGames%"=="All7Games" call :ImportReg2WIM %InstallMnt%, "%Games%\W7Games_%WimIndexArch%.reg" if "%SetGames%"=="AllXPVistaGames" call :ImportReg2WIM %InstallMnt%, "%Games%\WXPVGames_%WimIndexArch%.reg" if "%SetGames%"=="AllOnlineGames" call :ImportReg2WIM %InstallMnt%, "%Games%\W7MPOGames_%WimIndexArch%.reg" ) echo.------------------------------------------------------------------------------- echo.°°°°Finished Integrating Microsoft Games°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° echo.------------------------------------------------------------------------------- :Stop echo. echo.=============================================================================== echo. pause set WimIndexDefaultLang= set SetGames= endlocal :: Returning to Main Menu goto :MainMenu Thanx again 4 u'r hard work
what is it?is normal? this show after removing after each apps like Windows Metro Camera Code: ░░░░Cleaning Up Windows Component Folders░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ------------------------------------------------------------------------------- Cleaning Up Left-Over Junk Files... 'takeown' is not recognized as an internal or external command, operable program or batch file. Access is denied. 'takeown' is not recognized as an internal or external command, operable program or batch file. Access is denied. 'takeown' is not recognized as an internal or external command, operable program or batch file. 'takeown' is not recognized as an internal or external command, operable program or batch file. 'takeown' is not recognized as an internal or external command, operable program or batch file. 'takeown' is not recognized as an internal or external command, operable program or batch file.
I don't know whether takeown command changes in other language os or not. Can you say which HOST OS (Language) are you using and Which Source OS (Language) are you trying to deploy.
my host OS lng is english-us and sourse OS lng is english-us edit: - Host OS : Win 8.1 Update1 Enterprise - v6.3.9600.17031 - Architecture : x86 - Default language : EN-US all update but without satisfy Windows Update
Hi romero! Please, be more specific, i.e: - Host OS : Win 8.1 u1 Pro (v6.3.9600.17031) - Architecture : x64 - Default language : EN-US
Hi MSMG 1) :IntDVDMediaUpdates (line 5550) Code: if "%WimIndexNo%"=="*" ( set "InstallMnt=%InstallMnt1%" set InstallMnt1= ) or Code: if "%WimIndexNo%"=="*" ( set InstallMnt=%InstallMnt1% set InstallMnt1= ) instead of Code: if "%WimIndexNo%"=="*" ( set "InstallMnt=%InstallMnt1% set InstallMnt1= ) 2) Function :ListDisks Like for word "Everyone" in function :TakeFileOwnerShip in previous ToolKit version, "Removable" needs to be localized (Amovible is localized name for french-France [fr-FR]) Code: ::------------------------------------------------------------------------------------------- :: Function to List All the Disks and Volumes :ListDisks del /f /q %TMP%\DiskList.txt 2>nul del /f /q %TMP%\DiskList1.txt 2>nul echo.list volume>> %TMP%\DiskList.txt diskpart /s %TMP%\DiskList.txt >> %TMP%\DiskList1.txt del /f /q %TMP%\DiskList.txt >nul echo.>> %TMP%\DiskList.txt Original function Spoiler echo.===============================================================================>> %TMP%\DiskList.txt echo. Volume # Letter Label File Sys Type Size Status Info>> %TMP%\DiskList.txt echo.------------------------------------------------------------------------------->> %TMP%\DiskList.txt findstr "Removable" %TMP%\DiskList1.txt >> %TMP%\DiskList.txt echo.===============================================================================>> %TMP%\DiskList.txt French version Spoiler echo.===============================================================================>> %TMP%\DiskList.txt echo. Nø volume Lettre Nom Fs Type Taille Statut Info>> %TMP%\DiskList.txt echo.------------------------------------------------------------------------------->> %TMP%\DiskList.txt findstr "Amovible" %TMP%\DiskList1.txt >> %TMP%\DiskList.txt echo.===============================================================================>> %TMP%\DiskList.txt type %TMP%\DiskList.txt del /f /q %TMP%\DiskList.txt >nul del /f /q %TMP%\DiskList1.txt >nul echo. goto :eof ::------------------------------------------------------------------------------------------- 3) Suggestions After u've added multi-images support ("%WimIndexNo%"=="*"), in my opinion, it's just remaining to add support of range of indexes to complete WIM images servicing options. View attachment 33474 Below, an example picked up from abbodi1406's ESD2WIM-WIM2ESD.cmd script Code: :WIM4 cls set _range= set _start= set _end= ECHO =============================================================================== ECHO. Detected WIM file contains %images% indexes: ECHO. for /L %%i in (1, 1, %images%) do ( ECHO. %%i. !name%%i! ) ECHO. ECHO =============================================================================== ECHO. Enter desired Range of indexes to export: Start-End ECHO. Example: 2-4 or 1-3 or 3-4 ECHO =============================================================================== ECHO. Enter zero '0' to go back to Main Menu ECHO =============================================================================== set /p _range= ^> if /i "%_range%"=="0" goto :WIMMENU if [%_range%]==[] goto :WIM4 for /f "tokens=1 delims=-" %%i in ('echo %_range%') do set _start=%%i for /f "tokens=2 delims=-" %%i in ('echo %_range%') do set _end=%%i if /i %_start% GTR %images% echo.&echo Range Start is higher than available indexes&echo.&PAUSE&goto :WIM4 if /i %_end% GTR %images% echo.&echo Range End is higher than available indexes&echo.&PAUSE&goto :WIM4 if /i %_start% EQU %_end% echo.&echo Range Start and End are equal. Use option 3 of main menu to export single index&echo.&PAUSE&goto :WIMMENU
Yes it will work you just need to remove these three lines of code if %WimIndexVersion% equ 10.0.9879 set SOS=w10x if %WimIndexVersion% equ 10.0.9888 set SOS=w10x if %WimIndexVersion% equ 10.0.9901 set SOS=w10x and then instead add this below line of code in the script. if %WimIndexVersion% equ 10.0.9926 set SOS=w10x I have been working on the next version of ToolKit and have made changes to the toolkit to support Windows 10 TP 10.0.9926 and also i have replaced the dism package with the newly released WADK for Windows 10 TP so that now the Windows 10 TP images can be serviced on Windows 7, Windows 8.x HOST OS too.