Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Changing Date Format in Autounattend.xml

- - - - -

  • Please log in to reply
11 replies to this topic

#1
McoreD

McoreD

    Member

  • Member
  • PipPip
  • 156 posts
Hi Guys,

Could you please give me some XML examples that customize the date format and Language.

Basically I want to have it like this after Windows is finished installing:

Posted Image

Posted Image

Posted Image

Thanks,
McoreD


How to remove advertisement from MSFN

#2
McoreD

McoreD

    Member

  • Member
  • PipPip
  • 156 posts
From ISO 3166-1 : http://www.iso.org/i...d_code_elements

This should cover Location and Language:

<InputLocale>en-AU</InputLocale>
<SystemLocale>en-AU</SystemLocale> 
<UILanguage>en-AU</UILanguage> 
<UserLocale>en-AU</UserLocale>

Edited by McoreD, 06 June 2009 - 06:23 PM.


#3
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,760 posts
  • OS:Windows 7 x64
  • Country: Country Flag
I have also tried that in all available passes however always defaults to en-US?
Hope you track that one down.

#4
urie

urie

    Senior Member

  • Member
  • PipPipPipPip
  • 519 posts
I have this for uk

<settings pass="windowsPE">
		<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>
			</SetupUILanguage>
			<InputLocale>0809:00000809</InputLocale>
			<SystemLocale>en-UK</SystemLocale>
			<UILanguage>en-US</UILanguage>
			<UserLocale>en-UK</UserLocale>
		</component>


#5
McoreD

McoreD

    Member

  • Member
  • PipPip
  • 156 posts
Thanks. After a bit more googling I found the Input Locale for AU. I don't know if <InputLocale>0c09:00000409</InputLocale> is the same as <InputLocale>en-AU</InputLocale>, anyways:

<component name="Microsoft-Windows-International-Core" 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">
			<InputLocale>0c09:00000409</InputLocale>
			<SystemLocale>en-AU</SystemLocale>
			<UILanguage>en-AU</UILanguage>
			<UILanguageFallback>en-US</UILanguageFallback>
			<UserLocale>en-AU</UserLocale>
		</component>

How to customize Date and Time format is still undetermined. Anybody have a clue?

#6
ajua

ajua

    Custom Installer Maker

  • Member
  • PipPipPipPipPipPip
  • 1,261 posts
For Inout locale i had to use <InputLocale>0001042f</InputLocale> because <InputLocale>es-ES</InputLocale> or even <InputLocale>es-MX</InputLocale> never worked for me since Vista came out.

For the other regional settings maybe you can use registry tweaks or read the WAIK docs. I remember seeing some info there but i'm not sure as to what extent you can modify date and time formats.

Custom Installers for your unattended needs.


#7
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,760 posts
  • OS:Windows 7 x64
  • Country: Country Flag
I do agree something that was not overcome since Vistas inception I'm now to believe. Like McoreD I have used every combination available in the passes to get the Au to work. Always falls back to en-US.

#8
ajua

ajua

    Custom Installer Maker

  • Member
  • PipPipPipPipPipPip
  • 1,261 posts
Maybe trying to not set the fallback language to <UILanguageFallback>en-US</UILanguageFallback> gets yours to work.

Just leave it empty in WAIK or delete in the XML file.

My input works even in Windows 7 XML file, but I'm trying to set the TAPI settings from the XML file but I get an error that they can't be set and the installation aborts.

Custom Installers for your unattended needs.


#9
McoreD

McoreD

    Member

  • Member
  • PipPip
  • 156 posts
Everything went fine for last night's install:

<component name="Microsoft-Windows-International-Core" 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">
			<InputLocale>0c09:00000409</InputLocale>
			<SystemLocale>en-AU</SystemLocale>
			<UILanguage>en-AU</UILanguage>
			<UILanguageFallback>en-US</UILanguageFallback>
			<UserLocale>en-AU</UserLocale>
		</component>

except the Date Formats.

These, I still have to do manually:

yyyy-MM-dd
HH:mm:ss

Are there any Autounattend.xml settings for these? I went through the WAIK's Help file but didn't see anything. So I guess there can be a registry hack for it.

#10
MrEs

MrEs

    Newbie

  • Member
  • 15 posts
Thanks for the InputLocale :)

#11
saraoxford

saraoxford
  • Member
  • 1 posts
  • OS:Server 2008 x64
  • Country: Country Flag
Hello McoreD,

Did you find any way to define date and time format in Unattended.XML file (answer file)? If not, how did you over come this?

Thank you

Regards,
Saravanan

#12
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,710 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

It is not an option in Autounattend.xml, but you can still script it. If you have in your FirstLogonCommands, you can use intl.cpl and an XML file to set the date format.

Here's an example of the XML itself:
http://blogs.msdn.co.../30/610505.aspx
Here's two other pages that might help:
http://technet.micro...7(v=ws.10).aspx
http://msdn.microsof...650(en-us).aspx
MSFN RULES | GimageX HTA for PE 3.x | lol probloms
msfn2_zpsc37c7153.jpg




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN