MSFN Forum: Adding two entries for attended and unattended - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Adding two entries for attended and unattended

#1 User is offline   ahmadmahrous 

  • Group: Members
  • Posts: 3
  • Joined: 23-September 12
  • OS:none specified
  • Country: Country Flag

Posted 23 September 2012 - 02:53 AM

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/...SB-t111406.html ) now I want to do the same for Windows 7.

Thank You.

This post has been edited by Tripredacus: 24 September 2012 - 09:19 AM
Reason for edit: removed unneccesary formatting



#2 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,723
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 24 September 2012 - 09:27 AM

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>


#3 User is offline   ahmadmahrous 

  • Group: Members
  • Posts: 3
  • Joined: 23-September 12
  • OS:none specified
  • Country: Country Flag

Posted 08 April 2013 - 02:16 AM

View PostTripredacus, on 24 September 2012 - 09:27 AM, said:

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?

#4 User is online   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,575
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 08 April 2013 - 02:41 AM

View Postahmadmahrous, on 08 April 2013 - 02:16 AM, said:

where I can find winpeshl.ini?

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

View PostTripredacus, on 24 September 2012 - 09:27 AM, said:

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.micro...6(v=ws.10).aspx
BUT read also:
http://www.msfn.org/...ni-not-running/
particularly:
http://www.msfn.org/...ng/page__st__12

jaclaz

#5 User is offline   ahmadmahrous 

  • Group: Members
  • Posts: 3
  • Joined: 23-September 12
  • OS:none specified
  • Country: Country Flag

Posted 09 April 2013 - 11:39 PM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy