Jump to content

What do I have to change in this XML file?


Recommended Posts

See my XML file. I have WPI in the next folder tree: %CDROM%\WPI\wpi.exe

Why is WPI not starting after installation of Windows 7? Can somebody tell me what I have to change?

I don't have any Scripts. I already tried the setupcomplete script but it doesn't work:

  <?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="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SystemLocale>en-us</SystemLocale>
<UserLocale>en-us</UserLocale>
<UILanguage>nl-NL</UILanguage>
<UILanguageFallback>en-us</UILanguageFallback>
<InputLocale>0409:00000409</InputLocale>
</component>
- <component name="Microsoft-Windows-Setup" 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">
- <UserData>
- <ProductKey>
<Key>XXXXXXXXXXXXXX</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<Organization>WORKGROUP</Organization>
<FullName>Eigenaar</FullName>
<AcceptEula>true</AcceptEula>
</UserData>
- <ImageInstall>
- <OSImage>
- <InstallFrom>
- <MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows 7 HOMEBASIC</Value>
</MetaData>
</InstallFrom>
</OSImage>
</ImageInstall>
</component>
</settings>
- <settings pass="oobeSystem">
- <component name="Microsoft-Windows-Shell-Setup" 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">
- <UserAccounts>
- <LocalAccounts>
- <LocalAccount wcm:action="add">
<Name>Gebruiker</Name>
<Group>Administrators</Group>
- <Password>
<PlainText>true</PlainText>
<Value />
</Password>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
- <Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
</Display>
- <OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
</OOBE>
</component>
- <component name="Microsoft-Windows-International-Core" 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">
<UILanguage>nl-NL</UILanguage>
<UserLocale>nl-NL</UserLocale>
<InputLocale>0409:00020409</InputLocale>
</component>
</settings>
- <settings pass="specialize">
- <component name="Microsoft-Windows-IE-InternetExplorer" 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">
<Help_Page>http://www.google.nl</Help_Page>
<Home_Page>http://www.google.nl</Home_Page>
<FilterLevel>Medium</FilterLevel>
<BlockPopups>yes</BlockPopups>
<ShowInformationBar>true</ShowInformationBar>
<FavoritesDelete>false</FavoritesDelete>
<IEWelcomeMsg>true</IEWelcomeMsg>
<PlaySound>true</PlaySound>
</component>
- <component name="Microsoft-Windows-Shell-Setup" 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">
- <Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
</Display>
- <AutoLogon>
<Enabled>true</Enabled>
<Username>Gebruiker</Username>
- <Password>
<Value />
</Password>
<LogonCount>9999999</LogonCount>
</AutoLogon>
<TimeZone>W. Europe Standard Time</TimeZone>
<ComputerName>PCGEBRUKER</ComputerName>
- <FirstLogonCommands>
- <SynchronousCommand wcm:action="add">
<CommandLine>cmd /q /c for %i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) %%i:\sources\install.wim set CDROM=%%i: Start %cdrom%\WPI\wpi.exe</CommandLine>
<Description>Windows Post Install Wizard</Description>
<Order>1</Order>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:C:/Users/Crunch/Desktop/Windows7HomeBasic32/sources/install.wim#Windows 7 Home Basic" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Edited by crunch81
Link to comment
Share on other sites


@crunch81

I don't use WPI with Windows 7, but J have tested for give you somme help.

I have used with Windows XP. For Windows 7, J use RunOnceEx method and 7Customizer.

But WPI is really interesting and useful.

I have tested on the HDD and not with a virtual machine.

You can try this method, J've tested succefully.

You don't need to add anything more in the Auntounattend .xml file.

In the folder \sources\$OEM$\$$\SETUP\SCRIPTS

Create a batch file named "WPI.bat" (you can copy/paste this script):

In your "WPI.bat"

------------------------------------------------------------------

@echo off

TAKEOWN /F %SystemDrive%\Windows\System32\cmd.exe

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\sources\install.wim

SET CDROM=%%i:

start /Wait %CDROM%\WPI\WPI.exe

exit

---------------------------------------------------------------------------

And in your "SetupComplete.cmd"

---------------------------------------

@echo off

start /Wait %~dp0WPI.bat

exit

----------------------------------------

Use only the files in "WPI.rar" with the WPI.exe.

And remenber that some softwares needs to be copied on the HDD for their installation.

Good luck and enjoy.

Edited by myselfidem
Link to comment
Share on other sites

@crunch81

J don't use WPI with Windows 7, but J have tested for give you somme help.

J have used with Windows XP. For Windows 7, J use RunOnceEx method and 7Customizer.

But WPI is really interesting and useful.

J have tested on the HDD and not with a virtual machine.

You can try this method, J've tested succefully.

You don't need to add anything more in the Auntounattend .xml file.

In the folder \sources\$OEM$\$$\SETUP\SCRIPTS

Create a batch file named "WPI.bat" (you can copy/paste this script):

In your "WPI.bat"

------------------------------------------------------------------

@echo off

TAKEOWN /F %SystemDrive%\Windows\System32\cmd.exe

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\sources\install.wim

SET CDROM=%%i:

start /Wait %CDROM%\WPI\WPI.exe

exit

---------------------------------------------------------------------------

And in your "SetupComplete.cmd"

---------------------------------------

@echo off

start /Wait %~dp0WPI.bat

exit

----------------------------------------

Use only the files in "WPI.rar" with the WPI.exe.

And remenber that some softwares needs to be copied on the HDD for their installation.

Good luck and enjoy.

Thanks a million! I will try it and report back!

Great! Thanks!

Link to comment
Share on other sites

I did everything what you wrote. Still WPI won't start.

When everything is installed and I navigate to my scripts folder in the new installation, then there are al weird symbols in the scripts.

It doesn´t make sence....

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