Jump to content

Strange behaviour setup multiple languages


Recommended Posts

Okey, I have a wierd problem and I hope that someone can help me out.

I have a windows 7 x64 EN version. Slipstreamed the Dutch language pack.

I altered in boot.wim index 2 the spwizimg.dll file (source 517 and 518) and changed setup.bmp and winpe.bmp

So I have windows setup with a custom background. See Image.

msfn-3.jpg

msfn-4.jpg

The First setup screen (Select language) has also my custom background.

Also the second where I can change my keyboardlayout and change language. (see images above)

When I add my Autounattend.xml with this in it I see this.

msfn-1.jpg

msfn-2.jpg

I thought it was with the dutch language files, but there is no spwizimg.dll or spwizimg.dll.mui for that languagepack.

So what must I do to get this to work.

Hope That someone can help me out.

Thx Glim

My autounattend.xml


<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ComplianceCheck>
<DisplayReport>OnError</DisplayReport>
</ComplianceCheck>
<Diagnostics>
<OptIn>false</OptIn>
</Diagnostics>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>768</VerticalResolution>
</Display>
<DiskConfiguration>
<WillShowUI>Always</WillShowUI>
</DiskConfiguration>
<DynamicUpdate>
<Enable>false</Enable>
<WillShowUI>Never</WillShowUI>
</DynamicUpdate>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Value>4</Value>
<Key>/IMAGE/INDEX</Key>
</MetaData>
</InstallFrom>
<InstallToAvailablePartition>false</InstallToAvailablePartition>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
<UpgradeData>
<Upgrade>false</Upgrade>
<WillShowUI>Never</WillShowUI>
</UpgradeData>
<UserData>
<AcceptEula>true</AcceptEula>
<FullName>The Glimmerman</FullName>
<Organization>Damage Inc.</Organization>
</UserData>
<EnableFirewall>true</EnableFirewall>
<EnableNetwork>true</EnableNetwork>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<BlockPopups>yes</BlockPopups>
<CompanyName>Damage Inc.</CompanyName>
<DisableAccelerators>true</DisableAccelerators>
<DisableFirstRunWizard>true</DisableFirstRunWizard>
<FavoritesDelete>true</FavoritesDelete>
<IntranetCompatibilityMode>false</IntranetCompatibilityMode>
<ShowInformationBar>true</ShowInformationBar>
<ShowMenuBar>true</ShowMenuBar>
<SuggestedSitesEnabled>false</SuggestedSitesEnabled>
</component>
<component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DisableSR>1</DisableSR>
</component>
<component name="Security-Malware-Windows-Defender" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DisableAntiSpyware>true</DisableAntiSpyware>
</component>
<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Identification>
<JoinWorkgroup>NIKITA</JoinWorkgroup>
</Identification>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Display>
<ColorDepth>32</ColorDepth>
<DPI>96</DPI>
<HorizontalResolution>1024</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>768</VerticalResolution>
</Display>
<WindowsFeatures>
<ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer>
<ShowMediaCenter>false</ShowMediaCenter>
</WindowsFeatures>
<BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<RegisteredOrganization>Damage Inc.</RegisteredOrganization>
<RegisteredOwner>The Glimmerman</RegisteredOwner>
<ShowWindowsLive>false</ShowWindowsLive>
<TimeZone>W. Europe Standard Time</TimeZone>
<ProductKey>BUYO-RIGI-NALS-OFTW-ARE</ProductKey>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Sidebar" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Gadget1>%PROGRAMFILES%\Windows Sidebar\Gadgets\RebootRouter.Gadget</Gadget1>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OEMInformation>
<Model>XNi9070d 18,4" Laptop</Model>
<Manufacturer>XXODD</Manufacturer>
</OEMInformation>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>2</ProtectYourPC>
</OOBE>
<Themes>
<ThemeName>Windows 7</ThemeName>
<ScreenSaver>Ribbons.scr</ScreenSaver>
<DesktopBackground>%SystemRoot%\web\wallpaper\Windows\img0.jpg</DesktopBackground>
<DefaultThemesOff>false</DefaultThemesOff>
<BrandIcon>c:\Windows\Resources\Themes\Windows7.png</BrandIcon>
</Themes>
<VisualEffects>
<FontSmoothing>ClearType</FontSmoothing>
</VisualEffects>
<WindowsFeatures>
<ShowMediaCenter>false</ShowMediaCenter>
<ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer>
</WindowsFeatures>
<BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<RegisteredOrganization>Damage Inc.</RegisteredOrganization>
<RegisteredOwner>The Glimmerman</RegisteredOwner>
<ShowWindowsLive>false</ShowWindowsLive>
<TimeZone>W. Europe Standard Time</TimeZone>
<UserAccounts>
<AdministratorPassword>
<Value>MySecret</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
</UserAccounts>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:f:/7work/dvd/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Link to comment
Share on other sites


