Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win7 autounattend.xml and en-GB problems

Status
Not open for further replies.

Leozack

MIS
Oct 25, 2002
867
GB
I've browsed around a lot (but 2am must stop work in morning) and it seems lots of other people have had similar issues ... I want the win7 setup to NOT STOP at the "select your language/date" screen where it defaults to en-US.

<SetupUILanguage>
<UILanguage>en-GB</UILanguage>
</SetupUILanguage>
<InputLocale>0809:00000809</InputLocale>
<SystemLocale>en-GB</SystemLocale>
<UILanguage>en-GB</UILanguage>
<UILanguageFallback>en-GB</UILanguageFallback>
<UserLocale>en-GB</UserLocale>

I've tried these settings under windowsPE pass under Microsoft-Windows-International-Core-WinPE and also in oobeSystem under Microsoft-Windows-Shell-Setup using en-GB or 809:00000809 etc in various parts and even leaving en-US in for setupuilanguage

But no matter what I do - anything short of all en-US will bring up the language selection screen. As far as I'ma ware there's no other process I need to do to set it to UK english, no packs to install or anything. I also edited the \sources\lang.ini to be en-GB instead of en-US but no joy.

Going mad here - this stuff was always fine on XP, only thing setupa sked for in XP was the machinename (and for win7 here I've ever included that so it should ONLY stop on the partition screen, that's the plan. Then I need to figure out the sysprep answerfile for joining a domain after being ghosted ...

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
That just shows how to run vlite - I used instead which looks remarkably similar.

Eitherway the problem isn't using software to make an answerfile it's with the contents of the answerfile and specifically the bits I mentioned above. Does noone have a UK answerfile that successfully skips the language screen whilst setting it all to UK rather than selecting en-US?

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Perhaps this will be of use:

Customise and Deploy Windows 7 pre-configured and automatically (unattended installs) with the Windows Automated Installation Kit

it talks about using WAIK to create the Unattended Install DVD...

Ben
"If it works don't fix it! If it doesn't use a sledgehammer..."
How to ask a question, when posting them to a professional forum.
Only ask questions with yes/no answers if you want "yes" or "no"
 
OK so after much faffing around with vlite adn rt7lite and unattend.xml generators I have an answerfile which DOESN'T ask for language etc during winpe setup and DOES leave the opc in en-GB (UK) mode.

However my runsynchronous task seems to fail to setup an environment variable for running a batchfile off the usb after install - so that failed and I'm not sure how to fix that so I can run a file from the installsource drive after install?

Code:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
  <settings pass="windowsPE">
    <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="[URL unfurl="true"]http://schemas.microsoft.com/WMIConfig/2002/State"[/URL] xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance">[/URL]
      <SetupUILanguage>
        <UILanguage>en-US</UILanguage>
      </SetupUILanguage>
      <InputLocale>0809:00000809</InputLocale>
      <UserLocale>en-GB</UserLocale>
      <UILanguage>en-US</UILanguage>
      <SystemLocale>en-GB</SystemLocale>
    </component>
    <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="[URL unfurl="true"]http://schemas.microsoft.com/WMIConfig/2002/State"[/URL] xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance">[/URL]
      <ImageInstall>
        <OSImage>
          <InstallFrom>
            <MetaData wcm:action="add">
              <Key>/IMAGE/NAME</Key>
              <Value>Windows 7 PROFESSIONAL</Value>
            </MetaData>
          </InstallFrom>
          <InstallToAvailablePartition>false</InstallToAvailablePartition>
          <WillShowUI>OnError</WillShowUI>
        </OSImage>
      </ImageInstall>
      <UserData>
        <ProductKey>
          <Key></Key>
          <WillShowUI>OnError</WillShowUI>
        </ProductKey>
        <Organization>ORG NAME</Organization>
        <FullName>NAME</FullName>
        <AcceptEula>true</AcceptEula>
      </UserData>
    </component>
    </settings>
  <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="[URL unfurl="true"]http://schemas.microsoft.com/WMIConfig/2002/State"[/URL] xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance">[/URL]
      <OOBE>
        <HideEULAPage>true</HideEULAPage>
        <NetworkLocation>Work</NetworkLocation>
        <ProtectYourPC>3</ProtectYourPC>
        <SkipMachineOOBE>true</SkipMachineOOBE>
        <SkipUserOOBE>true</SkipUserOOBE>
      </OOBE>
      <UserAccounts>
        <AdministratorPassword>
          <Value>PlainPassword</Value>
        </AdministratorPassword>
      </UserAccounts>
      <AutoLogon>
        <Password>
          <Value>PlainPassword</Value>
        </Password>
        <Enabled>true</Enabled>
        <LogonCount>1</LogonCount>
        <Username>Administrator</Username>
      </AutoLogon>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>%InstallDrive%\FirstRun.bat</CommandLine>
                    <Order>1</Order>
                    <Description>First run file</Description>
                </SynchronousCommand>
            </FirstLogonCommands>
    </component>
  </settings>
  <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="[URL unfurl="true"]http://schemas.microsoft.com/WMIConfig/2002/State"[/URL] xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance">[/URL]
      <ComputerName>Win7SP1</ComputerName>
    </component>
    <component name="Microsoft-Windows-Security-Licensing-SLC-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="[URL unfurl="true"]http://schemas.microsoft.com/WMIConfig/2002/State"[/URL] xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance">[/URL]
      <SkipAutoActivation>true</SkipAutoActivation>
    </component>
    <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="[URL unfurl="true"]http://schemas.microsoft.com/WMIConfig/2002/State"[/URL] xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance">[/URL]
        <RunSynchronous>
            <RunSynchronousCommand wcm:action="add">
                <Order>1</Order>
                <Path>cmd /c &quot;FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\FirstRun.bat SETX InstallDrive %i:\ -m&quot;</Path>
            </RunSynchronousCommand>
        </RunSynchronous>
    </component>
  </settings>
  <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
[Note all this firstlogoncommands work is to avoid using setupcomplete.cmd because everything in there (does work, including installations) happens while it says "testing video performance" sadly, and sitting there saying that for 5-10m isn't good for anyone watching who may think it's stuck]

Ok so I've since changed it so that I have a FirstRun.cmd in windows\setup\scripts and that is what my firstlogoncommand runs and I have no more runsynchronous.

This works and fires the firstrun.cmd which checks the drivelist and runs [installdrive]\FirstRun\FirstRun.bat

I've checked via writing to c:\test.log and the script IS running all the way down. But it's not doing the important tasks in the script even though it runs right through! The script DOES manage to delete the xml from windows\panther and DOES manage to delete the script files from windows\setup\scripts but it DOESN'T run the dotnet4 install /quiet /norestart which it should and DOESN'T succeed in running a regfile which ahs tweaks in it.

Is there a reason firstlogon can't install dotnet4 or merge a regfile? I repeat - the script definately runs right to the end. And I'm SURE it was working last night at some point during tests.

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top