Jump to content

install windows 7 to the partition where an old system is installed


Recommended Posts

Hi, i am wondering is there any way to install a new unattended windows 7 only to the partition where an old windows is installed ( i am referring that it detects automatically the partition where an old system windows is installed, then format only that partition and install a new windows 7 in that partition and left intact the others partitons on the same disk)

Thanks

Link to comment
Share on other sites


  • 4 months later...

I don´t know how to use unattended.xml to check the partition where the windows is installed, may be the first or the second .... I don´t want to wipe the whole disk nor to create partitions, only i want to install the unattended on the partition where an old system is installed.

I think it needs a script to check the partition during the pass PE?

Thanks

Edited by Major
Link to comment
Share on other sites

Is there anyone please who has written a script to check the partition which is installed windows ?

If i am wrong and it can be done via autounattended.xml, i don´t know how?

thanks

Link to comment
Share on other sites

Inside your "Autounattend.xml" file you can add:

All Disks will be displayed and you can choose the one you want erase.


<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="[url="http://schemas.microsoft.com/WMIConfig/2002/State"]http://schemas.microsoft.com/WMIConfig/2002/State[/url]" xmlns:xsi="[url="http://www.w3.org/2001/XMLSchema-instance"]http://www.w3.org/2001/XMLSchema-instance[/url]">
<DiskConfiguration>
<WillShowUI>Always</WillShowUI>
</DiskConfiguration>

Autonunattend.xml file example for Windows 7 ULTIMATE x86:

<?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.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">

<SetupUILanguage>

<UILanguage>fr-FR</UILanguage>

</SetupUILanguage>

<InputLocale>100c:0000100c</InputLocale>

<SystemLocale>fr-FR</SystemLocale>

<UILanguage>fr-FR</UILanguage>

<UserLocale>fr-CH</UserLocale>

<UILanguageFallback>fr-FR</UILanguageFallback>

</component>

<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">

<Diagnostics>

<OptIn>false</OptIn>

</Diagnostics>

<DiskConfiguration>

<WillShowUI>Always</WillShowUI>

</DiskConfiguration>

<Display>

<ColorDepth>32</ColorDepth>

<HorizontalResolution>1280</HorizontalResolution>

<VerticalResolution>1024</VerticalResolution>

<RefreshRate>60</RefreshRate>

</Display>

<DynamicUpdate>

<Enable>false</Enable>

<WillShowUI>OnError</WillShowUI>

</DynamicUpdate>

<ImageInstall>

<OSImage>

<InstallFrom>

<MetaData wcm:action="add">

<Key>/IMAGE/NAME</Key>

<Value>Windows 7 ULTIMATE</Value>

</MetaData>

</InstallFrom>

</OSImage>

</ImageInstall>

<UserData>

<AcceptEula>true</AcceptEula>

<FullName>Full Name</FullName>

<Organization>particulier</Organization>

<ProductKey>

<Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>

<WillShowUI>OnError</WillShowUI>

</ProductKey>

</UserData>

<EnableFirewall>true</EnableFirewall>

</component>

</settings>

<settings pass="offlineServicing">

<component name="Microsoft-Windows-LUA-Settings" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">

<EnableLUA>false</EnableLUA>

</component>

</settings>

<settings pass="generalize">

<component name="Microsoft-Windows-PnpSysprep" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">

<PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>

</component>

</settings>

<settings pass="specialize">

<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">

<Home_Page>http://www.bluewin.ch/index.html.fr</Home_Page>

<BlockPopups>yes</BlockPopups>

<CompanyName>Se7en_UA</CompanyName>

<FavoritesOnTop>true</FavoritesOnTop>

<FilterLevel>High</FilterLevel>

<Help_Page>http://people.consolidated.net/veeger/</Help_Page>

<DisableFirstRunWizard>true</DisableFirstRunWizard>

<DisableWelcomePage>true</DisableWelcomePage>

<PlaySound>false</PlaySound>

<ShowInformationBar>true</ShowInformationBar>

<SearchScopes>

<Scope wcm:action="add">

<ScopeDefault>true</ScopeDefault>

<ScopeDisplayName>Google</ScopeDisplayName>

<ScopeKey>Search1</ScopeKey>

<ScopeUrl>http://www.google.com/advanced_search?hl=fr</ScopeUrl>

</Scope>

</SearchScopes>

<LockToolbars>true</LockToolbars>

<ShowLeftAddressToolbar>true</ShowLeftAddressToolbar>

<ShowMenuBar>true</ShowMenuBar>

