Jump to content

Recommended Posts

Posted

Hi,

I've almost finished my unattended installation of XP Pro Corp. I also added the MUI pack (Dutch) and with that, there is a small problem I haven't figured out yet. What happens....

After unattended installing, RunOnceEx, cleaning up and restarting there is still one weird thing. When I log off (or on), restart or shutdown I go past the log on (welcome) or log off (windows is shutting down...) screens... and those aren't English, they are in Dutch. This while my language settings are set for English.

I can fix this problem manually by going to the control panel, regional and language options, advanced tab, and then chech the checkbox to apply settings to Default user etc. After apply and OK the language on the log on/off screens are finally English as well. So that fixes it .. manually.

I've tried to make an AutoIt script:

Run("RUNDLL32 SHELL32.DLL,Control_RunDLL intl.cpl,@0,2")

Sleep (500)

ControlClick ( "Regional and Language Options", "Apply all settings to the current user account and to the &default user profile", 1054)

Sleep (500)

ControlClick ( "Change Default User Settings", "", 2)

Sleep (500)

ControlClick ( "Regional and Language Options", "Apply", 12321)

Sleep (500)

ControlClick ( "Regional and Language Options", "OK", 1)

Sleep (500)

And put (a compiled .exe version) it in my final restart Start Menu\Startup. But to no avail. I still have to do it manually.

Any suggestions? All ideas are welcomed.

Roland


Posted

Run("RUNDLL32 SHELL32.DLL,Control_RunDLL intl.cpl,@0,2")

; Tick Checkbox to apply all setting...
WinWait("Regional and Language Options", "Apply all settings to the current user account and to the &default user profile")
ControlClick("Regional and Language Options", "Apply all settings", 1054)

; Messagebox of confirmation.
WinWait("Change Default User Settings")
ControlClick("Change Default User Settings", "", 2)

; Wait for window to enable again to apply changes and then click ok.
While Not BitAND(WinGetState("Regional and Language Options", "Apply all settings"), 4)
Sleep(10)
WEnd
ControlClick("Regional and Language Options", "Apply all settings", 12321)
ControlClick("Regional and Language Options", "Apply all settings", 1)

Check your ControlIDs are ok and this should work fine. I get a different ControlID number for the checkbox but maybe the language or version of the OS may make the difference ?

Posted

Hi,

Thanks. It works indeed. Somehow the controlID was diff.

In the mean time I found out another (registry) way to solve the problem. At first I was unable to find a diff in the registry by using RegShot. Then I read somewhere in this forum you can also compare two registry-instances with RegShot before and after reboot (by saving the hive, and loading that into RegShot after reboot). I did that, and derived that this difference does the trick:

REG ADD "HKU\.DEFAULT\Control Panel\Desktop" /v "MultiUILanguageId" /t REG_SZ /d "00000409" /f

REG ADD "HKU\.DEFAULT\Control Panel\Desktop" /v "MUILanguagePending" /t REG_SZ /d "00000409" /f

REG ADD "HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\ThemeManager" /v "LastUserLangID" /t REG_SZ /d "1033" /f

When you put this in a .bat or .cmd file it works like magic. This applies only to a system with Dutch MUI installed and set to English language. With other languages the values should differ. So check the registry values then.

Roland

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