I think you need to integrate the correct language pack (Dutch x64):

Windows 7 MUI language packs

Understanding Multilingual Deployments

Thanks myselfidem

I've downloaded and integrate the new LP.

And same problem.

I noticed something else.

Without the autounattend.xml the windows are in 'classic' style. see pictures

With an xml its vista/seven style. (This is source 516 in spwizimg.dll)

So the problem is not the lp it self.

I'm editing the source 516 now as we speak. But my black background color and black text does not match.

So now Í have to figure out how to change the text color.

Still looking for an answer.

Link to comment
Share on other sites

You can check the image 518

Mount install.wim 4 and boot.wim 2

inside boot.wim 2 : C:\Temp folder\sources\spwizimg.dll\518

inside install.wim 4 : C:\Temp folder\Windows\System32\spwizimg.dll\518

inside C:\%DVD%\sources\spwizimg.dll\518

Look also inside Windows\SysWOW64\spwizimg.dll\518

Edited by myselfidem
Link to comment
Share on other sites

Myselfidem you are a great help. I appreciate that. :thumbup

But your last suggestion didn't work.

I modded all the files you named and still not working.

I keep getting the vista/seven style white window with selecting my language. (source 516)

Maybe I should not install the dutch LP in boot.wim only in install.wim.

The LP in boot.wim is for the setup only. right?

But then how does setup know that it could choose between english and dutch languages.

Still work in progress

Link to comment
Share on other sites

When you customize the spwizimg.dll (or others .dll's files) be carefull to save your new file inside an other folder and AFTER change the original one (need to take ownership), otherwise your modifications are lost!

Add and Remove Language Packs Offline

For me, I've created at first a Windows 7 Ultimate x86 with dll's modded (spwizimg.dll, imageres.dll, etc.) and working fine. And I use this new DVD to add after language pack en-US, updates, drivers, etc.

*EDIT: Walkthrough: Add Multilingual Support to Windows Setup

Step 4:

Add Windows Language Packs to the Windows Image

In this step, you must add the same language support to your Windows image file, Install.wim, as you did for the Boot.wim file. The Setup process requires that both images contain the same set of language packs. For more information, see Add and Remove Language Packs Offline.

Next Step

Your Windows installation now supports multilingual Setup.

If you want to recreate media, you must create a boot order file before creating an .iso image because of the size of the image. For example,

Using a text editor, such as Notepad, create a text file called bootorder.txt and copy the following text directly into the file.

Bootmgr

boot\bcd

boot\boot.sdi

boot\bootfix.bin

boot\bootsect.exe

boot\etfsboot.com

boot\memtest.efi

boot\memtest.exe

boot\en-us\bootsect.exe.mui

boot\fonts\chs_boot.ttf

boot\fonts\cht_boot.ttf

boot\fonts\jpn_boot.ttf

boot\fonts\kor_boot.ttf

boot\fonts\wgl4_boot.ttf

sources\boot.wim

With my French localised version Windows 7 Ultimate x86, I can install with English after I've integrated this language (inside boot.wim 2 and install.wim 5)!

Edited by myselfidem
Link to comment
Share on other sites

Oke, I'm going to follow the Walkthrough: Add Multilingual Support to Windows Setup.

I did not integrate the winpe setup and client stuff.

Is this needed. Because vlite or RT 7lite only speak over the languagepack and not the winpe language packs.

Did u intergrate them?

I have a english W7 x64 with modded dll's and is working.

I'm going to integrate the dutch language packs.

I will let you know how it worked out.

Thx myselfidem.

greetz glim

Link to comment
Share on other sites

I've also found help here:

HowTo : create a multi language Windows 7 or Windows 2008 R2 server DVD installer.

The language for boot.wim is on the WAIK for Windows 7 DVD ; insert this one on your drive CD\DVD (E:\ with this example).

Addapt the path and the batch file to your needs.

I've created a batch file to automate the process for adding the language pack (nl-nl) inside boot.wim 2 and install.wim 4

WAIK must be installed on your computer!

Add_Language-nl-NL.cmd


@echo off
REM Integrate Dutch language inside the source folder for Windows 7 Ultimate amd64 boot.wim 2 et install.wim 4
REM Copy your DVD Windows 7 - Whithout updates integrated - on your patition C:\
REM Language Pack Dutch on C:\Lang
REM Creates a temp folder "C:\Mount"
echo.
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Mount-Wim /WimFile:"C:\Win_new\sources\boot.wim" /index:2 /MountDir:"C:\Mount"
echo.
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Image:"C:\Mount" /Add-Package /PackagePath:E:\WinPE_LangPacks\amd64\nl-nl\lp.cab
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Image:"C:\Mount" /Add-Package /PackagePath:E:\WinPE_LangPacks\amd64\nl-nl\winpe-setup_nl-nl.cab
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Image:"C:\Mount" /Add-Package /PackagePath:E:\WinPE_LangPacks\amd64\nl-nl\winpe-setup-client_nl-nl.cab
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Image:"C:\Mount" /Add-Package /PackagePath:E:\WinPE_LangPacks\amd64\nl-nl\winpe-scripting_nl-nl.cab
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Image:"C:\Mount" /Add-Package /PackagePath:E:\WinPE_LangPacks\amd64\nl-nl\winpe-srt_nl-nl.cab
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Image:"C:\Mount" /Add-Package /PackagePath:E:\WinPE_LangPacks\amd64\nl-nl\winpe-wds-tools_nl-nl.cab
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Image:"C:\Mount" /Add-Package /PackagePath:E:\WinPE_LangPacks\amd64\nl-nl\winpe-wmi_nl-nl.cab
echo.
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Image:"C:\Mount" /Gen-LangINI /distribution:"C:\Mount"
echo.
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Unmount-WIM /MountDir:"C:\Mount" /Commit
echo.
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Mount-Wim /WimFile:"C:\Win_new\sources\install.wim" /index:4 /MountDir:"C:\Mount"
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Image:"C:\Mount" /Add-Package /PackagePath:"C:\Lang\windows6.1-kb972813-amd64-nl-nl.cab"
"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Unmount-WIM /MountDir:"C:\Mount" /Commit
echo.
"C:\Program Files\Windows AIK\Tools\amd64\oscdimg.exe" -u2 -m -o -lWin_new -b"C:\Win_new\boot\etfsboot.com" "C:\Win_new" "C:\Win_new.iso"
echo.
echo ==End process==
echo.
pause

I've tested for me successfuly (Windows 7 Ultimate x86 French version with English added)!

Edited by myselfidem
Link to comment
Share on other sites

Well myselfidem,

I followed the walktrough. And I have it working like the 2 first pics in my first post.

Working so far.

But when I add my autounattend.xml reload mysetup.

I dont get my classic setup window like this

msfn-3.jpg

But I get this

msfn-1.jpg

Whats wrong. :wacko:

Autounattend.xml

Edited by The Glimmerman
Link to comment
Share on other sites

I think you need to copy the originals folders boot.wim and install.wim inside your distribution folder (Example C:Win7), and delete the others one.

First integrate the Dutch language pack like my example above (boot.wim and install.wim).

Do not integrate updates now. The updates must be integrated after!

Try with the Virtual Machine first without unattend file!

I hope that will help you!

Add a Package to a Windows PE Image

Check the Autounattend.xml (yours amd64):

Delete this line:

</component>

<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<SetupUILanguage>

<UILanguage>en-US</UILanguage>

<WillShowUI>Always</WillShowUI>

</SetupUILanguage>

I've misunderstood the language pack needed for you! You want add Dutch and not German.

Sorry!!! I've updated my last post for Dutch language!

The batch file works fine but you need to adapt to your needs

Edited by myselfidem
Link to comment
Share on other sites

I think you need to copy the originals folders boot.wim and install.wim inside your distribution folder (Example C:Win7), and delete the others one.

What did you mean by this. What folder need to be copied and deleted.

Without an unattended.xml it is working.

I get the 'classic' setup with my custom background.

But with an autounattend.xml I get this.

msfn-1.jpg

Link to comment
Share on other sites

Because I think that something is missing!

I've the same customized images with an unattended installation (Autounattend.xml) or manual installation, even if I choose French installation or English installation.

You can check your Autounattend.xml with WSIM include with WAIK for Windows 7.

Which program are you using to customize dll's files? Restorator 2007?

*Edit: Check if all spwizimg.dll (with source 518 and source 516 customized) customized have been replaced inside your distribution folder (boot.wim 2 and install.wim 4 and inside %DVD%\sources\spwizimg.dll)!

Inside your Autounattend.xml you need to set the correct IMAGE/INDEX

If you have all the images. For you is <Value>4</Value> for Windows 7 Ultimate 64-bits.


<InstallFrom>
<MetaData wcm:action="add">
<Value>1</Value>
<Key>/IMAGE/INDEX</Key>
</MetaData>
</InstallFrom>

You can also use:


<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows 7 ULTIMATE</Value>
</MetaData>
</InstallFrom>

Unattended Windows Setup Reference for Windows 7.chm

MetaData

MetaData specifies the unique data in a Windows® image (.wim) file. You can use the MetaData setting to select a specific data image in a .wim file that matches one or more values specified by the Metadata setting.

The value for MetaData must match the value of the Index, the Name, or the Description of the Windows image. For example, rather than specifying an index number, you can select a data image by using the Name metadata. As another example, you can choose to install the data image with the name "FabrikamDriverFiles" by specifying the Key and Value pair for this data image.

When you create a Windows image, you can specify unique metadata for that image. You can view the metadata for a .wim file, by using the imagex /info command. You can update the Name and Description metadata fields of your images, by using the imagex command. For more information, see the ImageX Technical Reference in the Windows® OEM Preinstallation Kit (Windows OPK) User's Guide (Opk.chm) or the Windows® Automated Installation Kit (Windows AIK) User's Guide (Waik.chm).

Edited by myselfidem
Link to comment
Share on other sites

I'm using restorator 2007.

I tried it even backwards. Got a dutch x64 windows 7.

Integrated the english languagepack with RT7Lite 1.50.

Loaded in vmware and not working. I get the vista/seven setup look. (this is source 516 - spwizimg.dll)

After inspecting my %DVD% I saw a simple no use autounattend.xml generated by RT7lite.

By removing this file, I get the classic look.

<?xml version="1.0" encoding="utf-8"?>
<!--This answer file generated by RT Seven Lite-->
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</settings>
<settings pass="specialize" />
</unattend>

This also works with a english windows 7 with dutch languagepack installed.

But when adding an autounattend.xml it's not working. I get the vista/seven look.

I cannot understand why a autounattend.xml causes setup to use source 516 from spwizimg.dll and without not.

I must say I only have 517 and 518 changed in spwizimg.dll

Do you have source 516 changed?

Regards.

Edited by The Glimmerman
Link to comment
Share on other sites

Could you please send as attachment your spwizimg.dll, and I will take a look ?

You can try my spwizimg.dll (64-bits) customized like the example above, here:

7background_X64_French_dlls.rar

But I'm not sure that will working with your localized Windows version!

You can also extract the source 516, but I've just add one image inside!

I think that the trouble is with the source 518.

It seems that with Autounattend.xml the boot.wim 1 is loaded and without this is the boot.wim 2 (customized) which is loaded!?

You can try the new RT Seven Lite 1.7.0 RC!

Thanks

*Edit: You can also use RT Se7en Lite to integrate your customized spwizimg.dll !

Edited by myselfidem
Link to comment
Share on other sites

It seems that with Autounattend.xml the boot.wim 1 is loaded and without this is the boot.wim 2 (customized) which is loaded!?

I think boot.wim index 1 is windows recovery mode. Only boot.wim index 2 is for windows setup.

There is no spwizimg.dll in index 1.

The attachment is from my boot.wim

I also have a other with a custom image (516) This one is not white, but transparent. I got it from Rockers Team - Windows 7 Fire from bensam56.

I don't know how he did it, but if I cannot get this to work I'll be using his dll for the time being.

If u want I can upload it.

I'll download your file and will build a new image from scratch.

I'll let you know how it works out.

Thx

spwizimg.7z

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...