Sign in to follow this  
Followers 0
ahmadmahrous

Adding two entries for attended and unattended

5 posts in this topic

I want to make two entries in windows 7 installation disk boot menu:

1- Unattended Windows 7 Setup.

2-Attended Widows 7 Setup.

So the first option will make setup proccess use autoattended.xml in the disc root directory; While the second option will ignor this file.

this made befor in windows XP ( I know it from your forum at: http://www.msfn.org/board/install-XP-USB-t111406.html ) now I want to do the same for Windows 7.

Thank You.

Edited by Tripredacus
removed unneccesary formatting
0

Share this post


Link to post
Share on other sites

You'll need to add a (or replace the) winpeshl.ini to launch a script of some sort. It can be .cmd or something else you make. This script needs to be able to determine the drive letter that the DVD resides in.

Create 2 answer files. The first one is your Unattended one. The second one should be blank but with the correct XML elements so that Setup can parse it. Name it Attended.xml.

Your script will have 2 options:

1. Unattended

2. Attended

Presuming your DVD drive is D:, then the two option above would have the following commands:

1. Unattended

setup.exe /unattend:d:\autounattend.xml

2. Attended

setup.exe /unattend:d:\attended.xml

There does not appear to be a command line parameter to instruct Setup.exe to NOT look for an answer file. This is why you would need to use a relatively blank one. Here is an example (not tested):

<?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">
<SetupUILanguage>
<UILanguage>en-us</UILanguage>
</SetupUILanguage>
<InputLocale>0409:00000409</InputLocale>
<SystemLocale>en-us</SystemLocale>
<UILanguage>en-us</UILanguage>
<UserLocale>en-US</UserLocale>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:d:/sources/install_windows vista business.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

0

Share this post


Link to post
Share on other sites

You'll need to add a (or replace the) winpeshl.ini to launch a script of some sort. It can be .cmd or something else you make. This script needs to be able to determine the drive letter that the DVD resides in.

Create 2 answer files. The first one is your Unattended one. The second one should be blank but with the correct XML elements so that Setup can parse it. Name it Attended.xml.

Your script will have 2 options:

1. Unattended

2. Attended

Presuming your DVD drive is D:, then the two option above would have the following commands:

1. Unattended

setup.exe /unattend:d:\autounattend.xml

2. Attended

setup.exe /unattend:d:\attended.xml

There does not appear to be a command line parameter to instruct Setup.exe to NOT look for an answer file. This is why you would need to use a relatively blank one. Here is an example (not tested):

<?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">
<SetupUILanguage>
<UILanguage>en-us</UILanguage>
</SetupUILanguage>
<InputLocale>0409:00000409</InputLocale>
<SystemLocale>en-us</SystemLocale>
<UILanguage>en-us</UILanguage>
<UserLocale>en-US</UserLocale>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:d:/sources/install_windows vista business.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

where I can find winpeshl.ini?

0

Share this post


Link to post
Share on other sites

where I can find winpeshl.ini?

it's on the shelf, on the right, just behind winnsi.dll :whistle:

You'll need to add a (or replace the) winpeshl.ini to launch a script of some sort. It can be .cmd or something else you make.

Here ;):

http://technet.microsoft.com/en-us/library/cc766156(v=ws.10).aspx

BUT read also:

particularly:

page__st__12

jaclaz

0

Share this post


Link to post
Share on other sites

Thank you jaclaz I did not notice "You'll need to add"

I already search the web after I read your first post and found the first link in your second one then i try to locate the file in my original windows DVD but not found.

Thank you again

0

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.