MSFN Forum: Ask your Seven xml ? here - MSFN Forum

Jump to content


  • 25 Pages +
  • « First
  • 19
  • 20
  • 21
  • 22
  • 23
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Ask your Seven xml ? here Sample .xml's including Audit Mode for DVD and other Install's

#401 User is offline   buffstuffmedia 

  • Group: Members
  • Posts: 7
  • Joined: 17-January 10

Posted 29 June 2012 - 05:23 PM

hi i have done the index bit using
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/VALUE</Key>
<value>1</value> and so forth upto <value>4</value>
that bit is fine and dandy but the naming of the pcs , i will be sharing all pcs on a network so each of the 64 bit ones have to have their own individual name , could i possibly add like <key>IMAGE\VALUE</key> value variable to the specialize for naming each of the 64 bit pcs according to the image number they were run from


#402 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,748
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 June 2012 - 10:15 AM

If ComputerName is set to an asterisk (*) or is an empty string, a random computer name will be generated. This random name has at most eight characters from the RegisteredOwner and/or RegisteredOrganization strings plus random characters.
<ComputerName>*</ComputerName>

otherwise you would have to run a script during specialize to name it
Something like this
IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" SET CompName=*_amd64
ECHO "%CompName%"
WMIC ComputerSystem where Name="COMPUTER-NAME" call Rename Name="%CompName%"

This post has been edited by maxXPsoft: 30 June 2012 - 10:17 AM


#403 User is offline   buffstuffmedia 

  • Group: Members
  • Posts: 7
  • Joined: 17-January 10

Posted 30 June 2012 - 11:30 PM

ok no problem , i guess there is no way to run a single autounattended.xml that will work with 3 different versions of windows ultimate x64 or x86 to make it totally unattended , will just have to go inside the hive registry for each image and manipulate most of it that way , thanx for your input anyway

#404 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 03 July 2012 - 05:53 AM

Hello,

Until now I used DVD’s for my unattended Win7.
Here bellow the CommandLine I used
                <SynchronousCommand wcm:action="add"> 
                   <Order>3</Order> 
                   <Description>About 275 Portable Utilities</Description> 
                   <CommandLine>cmd /C start /wait c:\Install\UtilsPortable.exe</CommandLine> 
                </SynchronousCommand>


I finished preparing an unattended Win7 and softwares (16 GB) USB key thanks to Rufus utility
What will be the CommandLine to install an external prog since that prog is located into the same Win7 USB key?

I'll appreciate yr help

#405 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,748
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 July 2012 - 06:42 PM

View Postcoucou, on 03 July 2012 - 05:53 AM, said:

What will be the CommandLine to install an external prog since that prog is located into the same Win7 USB key?

I'll appreciate yr help

CDROM variable used same way Post 102 http://www.msfn.org/...post__p__953464
Course can change to whatever like %USBkey%

#406 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 04 July 2012 - 01:08 AM

TNX maxXPsoft ;)
I'll give a try

BTW, may you please let me knwo when the SetupComplete.cmd start, before or after SynchronousCommand (Autounattend.xml)?
Regards

This post has been edited by coucou: 04 July 2012 - 03:17 AM


#407 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,392
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 04 July 2012 - 12:31 PM

View Postcoucou, on 04 July 2012 - 01:08 AM, said:

BTW, may you please let me knwo when the SetupComplete.cmd start, before or after SynchronousCommand (Autounattend.xml)?

SetupComplete.cmd:

Add a Custom Script to Windows Setup

Quote

The functionality of Setupcomplete.cmd differs from the RunSynchronous and RunAsynchronous commands in that Setupcomplete.cmd runs after Windows Setup completes while the RunSynchronous and RunAsynchronous commands run during Windows Setup.


SynchronousCommand:

<FirstLogonCommands> with <SynchronousCommand wcm:action="add">

Quote

The FirstLogonCommands setting specifies commands to run the first time a user logs on to the computer. These commands run only once.
When a user with administrative privileges logs in for the first time, these commands are run with elevated access privileges.


Regards

#408 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 04 July 2012 - 01:43 PM

TNX myselfidem for the info ;)

#409 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,748
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 July 2012 - 06:32 AM

SetupComplete.cmd is actually run automatically after Windows setup but you will notice it is run right before Logon.

I password protect my user install and even the Administrator account I set a pass.
That is how I know it run before logon cause the commands are seen executing. You won't see setupcomplete running though, only commands within it I see some pop up.

#410 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 05 July 2012 - 07:44 AM

TNX again maxXPsoft ;)

#411 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 08 July 2012 - 05:35 AM

@myselfidem @maxXPsoft

In theory Setupcomplete.cmd runs after Windows Setup completes while the RunSynchronous commands run during Windows Setup. The partice belie that result.