<SuggestedSitesEnabled>true</SuggestedSitesEnabled>

</component>

<component name="Microsoft-Windows-RemoteAssistance-Exe" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">

<fAllowFullControl>false</fAllowFullControl>

<fAllowToGetHelp>false</fAllowToGetHelp>

</component>

<component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">

<SkipAutoActivation>true</SkipAutoActivation>

</component>

<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">

<ComputerName>Se7en</ComputerName>

<ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey>

<RegisteredOwner>Full Name</RegisteredOwner>

<Display>

<ColorDepth>32</ColorDepth>

<HorizontalResolution>1280</HorizontalResolution>

<VerticalResolution>1024</VerticalResolution>

<RefreshRate>60</RefreshRate>

</Display>

</component>

</settings>

<settings pass="oobeSystem">

<component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">

<UILanguage>fr-FR</UILanguage>

<UserLocale>fr-CH</UserLocale>

<InputLocale>100c:0000100c</InputLocale>

</component>

<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">

<Display>

<ColorDepth>32</ColorDepth>

<HorizontalResolution>1280</HorizontalResolution>

<VerticalResolution>1024</VerticalResolution>

<RefreshRate>60</RefreshRate>

</Display>

<RegisteredOwner>Full Name</RegisteredOwner>

<TimeZone>W. Europe Standard Time</TimeZone>

<AutoLogon>

<Enabled>true</Enabled>

<LogonCount>9999999</LogonCount>

<Username>myselfidem</Username>

<Password>

<Value>cQB3AGUAcgB0AHoAUABhAHMAcwB3AG8AcgBkAA==</Value>

<PlainText>false</PlainText>

</Password>

</AutoLogon>

<FirstLogonCommands>

<SynchronousCommand wcm:action="add">

<Order>1</Order>

<Description>Password never expires</Description>

<CommandLine>cmd /C wmic useraccount where "name='Antoine'" set PasswordExpires=FALSE</CommandLine>

<RequiresUserInput>false</RequiresUserInput>

</SynchronousCommand>

<SynchronousCommand wcm:action="add">

<Order>9</Order>

<Description>Installation des applications avec WPI</Description>

<CommandLine>cmd /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) do if exist %i:\wpi\wpi.exe start %i:\wpi\wpi.exe</CommandLine>

<RequiresUserInput>false</RequiresUserInput>

</SynchronousCommand>

</FirstLogonCommands>

<OEMInformation>

<Logo>%WINDIR%\System32\oemlogo.bmp</Logo>

<Manufacturer>Se7en_UA</Manufacturer>

<Model>Seven Titan</Model>

<SupportHours>A tout instant, consultez les Forums</SupportHours>

<SupportPhone>BR549</SupportPhone>

<SupportURL>http://www.msfn.org</SupportURL>

</OEMInformation>

<OOBE>

<HideEULAPage>true</HideEULAPage>

<NetworkLocation>Home</NetworkLocation>

<ProtectYourPC>1</ProtectYourPC>

<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>

</OOBE>

<UserAccounts>

<LocalAccounts>

<LocalAccount wcm:action="add">

<Password>

<PlainText>false</PlainText>

<Value>cQB3AGUAcgB0AHoAUABhAHMAcwB3AG8AcgBkAA==</Value>

</Password>

<Group>Administrators</Group>

<DisplayName>myselfidem</DisplayName>

<Name>myselfidem</Name>

</LocalAccount>

</LocalAccounts>

</UserAccounts>

<VisualEffects>

<FontSmoothing>ClearType</FontSmoothing>

</VisualEffects>

<BluetoothTaskbarIconEnabled>true</BluetoothTaskbarIconEnabled>

<WindowsFeatures>

<ShowInternetExplorer>true</ShowInternetExplorer>

<ShowMediaCenter>true</ShowMediaCenter>

<ShowWindowsMediaPlayer>true</ShowWindowsMediaPlayer>

</WindowsFeatures>

</component>

<component name="Microsoft-Windows-Sidebar" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">

<Gadget1>%PROGRAMFILES%\Windows Sidebar\Gadgets\Clock.Gadget</Gadget1>

<Gadget2>%PROGRAMFILES%\Windows Sidebar\Gadgets\Calendar.Gadget</Gadget2>

<Gadget3>%PROGRAMFILES%\Windows Sidebar\Gadgets\Weather.Gadget</Gadget3>

</component>

</settings>

</unattend>

More help:

http://www.msfn.org/board/topic/139572-ask-your-seven-xml-here/

Edited by myselfidem
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...