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

Adding two entries for attended and unattended


  • Please log in to reply
4 replies to this topic

#1
ahmadmahrous

ahmadmahrous
  • Member
  • 3 posts
  • Joined 23-September 12
  • OS:none specified
  • Country: Country Flag
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.

Edited by Tripredacus, 24 September 2012 - 09:19 AM.
removed unneccesary formatting



How to remove advertisement from MSFN

#2
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,913 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

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>

MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#3
ahmadmahrous

ahmadmahrous
  • Member
  • 3 posts
  • Joined 23-September 12
  • OS:none specified
  • Country: Country Flag

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
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,584 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

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

ahmadmahrous
  • Member
  • 3 posts
  • Joined 23-September 12
  • OS:none specified
  • Country: Country Flag
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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users