I did by 3 times a test of SetupComplete.cmd vs SynchronousCommand (Autounattend.xml), when WPI.cmd is launched from SynchronousCommand 4 (see here bellow) or from Setupcomplete.cmd.
                <SynchronousCommand wcm:action="add"> 
                  <Order>1</Order> 
                  <Description>UberPack v2.0.2 x64 several utilities</Description> 
                  <CommandLine>cmd /C start /wait c:\Install\Win7_UberPacK_HEN_v2.0.2_x64.exe</CommandLine> 
                </SynchronousCommand> 
                <SynchronousCommand wcm:action="add"> 
                   <Order>2</Order> 
                   <Description>Internet Explorer 9 French and Hebrew Languages adding</Description> 
                   <CommandLine>cmd /C start /wait c:\Install\IE9_langs_Install.exe</CommandLine> 
                </SynchronousCommand> 
                <SynchronousCommand wcm:action="add"> 
                   <Order>3</Order> 
                   <Description>About 275 Portable Utilities</Description> 
                   <CommandLine>cmd /C start /wait c:\Install\UtilsPortable.exe</CommandLine> 
                </SynchronousCommand> 
                <SynchronousCommand wcm:action="add"> 
                   <Order>4</Order> 
                   <Description>Windows Post Install Wizard</Description> 
                   <CommandLine>cmd /C start /wait c:\Windows\Setup\scripts\WPI.cmd</CommandLine> 
                </SynchronousCommand> 
            </FirstLogonCommands>.
                <SynchronousCommand wcm:action="add"> 
                  <Order>1</Order> 
                  <Description>UberPack v2.0.2 x64 several utilities</Description> 
                  <CommandLine>cmd /C start /wait c:\Install\Win7_UberPacK_HEN_v2.0.2_x64.exe</CommandLine> 
                </SynchronousCommand> 
                <SynchronousCommand wcm:action="add"> 
                   <Order>2</Order> 
                   <Description>Internet Explorer 9 French and Hebrew Languages adding</Description> 
                   <CommandLine>cmd /C start /wait c:\Install\IE9_langs_Install.exe</CommandLine> 
                </SynchronousCommand> 
                <SynchronousCommand wcm:action="add"> 
                   <Order>3</Order> 
                   <Description>About 275 Portable Utilities</Description> 
                   <CommandLine>cmd /C start /wait c:\Install\UtilsPortable.exe</CommandLine> 
                </SynchronousCommand> 
                <SynchronousCommand wcm:action="add"> 
                   <Order>4</Order> 
                   <Description>Windows Post Install Wizard</Description> 
                   <CommandLine>cmd /C start /wait c:\Windows\Setup\scripts\WPI.cmd</CommandLine> 
                </SynchronousCommand> 
            </FirstLogonCommands>

When WPI.cmd is launched from SynchronousCommand 4, it started after the SynchronousCommand 1, 2 and 3.
When WPI.cmd is launched from Setupcomplete.cmd, it started at least before the SynchronousCommand 3, if not before 1,2 and 3.

Regards

#412 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,748
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 July 2012 - 11:00 PM

what pass SynchronousCommand?

Quote

Run a Custom Script after Windows Setup Completes You can make further customizations after Windows Setup completes by adding commands to the %WINDIR%\Setup\Scripts\SetupComplete.cmd file. This file enables you to install additional applications, run custom Windows scripts (cscript/wscript), or make other modifications to the system before a user logs on.

Note:
Commands in the Setupcomplete.cmd file are executed with local system privilege.

After Windows is installed but before the logon screen appears, Windows Setup searches for the SetupComplete.cmd file in the %WINDIR%\Setup\Scripts\ directory.

If a SetupComplete.cmd file is found, the file is executed. Otherwise, installation continues normally. Windows Setup logs the action in the Setupact.log file.

Note:
You cannot reboot the system and resume running SetupComplete.cmd.

Setup does not verify any exit codes or error levels in the script after executing SetupComplete.cmd.

The functionality of Setupcomplete.cmd differs from the RunSynchronous and RunAsynchronous commands in the following way: Setupcomplete.cmd runs after Windows Setup completes, while the RunSynchronous and RunAsynchronous commands run during Windows Setup.

This post has been edited by maxXPsoft: 08 July 2012 - 11:01 PM


#413 User is offline   TheWalrus 

  • N.W.O.
  • PipPipPipPipPip
  • Group: Members
  • Posts: 911
  • Joined: 11-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 July 2012 - 01:57 PM

Anyone has any idea why am I getting this error popup? (see attachment)

I do the same for processorArchitecture="wow64" btw, just in case both versions of IE are being used.


