Jump to content

SCRIPT - Add Language into Windows Setup Windows 7


Alexandre

Recommended Posts

::Packages to copy into the boot are found in Automation Kit. ::Windows Aik. In WinPE_LangPacks folder.::Celebrity sorry. 'm Technician hardaware and accompany the Forum a while ago and managed through research integrating the language pt-BR setup in Windows 7 x86 ::if it helps gets the hint.@echo offTitle Configurando para o idioma pt-BRset lp=H:\Batch_Win7\WinSetup_pt-br_lpset iso=H:\Batch_Win7\Isoset log=H:\Batch_Win7\Logset temp=J:\Tempset dvd=H:\Batch_Win7\Dvd\sourcesset lang=H:\Batch_Win7\Langset mount5=H:\Batch_Win7\Mount5set mount4=H:\Batch_Win7\Mount4set mount3=H:\Batch_Win7\Mount3set mount2=H:\Batch_Win7\Mount2set mount1=H:\Batch_Win7\Mount1set boot2=H:\Batch_Win7\Boot2set boot1=H:\Batch_Win7\Boot1set winre=H:\Batch_Win7\WinReset distr=H:\Batch_Win7\Dvdset dism=H:\Batch_Win7\x86\Servicing\Dism.exeset oscdimg=H:\Batch_Win7\x86\oscdimg.exeecho Criando Os Diretoriosmkdir H:\Batch_Win7\Boot2mkdir H:\Batch_Win7\Boot1mkdir H:\Batch_Win7\Mount5mkdir H:\Batch_Win7\Mount4mkdir H:\Batch_Win7\Mount3mkdir H:\Batch_Win7\Mount2mkdir H:\Batch_Win7\Mount1echo Adicionado a LangPack em Todas Index 1 2 3 4 5echo Mount image Index 5%dism% /Mount-Wim /LogPath:%log%\Mount_Index_5.log /LogLevel:1 /ScratchDir:%temp% /WimFile:%dvd%\install.wim /Index:5 /MountDir:%mount5%%echo Add Lang Pack Index 5%dism% /Image:%mount5% /LogPath:%log%\Add_Lang_Index_5.log /LogLevel:1 /ScratchDir:%temp% /Add-Package /PackagePath:%lang%Echo Save Image Index 5%dism% /Unmount-Wim /LogPath:%log%\Umount_Index_5.log /LogLevel:1 /MountDir:%mount5% /commitecho Mount image Index 4%dism% /Mount-Wim /LogPath:%log%\Mount_Index_4.log /LogLevel:1 /ScratchDir:%temp% /WimFile:%dvd%\install.wim /Index:4 /MountDir:%mount4%echo Add Lang Pack Index 4%dism% /Image:%mount4% /LogPath:%log%\Add_Lang_Index_4.log /LogLevel:1 /ScratchDir:%temp% /Add-Package /PackagePath:%lang%Echo Save Image Index 4%dism% /Unmount-Wim /LogPath:%log%\Umount_Index_4.log /LogLevel:1 /MountDir:%mount4% /commitecho Mount image Index 3%dism% /Mount-Wim /LogPath:%log%\Mount_Index_3.log /LogLevel:1 /ScratchDir:%temp% /WimFile:%dvd%\install.wim /Index:3 /MountDir:%mount3%echo Add Lang Pack Index 3%dism% /Image:%mount3% /LogPath:%log%\Add_Lang_Index_3.log /LogLevel:1 /ScratchDir:%temp% /Add-Package /PackagePath:%lang%Echo Save Image Index 3%dism% /Unmount-Wim /LogPath:%log%\Umount_Index_3.log /LogLevel:1 /MountDir:%mount3% /commitecho Mount image Index 2%dism% /Mount-Wim /LogPath:%log%\Mount_Index_2.log /LogLevel:1 /ScratchDir:%temp% /WimFile:%dvd%\install.wim /Index:2 /MountDir:%mount2%echo Add Lang Pack Index 2 %dism% /Image:%mount2% /LogPath:%log%\Add_Lang_Index_2.log /LogLevel:1 /ScratchDir:%temp% /Add-Package /PackagePath:%lang%Echo Save Image Index 2%dism% /Unmount-Wim /LogPath:%log%\Umount_Index_2.log /LogLevel:1 /MountDir:%mount2% /commitecho Mount image Index 1%dism% /Mount-Wim /LogPath:%log%\Mount_Index_1.log /LogLevel:1 /ScratchDir:%temp% /WimFile:%dvd%\install.wim /Index:1 /MountDir:%mount1%echo Add Lang Pack Index 1%dism% /Image:%mount1% /LogPath:%log%\Add_Lang_Index_1.log /LogLevel:1 /ScratchDir:%temp% /Add-Package /PackagePath:%lang%Echo Save Image Index 1%dism% /Unmount-Wim /LogPath:%log%\Umount_Index_1.log /LogLevel:1 /MountDir:%mount1% /commitecho Aplicando configurações Inetrnacionais W7echo Mount image Index 5%dism% /Mount-Wim /LogPath:%log%\Mount_intl_Index_5.log /LogLevel:1 /ScratchDir:%temp% /WimFile:%dvd%\install.wim /Index:5 /MountDir:%mount5%%%dism% /image:%mount5% /LogPath:%log%\intl_Index_1.log /LogLevel:1 /distribution:%distr% /Get-Intl%dism% /image:%mount5% /LogPath:%log%\Intl_Index_2.log /LogLevel:1 /Get-Intl%dism% /image:%mount5% /LogPath:%log%\Intl_Index_3.log /LogLevel:1 /distribution:%distr% /Get-Intl%dism% /image:%mount5% /LogPath:%log%\Intl_Index_4.log /LogLevel:1 /Set-UILang:pt-BR%dism% /image:%mount5% /LogPath:%log%\Intl_Index_6.log /LogLevel:1 /Set-UILangFallBack:pt-BR%dism% /image:%mount5% /LogPath:%log%\Intl_Index_7.log /LogLevel:1 /Set-SysLocale:pt-BR%dism% /image:%mount5% /LogPath:%log%\Intl_Index_8.log /LogLevel:1 /Set-UserLocale:pt-BR%dism% /image:%mount5% /LogPath:%log%\Intl_Index_9.log /LogLevel:1 /Set-InputLocale:0416:00000416%dism% /image:%mount5% /LogPath:%log%\Intl_Index_10.log /LogLevel:1 /Set-AllIntl:pt-BR%dism% /image:%mount5% /LogPath:%log%\Intl_Index_11.log /LogLevel:1 /Set-TimeZone:"E. South America Standard Time"%dism% /image:%mount5% /LogPath:%log%\Intl_Index_12.log /LogLevel:1 /Set-SKUIntlDefaults:pt-BR%dism% /image:%mount5% /LogPath:%log%\Intl_Index_13.log /LogLevel:1 /Set-LayeredDriver:1%dism% /image:%mount5% /LogPath:%log%\Intl_Index_14.log /LogLevel:1 /Gen-LangINI /distribution:%distr%%dism% /image:%mount5% /LogPath:%log%\Intl_Index_15.log /LogLevel:1 /Set-SetupUILang:pt-Br /distribution:%distr%echo Save Image Index 5%dism% /Unmount-Wim /LogPath:%log%\Umount_intl_Index_5.log /LogLevel:1 /MountDir:%mount5% /commitecho Mount image Index 4%dism% /Mount-Wim /LogPath:%log%\Mount_intl_Index_5.log /LogLevel:1 /ScratchDir:%temp% /WimFile:%dvd%\install.wim /Index:4 /MountDir:%mount4%%%dism% /image:%mount4% /LogPath:%log%\intl_Index_1.log /LogLevel:1 /distribution:%distr% /Get-Intl%dism% /image:%mount4% /LogPath:%log%\Intl_Index_2.log /LogLevel:1 /Get-Intl%dism% /image:%mount4% /LogPath:%log%\Intl_Index_3.log /LogLevel:1 /distribution:%distr% /Get-Intl%dism% /image:%mount4% /LogPath:%log%\Intl_Index_4.log /LogLevel:1 /Set-UILang:pt-BR%dism% /image:%mount4% /LogPath:%log%\Intl_Index_6.log /LogLevel:1 /Set-UILangFallBack:pt-BR%dism% /image:%mount4% /LogPath:%log%\Intl_Index_7.log /LogLevel:1 /Set-SysLocale:pt-BR%dism% /image:%mount4% /LogPath:%log%\Intl_Index_8.log /LogLevel:1 /Set-UserLocale:pt-BR%dism% /image:%mount4% /LogPath:%log%\Intl_Index_9.log /LogLevel:1 /Set-InputLocale:0416:00000416%dism% /image:%mount4% /LogPath:%log%\Intl_Index_10.log /LogLevel:1 /Set-AllIntl:pt-BR%dism% /image:%mount4% /LogPath:%log%\Intl_Index_11.log /LogLevel:1 /Set-TimeZone:"E. South America Standard Time"%dism% /image:%mount4% /LogPath:%log%\Intl_Index_12.log /LogLevel:1 /Set-SKUIntlDefaults:pt-BR%dism% /image:%mount4% /LogPath:%log%\Intl_Index_13.log /LogLevel:1 /Set-LayeredDriver:1%dism% /image:%mount4% /LogPath:%log%\Intl_Index_14.log /LogLevel:1 /Gen-LangINI /distribution:%distr%%dism% /image:%mount4% /LogPath:%log%\Intl_Index_15.log /LogLevel:1 /Set-SetupUILang:pt-Br /distribution:%distr%echo Save Image Index 4%dism% /Unmount-Wim /LogPath:%log%\Umount_intl_Index_5.log /LogLevel:1 /MountDir:%mount4% /commitecho Mount image Index 3%dism% /Mount-Wim /LogPath:%log%\Mount_intl_Index_5.log /LogLevel:1 /ScratchDir:%temp% /WimFile:%dvd%\install.wim /Index:3 /MountDir:%mount3%%%dism% /image:%mount3% /LogPath:%log%\intl_Index_1.log /LogLevel:1 /distribution:%distr% /Get-Intl%dism% /image:%mount3% /LogPath:%log%\Intl_Index_2.log /LogLevel:1 /Get-Intl%dism% /image:%mount3% /LogPath:%log%\Intl_Index_3.log /LogLevel:1 /distribution:%distr% /Get-Intl%dism% /image:%mount3% /LogPath:%log%\Intl_Index_4.log /LogLevel:1 /Set-UILang:pt-BR%dism% /image:%mount3% /LogPath:%log%\Intl_Index_6.log /LogLevel:1 /Set-UILangFallBack:pt-BR%dism% /image:%mount3% /LogPath:%log%\Intl_Index_7.log /LogLevel:1 /Set-SysLocale:pt-BR%dism% /image:%mount3% /LogPath:%log%\Intl_Index_8.log /LogLevel:1 /Set-UserLocale:pt-BR%dism% /image:%mount3% /LogPath:%log%\Intl_Index_9.log /LogLevel:1 /Set-InputLocale:0416:00000416%dism% /image:%mount3% /LogPath:%log%\Intl_Index_10.log /LogLevel:1 /Set-AllIntl:pt-BR%dism% /image:%mount3% /LogPath:%log%\Intl_Index_11.log /LogLevel:1 /Set-TimeZone:"E. South America Standard Time"%dism% /image:%mount3% /LogPath:%log%\Intl_Index_12.log /LogLevel:1 /Set-SKUIntlDefaults:pt-BR%dism% /image:%mount3% /LogPath:%log%\Intl_Index_13.log /LogLevel:1 /Set-LayeredDriver:1%dism% /image:%mount3% /LogPath:%log%\Intl_Index_14.log /LogLevel:1 /Gen-LangINI /distribution:%distr%%dism% /image:%mount3% /LogPath:%log%\Intl_Index_15.log /LogLevel:1 /Set-SetupUILang:pt-Br /distribution:%distr%echo Save Image Index 3%dism% /Unmount-Wim /LogPath:%log%\Umount_intl_Index_5.log /LogLevel:1 /MountDir:%mount3% /commitecho Mount image Index 2%dism% /Mount-Wim /LogPath:%log%\Mount_intl_Index_5.log /LogLevel:1 /ScratchDir:%temp% /WimFile:%dvd%\install.wim /Index:2 /MountDir:%mount2%%%dism% /image:%mount2% /LogPath:%log%\intl_Index_1.log /LogLevel:1 /distribution:%distr% /Get-Intl%dism% /image:%mount2% /LogPath:%log%\Intl_Index_2.log /LogLevel:1 /Get-Intl%dism% /image:%mount2% /LogPath:%log%\Intl_Index_3.log /LogLevel:1 /distribution:%distr% /Get-Intl%dism% /image:%mount2% /LogPath:%log%\Intl_Index_4.log /LogLevel:1 /Set-UILang:pt-BR%dism% /image:%mount2% /LogPath:%log%\Intl_Index_6.log /LogLevel:1 /Set-UILangFallBack:pt-BR%dism% /image:%mount2% /LogPath:%log%\Intl_Index_7.log /LogLevel:1 /Set-SysLocale:pt-BR%dism% /image:%mount2% /LogPath:%log%\Intl_Index_8.log /LogLevel:1 /Set-UserLocale:pt-BR%dism% /image:%mount2% /LogPath:%log%\Intl_Index_9.log /LogLevel:1 /Set-InputLocale:0416:00000416%dism% /image:%mount2% /LogPath:%log%\Intl_Index_10.log /LogLevel:1 /Set-AllIntl:pt-BR%dism% /image:%mount2% /LogPath:%log%\Intl_Index_11.log /LogLevel:1 /Set-TimeZone:"E. South America Standard Time"%dism% /image:%mount2% /LogPath:%log%\Intl_Index_12.log /LogLevel:1 /Set-SKUIntlDefaults:pt-BR%dism% /image:%mount2% /LogPath:%log%\Intl_Index_13.log /LogLevel:1 /Set-LayeredDriver:1%dism% /image:%mount2% /LogPath:%log%\Intl_Index_14.log /LogLevel:1 /Gen-LangINI /distribution:%distr%%dism% /image:%mount2% /LogPath:%log%\Intl_Index_15.log /LogLevel:1 /Set-SetupUILang:pt-Br /distribution:%distr%echo Save Image Index 2%dism% /Unmount-Wim /LogPath:%log%\Umount_intl_Index_5.log /LogLevel:1 /MountDir:%mount2% /commitecho Mount image Index 1%dism% /Mount-Wim /LogPath:%log%\Mount_intl_Index_5.log /LogLevel:1 /ScratchDir:%temp% /WimFile:%dvd%\install.wim /Index:1 /MountDir:%mount1%%%dism% /image:%mount1% /LogPath:%log%\intl_Index_1.log /LogLevel:1 /distribution:%distr% /Get-Intl%dism% /image:%mount1% /LogPath:%log%\Intl_Index_2.log /LogLevel:1 /Get-Intl%dism% /image:%mount1% /LogPath:%log%\Intl_Index_3.log /LogLevel:1 /distribution:%distr% /Get-Intl%dism% /image:%mount1% /LogPath:%log%\Intl_Index_4.log /LogLevel:1 /Set-UILang:pt-BR%dism% /image:%mount1% /LogPath:%log%\Intl_Index_6.log /LogLevel:1 /Set-UILangFallBack:pt-BR%dism% /image:%mount1% /LogPath:%log%\Intl_Index_7.log /LogLevel:1 /Set-SysLocale:pt-BR%dism% /image:%mount1% /LogPath:%log%\Intl_Index_8.log /LogLevel:1 /Set-UserLocale:pt-BR%dism% /image:%mount1% /LogPath:%log%\Intl_Index_9.log /LogLevel:1 /Set-InputLocale:0416:00000416%dism% /image:%mount1% /LogPath:%log%\Intl_Index_10.log /LogLevel:1 /Set-AllIntl:pt-BR%dism% /image:%mount1% /LogPath:%log%\Intl_Index_11.log /LogLevel:1 /Set-TimeZone:"E. South America Standard Time"%dism% /image:%mount1% /LogPath:%log%\Intl_Index_12.log /LogLevel:1 /Set-SKUIntlDefaults:pt-BR%dism% /image:%mount1% /LogPath:%log%\Intl_Index_13.log /LogLevel:1 /Set-LayeredDriver:1%dism% /image:%mount1% /LogPath:%log%\Intl_Index_14.log /LogLevel:1 /Gen-LangINI /distribution:%distr%%dism% /image:%mount1% /LogPath:%log%\Intl_Index_15.log /LogLevel:1 /Set-SetupUILang:pt-Br /distribution:%distr%echo Save Image Index 1%dism% /Unmount-Wim /LogPath:%log%\Umount_intl_Index_5.log /LogLevel:1 /MountDir:%mount1% /commitecho Montando boot Index 2%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\boot.wim /Index:2 /MountDir:%boot2%echo Adicionando LangPack no Boot Index 2%dism% /Image:%boot2% /ScratchDir:%temp% /Add-Package /PackagePath:%lp%\lp.cab /PackagePath:%lp%\winpe-setup_pt-br.cab /PackagePath:%lp%\winpe-setup-client_pt-br.cabecho Adicionando arquivos necessarios ao boot Index 2xcopy %boot2%\sources\pt-br\* %dvd%\pt-br /cherkyixcopy %boot2%\sources\license\pt-br\* %dvd%\license\pt-BR /cherkyiecho Desmontando e salvando o boot Index 2%dism% /UnMount-WIM /MountDir:%boot2% /Commitecho Montando Index 5%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\install.wim /Index:5 /MountDir:%mount5%echo Adicionando Arquivos necessarios a Index 5copy %mount5%\Windows\System32\Recovery\winre.wim %winre%echo aplicando Gen-LangINI na Image a Index 5%dism% /Image:%mount5% /Gen-LangINI /Distribution:%distr%echo Desmontando e salvando Index 5%dism% /UnMount-WIM /MountDir:%mount5% /Commitecho Montando Index 4%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\install.wim /Index:4 /MountDir:%mount4%echo Adicionando arquivos necessarios a Index 4copy %mount4%\Windows\System32\Recovery\winre.wim %winre%echo aplicando Gen-LangINI Index 4%dism% /Image:%mount4% /Gen-LangINI /Distribution:%distr%echo Desmontando e salvando a Index 4%dism% /UnMount-WIM /MountDir:%mount4% /Commitecho Montando Index 3%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\install.wim /Index:3 /MountDir:%mount3%echo Adicionando Arquivos necessarios Index 3copy %mount3%\Windows\System32\Recovery\winre.wim %winre%echo aplicando Gen-LangINI Index 3%dism% /Image:%mount3% /Gen-LangINI /Distribution:%distr%echo Desmontando e salvando Index 3%dism% /UnMount-WIM /MountDir:%mount3% /Commitecho Montando Index 2%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\install.wim /Index:2 /MountDir:%mount2%echo Adicionando arquivos necessarios a Index 2copy %mount2%\Windows\System32\Recovery\winre.wim %winre%echo aplicando Gen-LangINI a Index 2%dism% /Image:%mount2% /Gen-LangINI /Distribution:%distr%echo Desmontando e salvando Index 2%dism% /UnMount-WIM /MountDir:%mount2% /Commitecho Montando Index 1%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\install.wim /Index:1 /MountDir:%mount1%echo Adicionando Arquivos necessarios a Index 1copy %mount1%\Windows\System32\Recovery\winre.wim %winre%echo aplicando Gen-LangINI Index 1%dism% /Image:%mount1% /Gen-LangINI /Distribution:%distr%echo Desmontando e salvando Index 1%dism% /UnMount-WIM /MountDir:%mount1% /Commitecho Montando boot Index 2%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\boot.wim /Index:2 /MountDir:%boot2%echo Copiando Lang.inixcopy %dvd%\lang.ini %boot2%\sources\lang.ini /yecho Desmontando e salvando o boot Index 2%dism% /UnMount-WIM /MountDir:%boot2% /Commitecho Montando Boot Index 1%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%winre%\winre.wim /Index:1 /MountDir:%boot1%echo Adicionando LangPack Boot Index 1%dism% /Image:%boot1% /Add-Package /PackagePath:%lp%\lp.cab /PackagePath:%lp%\winpe-scripting_pt-br.cab /PackagePath:%lp%\winpe-setup_pt-br.cab /PackagePath:%lp%\winpe-setup-client_pt-br.cab /PackagePath:%lp%\winpe-srt_pt-br.cab /PackagePath:%lp%\winpe-wmi_pt-br.cab /PackagePath:%lp%\winpe-wds-tools_pt-br.cabecho Desmontando e salvando o boot Index 1%dism% /UnMount-WIM /MountDir:%boot1% /Commitecho Montando Index 5%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\install.wim /Index:5 /MountDir:%mount5%echo Adicionando arquivos necessarioscopy %winre%\winre.wim %mount5%\Windows\System32\recovery\winre.wim /yecho Desmontando e salvando a Index 5%dism% /UnMount-WIM /MountDir:%mount5% /Commitecho Montando  Index 4%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\install.wim /Index:4 /MountDir:%mount4%echo Adicionando arquivos necessarios a Index 4copy %winre%\winre.wim %mount4%\Windows\System32\recovery\winre.wim /yecho Desmontando e salvando a index 4%dism% /UnMount-WIM /MountDir:%mount4% /Commitecho Montando a index 3%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\install.wim /Index:3 /MountDir:%mount3%echo Adicionando arquivos necessarios a index 3copy %winre%\winre.wim %mount3%\Windows\System32\recovery\winre.wim /yecho Desmontando e salvando as index 3%dism% /UnMount-WIM /MountDir:%mount3% /Commitecho Montando a index 2%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\install.wim /Index:2 /MountDir:%mount2%echo Adicionando arquivos necessarios a index 2copy %winre%\winre.wim %mount2%\Windows\System32\recovery\winre.wim /yecho Desmontando e salvando a index 2%dism% /UnMount-WIM /MountDir:%mount2% /Commitecho Montando a index 1%dism% /Mount-WIM /ScratchDir:%temp% /WIMFile:%dvd%\install.wim /Index:1 /MountDir:%mount1%echo Adicionando arquivos necessarios a index 1copy %winre%\winre.wim %mount1%\Windows\System32\recovery\winre.wim /yecho Desmontando e salvando a index 1%dism% /UnMount-WIM /MountDir:%mount1% /Commit

Edited by Alexandre
added spoiler tags
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...