I even tried with untouched default Win7 image, just adding the answer file. Boom. Something is clearly wrong but I have no idea what :(




    <settings pass="specialize">
        <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DisableAccelerators>true</DisableAccelerators>
            <DisableFirstRunWizard>true</DisableFirstRunWizard>
            <DisableWelcomePage>true</DisableWelcomePage>
            <DisableOOBAccelerators>true</DisableOOBAccelerators>
            <EnableLinksBar>false</EnableLinksBar>
            <FavoritesDelete>true</FavoritesDelete>
            <Home_Page>http://www.google.com</Home_Page>
            <SuggestedSitesEnabled>false</SuggestedSitesEnabled>
            <ShowInformationBar>true</ShowInformationBar>
            <SearchScopes>
                <Scope wcm:action="add">
                    <DisplayQuickPick>false</DisplayQuickPick>
                    <ScopeKey>Search1</ScopeKey>
                    <ScopeDisplayName>Google</ScopeDisplayName>
                    <ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl>
                    <ScopeDefault>true</ScopeDefault>
                    <FaviconURL>http://www.google.com/favicon.ico</FaviconURL>
                    <ShowSearchSuggestions>false</ShowSearchSuggestions>
                </Scope>
            </SearchScopes>
            <DisableDevTools>true</DisableDevTools>
     	</component>
 </settings>

Attached File(s)



#414 User is offline   TheWalrus 

  • N.W.O.
  • PipPipPipPipPip
  • Group: Members
  • Posts: 911
  • Joined: 11-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 July 2012 - 02:29 PM

Oh FFS!!!!

Just accidentally managed to find an answer! http://support.micro....com/kb/2444193




Shame on you MS, this is just ridiculous! Of course I bet they will not bother fixing it at all.



#415 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,748
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 July 2012 - 06:27 AM

Yes they say that happen on 64 bit IE
I run the 32 bit IE because most plugins and stuff work with it so guess that why my scopes did work.

#416 User is offline   TheWalrus 

  • N.W.O.
  • PipPipPipPipPip
  • Group: Members
  • Posts: 911
  • Joined: 11-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 July 2012 - 06:41 AM

And I wasted couple hours trying to figure out wtf did I do wrong. Oh well.




The whole thing behaves weirdly anyway. You would expect that setting a search scope in the way I posted here would change things accordingly, but no.

It SEEMS that if you capture such installation where you actually run IE, but cancel the configuration wizard and only change couple different things, the scopes just cannot be set the way you want anyway. After installing with such image the default scope would still be Bing, and Google would be another in the list, which is totally not what I expected. This really baffles me because I need (wan) to set a couple things like opening tabs in the same window, removing few items from the menu bar etc. Grr!

Any ideas?

This post has been edited by TheWalrus: 31 July 2012 - 06:42 AM


#417 User is offline   Tomorrow 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 357
  • Joined: 20-December 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 August 2012 - 02:27 AM

Can someone provide working code for automating the partion creating/disk selecting?
I tried numerous combinations but everything failed. It seems real simple when explained on technet.
I need this for my Virtual Machine xml where there is only one disk (no partitions). Or maybe i cant be done? meaning there should be atleast one partition on the drive. It cant create partition unattended?

This post has been edited by Tomorrow: 03 August 2012 - 02:30 AM


#418 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,392
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 03 August 2012 - 06:50 AM

You can try to add inside your Autounattend.xml file, these lines and adapt to your needs:

<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>
                <Organization>TEST</Organization>
                <FullName>test</FullName>
                <AcceptEula>true</AcceptEula>
            </UserData>
            <DiskConfiguration>
                <WillShowUI>OnError</WillShowUI>
                <Disk wcm:action="add">
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Type>Primary</Type>
                            <Size>100</Size>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Order>2</Order>
                            <Type>Primary</Type>
                            <Extend>true</Extend>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>system</Label>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Format>NTFS</Format>
                            <Label>Main</Label>
                            <Letter>C</Letter>
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                </Disk>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/NAME</Key>
                            <Value>Windows 7 ULTIMATE</Value>
                        </MetaData>
                    </InstallFrom>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>2</PartitionID>
                    </InstallTo>
                    <WillShowUI>OnError</WillShowUI>
                    <InstallToAvailablePartition>false</InstallToAvailablePartition>
                </OSImage>
            </ImageInstall>
        </component>
    </settings>


This post has been edited by myselfidem: 03 August 2012 - 06:55 AM


#419 User is offline   Tomorrow 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 357
  • Joined: 20-December 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 August 2012 - 12:22 PM

View Postmyselfidem, on 03 August 2012 - 06:50 AM, said:

You can try to add inside your Autounattend.xml file, these lines and adapt to your needs
Worked like a charm. Much appreciated mate :thumbup
I will use this only for virtual machine as im not comfortable using it on real drives (bad suprise to see your data drive wiped out of existance lol).

This post has been edited by Tomorrow: 05 August 2012 - 12:22 PM


#420 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,392
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 05 August 2012 - 12:33 PM

View PostTomorrow, on 05 August 2012 - 12:22 PM, said:

...bad suprise to see your data drive wiped out of existance lol.

:)
Yes, the Disk will be wiped!

*Edit: Unfortunatly we can't keep others partitions, because the full Disk is wiped even if we use: <WillShowUI>Always</WillShowUI>with the example given above!

This post has been edited by myselfidem: 10 August 2012 - 01:28 AM


Share this topic:


  • 25 Pages +
  • « First
  • 19
  • 20
  • 21
  • 22
  • 23
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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



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