• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
maxXPsoft

Ask your Seven xml ? here

616 posts in this topic

The link is now fixed!

coucou: Try edit the unattended file i posted. Just add another <createpartition> or copy/modify one existing.

0

Share this post


Link to post
Share on other sites

coucou: Try edit the unattended file i posted. Just add another <createpartition> or copy/modify one existing.

I can't read it.

Moreover, What is the command to define an Extended parttion logical drives?

In WAIK Unattend.chm I could find <Type>Primary</Type> only :wacko:

Edited by coucou
0

Share this post


Link to post
Share on other sites

Hello coucou!

You can read some informations inside the "Unattendes Windows Setup Reference for Windows 7".

Inside components | Microsft-Windows-Setup | DiskConfiguration | Type

Extract:

Extended

Specifies that the partition is an extended partition.

An extended partition can be created only on master boot record (MBR)-based disks.

Only one extended partition can exist on a single disk. If an extended partition already exists on the disk, a second extended partition is not created. If the value for the WillShowUI setting is set to Never, an error is logged, and installation is terminated.

Extended partitions are useful if you intend to create more than four volumes on a basic MBR disk. Unlike primary partitions, you do not format an extended partition with a file system. Instead, you create one or more logical drives within the extended partition.

Logical

Specifies that the partition is a logical partition.

Windows® 7 must be installed on either a primary or a logical partition.

A logical partition is a volume that is created inside an extended partition on a basic master boot record (MBR)-based disk.

Logical partitions are similar to primary partitions. However, while only four primary partitions can exist on a single disk, the number of logical partitions that can exist on a disk is unlimited. A logical partition can be formatted and assigned a drive letter.

A logical partition must be created inside an extended partition. If an extended partition does not already exist on the disk or the specified size of the logical drive exceeds the extended partition, no partition is created.

If WillShowUI is set to Never, an error is logged, and installation is terminated.

Cheers

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

HI myselfidem,

TNX for yr help.

graben asked me reading THIS unattended file

Here bellow the informations inside the "Unattendes Windows Setup Reference for Windows 7".

Inside components | Microsft-Windows-Setup | DiskConfiguration | Type

<DiskConfiguration>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<!-- Create the recovery partition -->
<CreatePartition wcm:action="add">
<Order>1</Order>
<Extend>false</Extend>
<Type>Primary</Type>
<Size>200</Size>
</CreatePartition>
<!-- Create the utility partition -->
<CreatePartition wcm:action="add">
<Order>2</Order>
<Size>250</Size>
<Type>Primary</Type>
</CreatePartition>
<!-- Create the system partition -->
<CreatePartition wcm:action="add">
<Order>3</Order>
<Size>100</Size>
<Type>Primary</Type>
</CreatePartition>
<!-- Create the extended partition -->
<CreatePartition wcm:action="add">
<Order>4</Order>
<Extend>true</Extend>
<Type>Extended</Type>
</CreatePartition>
<!-- Create the Windows partition -->
<CreatePartition wcm:action="add">
<Order>5</Order>
<Size>15000</Size>
<Type>Logical</Type>
</CreatePartition>
<!-- Create the data partition, with a size of 100. This will be overwritten in the Modify section -->
<CreatePartition wcm:action="add">
<Order>6</Order>
<Type>Logical</Type>
<Extend>false</Extend>
<Size>100</Size>
</CreatePartition>
</CreatePartitions>
<!-- Modify the recovery partition -->
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Order>1</Order>
<PartitionID>1</PartitionID>
<Format>NTFS</Format>
<Label>Recovery</Label>
<TypeID>0x27</TypeID>
</ModifyPartition>
<!-- Modify the utility partition -->
<ModifyPartition wcm:action="add">
<Order>2</Order>
<PartitionID>2</PartitionID>
<Format>NTFS</Format>
<Label>Utility</Label>
<Letter>U</Letter>
</ModifyPartition>
<!-- Modify the system partition -->
<ModifyPartition wcm:action="add">
<PartitionID>3</PartitionID>
<Active>true</Active>
<Order>3</Order>
<Label>System</Label>
<Format>NTFS</Format>
</ModifyPartition>
<!-- The extended partition does not need to be modified -->
<!-- Modify the Windows partition -->
<ModifyPartition wcm:action="add">
<Order>4</Order>
<Format>NTFS</Format>
<PartitionID>5</PartitionID>
<Label>Windows</Label>
<Letter>C</Letter>
</ModifyPartition>
<!-- Modify the data partition -->
<ModifyPartition wcm:action="add">
<Order>5</Order>
<Format>NTFS</Format>
<PartitionID>6</PartitionID>
<Label>Data</Label>
<Letter>D</Letter>
<Extend>true</Extend>
</ModifyPartition>
</ModifyPartitions>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>5</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>

0

Share this post


Link to post
Share on other sites

Very nice coucou! ;)

Path:

"Unattended Windows Setup Reference for Windows 7.chm"

Unattended Installation Settings Reference

Components

Microsoft-Windows-Setup | DiskConfiguration |Disk | ModifyPartition | Extend

Useful infos. Thanks

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

coucou you do have the waik help

WAIK help file

The following diagram and XML output shows Autounattend.xml Disk Configuration settings for a system with primary, extended, and logical partitions:

that was one I was looking at myselfdiem picture but you don't want them 0x27

Edited by maxXPsoft
0

Share this post


Link to post
Share on other sites

TNX both maxXPsoft and myselgidem.

You'll find the diagram and XML output exactly inside Unattend.chm

Installation Settings Reference/ Components/Microsoft-Windows-Setup/Disk Configuration/Disk/Create Partitions/Create Partition/Type

XML Example

BIOS-Based Systems

The following XML output for the DiskConfiguration setting shows a configuration for a BIOS-based system with six partitions, including three primary partitions, an extended partition, and two logical partitions.

I didn't take yet the decision for the 0x27. As I wrote here above #75 I never used a Recovery partition (utlity 1) before, It is really usefull?

Regarding the utlity 2 parttion its automatically created anyway and 100MB are allowed to it.

Edited by coucou
0

Share this post


Link to post
Share on other sites

I didn't take yet the decision for the 0x27. As I wrote here above #75 I never used a Recovery partition (utlity 1) before, It is really usefull?

Regarding the utlity 2 parttion its automatically created anyway and 100MB are allowed to it.

Hello coucou!

About Recovery partition

You can find help here:

http://www.pagestart.com/windows7korner.html

I hope that can help you!

0

Share this post


Link to post
Share on other sites

I didn't take yet the decision for the 0x27. As I wrote here above #75 I never used a Recovery partition (utlity 1) before, It is really usefull?

Regarding the utlity 2 parttion its automatically created anyway and 100MB are allowed to it.

Hello coucou!

About Recovery partition

You can find help here:

http://www.pagestart.com/windows7korner.html

I hope that can help you!

Thank you myselfidem :P

You have 2 PM's

Regards

0

Share this post


Link to post
Share on other sites

Now includes the auditSystem auditUser stuff

x64_AutoUnattend - AUDIT.xml

any ? ask

EDIT: It also shows how if you copy your Drivers folder to root of Dvd and <settings pass="offlineServicing"> and use the

        <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">
<DriverPaths>
<PathAndCredentials wcm:action="add" wcm:keyValue="1">
<Path>%systemdrive%\Drivers</Path>
</PathAndCredentials>
</DriverPaths>
</component>

If you inject Drivers then remove that part

We at MDL Forum have these autounattend.xml files: Files

Hm If we want masstorage drivers (downloaded from lets say driverpacks.net) how to have the setup read from that folder without injecting? Is it that <path>%systemdrive%\Drivers\Whereever we have them</path> line above?

And how about when installing Windows 7? Does masstorage have to be installed to windows as well or is it only for setup (installed to windows by setup)? Not having drivers injected will save some space on my 7 AIO :)

Hm been looking around myself for a quick while..

0

Share this post


Link to post
Share on other sites

Hi,

I've prepared Win7 French tested it worked like acharm.

Then I decide to prepare a Win7 English with an added French lagPack. I tested it, and at the end of the install i have a Browser Choice window (see image bellow).

How can I disable that window with Autounattend.xml?

<?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">
<SystemLocale>en-us</SystemLocale>
<UserLocale>en-us</UserLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-us</UILanguageFallback>
<InputLocale>0409:00000409</InputLocale>
</component>
<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">
<Diagnostics>
<OptIn>false</OptIn>
</Diagnostics>
<DiskConfiguration>
<WillShowUI>Always</WillShowUI>
</DiskConfiguration>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1280</HorizontalResolution>
<VerticalResolution>720</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></FullName>
<Organization></Organization>
<ProductKey>
<Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
</UserData>
<EnableFirewall>true</EnableFirewall>
<EnableNetwork>true</EnableNetwork>
</component>
</settings>
<settings pass="offlineServicing">
<component name="Microsoft-Windows-LUA-Settings" 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">
<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.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-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.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Home_Page>http://www.free.fr/adsl/</Home_Page>
<BlockPopups>yes</BlockPopups>
<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.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-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.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SkipAutoActivation>true</SkipAutoActivation>
</component>
<component name="Microsoft-Windows-Shell-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">
<ComputerName>Se7en</ComputerName>
<ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey>
<RegisteredOwner></RegisteredOwner>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1280</HorizontalResolution>
<VerticalResolution>720</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.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UILanguage>fr-FR</UILanguage>
<UserLocale>fr-FR</UserLocale>
<InputLocale>040c:0000040c</InputLocale>
</component>
<component name="Microsoft-Windows-Shell-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">
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1280</HorizontalResolution>
<VerticalResolution>720</VerticalResolution>
<RefreshRate>60</RefreshRate>
</Display>
<RegisteredOwner></RegisteredOwner>
<TimeZone>Romance Standard Time</TimeZone>
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>9999999</LogonCount>
<Username>XXXXXX</Username>
<Password>
<Value></Value>
</Password>
</AutoLogon>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Kel's Win7 UberPacK v4</Description>
<CommandLine>cmd /C start /wait c:\Install\Win7_UberPacK_v4.exe</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Windows Malicious Software Removal Tool December 2010</Description>
<CommandLine>cmd /C start /wait c:\Install\X86-all-windows-kb890830-v3.14_cd.exe /Q</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<Description>Windows Malicious Software Removal Tool December 2010</Description>
<CommandLine>cmd /C start /wait c:\Install\X86-all-windows-kb890830-v3.14-delta.exe /Q</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>
<Themes>
<ThemeName>%WINDIR%\resources\Themes\aero.theme</ThemeName>
<DefaultThemesOff>false</DefaultThemesOff>
<DesktopBackground>%WINDIR%\web\wallpaper\Windows\img0.jpg</DesktopBackground>
</Themes>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value></Value>
</Password>
<Group>Administrators</Group>
<DisplayName>XXXXXX</DisplayName>
<Name>XXXXXX</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<VisualEffects>
<FontSmoothing>ClearType</FontSmoothing>
</VisualEffects>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
<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.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-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>

choixbrowser.jpg

Regards

Edited by gunsmokingman
Removed User Key
0

Share this post


Link to post
Share on other sites

not sure what that windows saying but under <WindowsFeatures> remove all them because default is true unless you set to false

0

Share this post


Link to post
Share on other sites

not sure what that windows saying but under <WindowsFeatures> remove all them because default is true unless you set to false

I'll give a try.

But the exactly a same Autounattend.xml worked fine with Win7 French :blink::wacko:

0

Share this post


Link to post
Share on other sites

If I recall the <DisableFirstRunWizard>true</DisableFirstRunWizard>

in xml didn't work so I started using a reg in Firstlogoncommands

;2 Prevent Performance of First Run

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main]

"DisableFirstRunCustomize"=dword:00000001

0

Share this post


Link to post
Share on other sites

I've found some help about the first run for Internet Explorer window choice (KB976002).

[solved] Windows 7 KB976002 All Versions

http://windows.microsoft.com/en-gb/windows/what-is-the-browser-choice-update

http://www.forum-unattend.fr/phpBB3/viewtopic.php?f=35&t=541

You can add this reg file inside your unattend installation:


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\BrowserChoice]
"Shortcut"=dword:00000000
"Enable"=dword:00000000

I hope that can help you!

Cheers

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

@coucou

If you have integrated the update KB976002 you can prevent the window for the BrowserChoice with an Addon reg using Windows 7 Toolkit (like explained inside the link above) or injecting the reg key inside install.wim.

I've tried successfully (with my Windows 7 Ultimate French version) integrating (injecting) the reg file with this batch file:

(Mounted and temp folders "C:\test" and reg file inside "C:\DISM_Temp" with ONE Image with my example)

Adapt the paths to your needs and set the reg file inside a temp folder ("C:\DISM_Temp" with my example) !

RegHive.cmd


@echo off
Color 0A
echo.
"C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Mount-Wim /Wimfile:"C:\Se7en\sources\install.wim" /index:1 /MountDir:"C:\test"
echo.
pause
echo.
reg.exe load HKLM\WIM_Default "C:\test\Users\Default\NTUSER.DAT"
reg.exe load HKLM\WIM_Software "C:\test\Windows\System32\config\SOFTWARE"
reg.exe load HKLM\WIM_System "C:\test\Windows\System32\config\SYSTEM"
echo.
pause
reg.exe import "C:\DISM_Temp\RegistryTweaks.reg"
pause
echo.
reg.exe unload HKLM\WIM_Default
reg.exe unload HKLM\WIM_Software
reg.exe unload HKLM\WIM_System
pause
echo.
"C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Unmount-Wim /MountDir:"C:\test" /Commit
echo.
pause

And the reg file inside your temp folder:

RegistryTweaks.reg


Windows Registry Editor Version 5.00

; Empêche le démarrage de la fenêtre pour le choix du Navigateur
; provoqué par la mise à jour KB976002 et supprime le raccourci sur le Bureau

[HKEY_LOCAL_MACHINE\SOFTWARE\BrowserChoice]
"Shortcut"=dword:00000000
"Enable"=dword:00000000

Enjoy!

*Edit: the correct value for the reg file with reg.exe is with my example above:

RegistryTweaks.reg

Windows Registry Editor Version 5.00

; Supprime l'affichage du choix du Navigateur et le raccourci sur le Buraeu

[HKEY_LOCAL_MACHINE\WIM_Software\BrowserChoice]

"Enable"=dword:00000000

"Shortcut"=dword:00000000

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Thanks a lot myselfidem and maxXPsoft

I'll give a try later

Regards

0

Share this post


Link to post
Share on other sites

Hello coucou! :rolleyes:

I' don't know why my last example worked, but when I've tried a new time I haven't no success!!

Because the reg file isn't correct with reg.exe!

About KB976002 (Browser choice for European countries), the correct reg file for my example above is:

RegistryTweaks.reg


Windows Registry Editor Version 5.00

; Supprime l'affichage du choix du Navigateur et le raccourci sur le Bureau
[HKEY_LOCAL_MACHINE\WIM_Software\BrowserChoice]
"Enable"=dword:00000000
"Shortcut"=dword:00000000

And the batch file is the same, but you need adapt the paths and the image number (index) to your needs.

RegHive.cmd


@echo off
Color 0A
echo.
"C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Mount-Wim /Wimfile:"C:\Win7\sources\install.wim" /index:1 /MountDir:"C:\work"
echo.
pause
echo.
reg.exe load HKLM\WIM_Default "C:\work\Users\Default\NTUSER.DAT"
reg.exe load HKLM\WIM_Software "C:\work\Windows\System32\config\SOFTWARE"
reg.exe load HKLM\WIM_System "C:\work\Windows\System32\config\SYSTEM"
echo.
pause
echo.
reg.exe import "C:\DISM_Temp\RegistryTweaks.reg"
echo.
pause
echo.
reg.exe unload HKLM\WIM_Default
reg.exe unload HKLM\WIM_Software
reg.exe unload HKLM\WIM_System
echo.
pause
echo.
"C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Unmount-Wim /MountDir:"C:\work" /Commit
pause

Now that working really fine!

I've updated my last post.

Regards

*Edit: I've made a little French layout:

Editer le registre dans une image WIM

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

About the batch "Reg_Hive.cmd" you can improve like this:

Reg_Hive.cmd


@echo off
Color 0A
echo.
"C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Mount-Wim /Wimfile:"C:\Se7en\sources\install.wim" /index:1 /MountDir:"C:\work"
echo.
choice /t 5 /c on /cs /d o > nul
echo.
reg.exe load HKLM\WIM_Default "C:\work\Users\Default\NTUSER.DAT"
reg.exe load HKLM\WIM_Software "C:\work\Windows\System32\config\SOFTWARE"
reg.exe load HKLM\WIM_System "C:\work\Windows\System32\config\SYSTEM"
echo.
choice /t 5 /c on /cs /d o > nul
echo.
reg.exe import "C:\DISM_Temp\Services.reg"
echo.
choice /t 5 /c on /cs /d o > nul
echo.
reg.exe import "C:\DISM_Temp\RegistryTweaks.reg"
echo.
reg.exe unload HKLM\WIM_Default
reg.exe unload HKLM\WIM_Software
reg.exe unload HKLM\WIM_System
echo.
choice /t 5 /c on /cs /d o > nul
echo.
"C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Unmount-Wim /MountDir:"C:\work" /Commit
echo.
echo ==Appuyez sur n'importe qu'elle touche pour quitter==&pause>nul

Using:

choice /t 5 /c on /cs /d o > nul

You don't need to wait and use "Enter" to go to the next step!

Set the time you want wait, /t 10 (seconds)

Cheers!

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

TNX again myselfidem,

BTW, this may interseting you

CDVD-Switcher Windows 7 as well as the newest programs are GB sized, more than one DVD needed for an unattended installation. CDVD-Switcher enbable ejct/insert DVD during windows installation.

Quick Launch Enable Automatic Tool is MultiLangual (English/French) Quick Launch toolbar enabler.

Regards

0

Share this post


Link to post
Share on other sites

Hello,

I'm looking for how to install Office 2010 from my Windows7 DVD when the path is DVD:\Office2010 (see image bellow)

Do the following Autounattend.xml command is correct?

           <FirstLogonCommands> 
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Office 2010</Description>
<CommandLine>cmd /C start /wait %CDROM%\Office2010\office14.exe</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>

Regards

win7office.jpg

0

Share this post


Link to post
Share on other sites

I keep getting "windows could not parse or process the unattended answer file for pass [specialize]. The settings specified in the answer file cannot be applied. The error was detected while processing settings for the component [Microsoft-Windows-Deployment].

The section is below, and validates perfectly with WAIK 2.0. What's broke?

<component name="Microsoft-Windows-Deployment" 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">

<RunAsynchronous>

<RunAsynchronousCommand wcm:action="add">

<Description>Enable Admin</Description>

<Order>1</Order>

<Path>cmd /c net user administrator /active:yes</Path>

</RunAsynchronousCommand>

<RunAsynchronousCommand wcm:action="add">

<Order>2</Order>

<Description>Update hosts file</Description>

<Path>echo 127.0.0.1 crl.microsoft.com >> c:\windows\systerm32\drivers\etc\hosts</Path>

</RunAsynchronousCommand>

<RunAsynchronousCommand wcm:action="add">

<Order>3</Order>

<Path>powershell set-executionpolicy remotesigned</Path>

<Description>Config powershell</Description>

</RunAsynchronousCommand>

<RunAsynchronousCommand wcm:action="add">

<Order>4</Order>

<Path>mkdir c:\windows\setup\scripts</Path>

<Description>make directory</Description>

</RunAsynchronousCommand>

<RunAsynchronousCommand wcm:action="add">

<Order>5</Order>

<Path>cmd /c reg add "HKLM\System\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f</Path>

<Description>Enable remote desktop</Description>

</RunAsynchronousCommand>

</RunAsynchronous>

</component>

0

Share this post


Link to post
Share on other sites

@yngdiego

WAIK is not the best friend thing, been there done that

1. I don't think the echo for hosts will work like that I mean you need redirect >

Far as that goes do you realize you can add $OEM$ folders to your dvd? They are added uaDVD\sources\$OEM$ and you can add the Hosts file and do a lot of stuff you are trying to do.


$OEM$
$$ <<- C:\Windows $$\Web\Wallpaper <<- Wallpapers here
Setup\Scripts <<- setupcomplete.cmd
System32 <<- $$\System32\OEM <<- OEM *.xrm-ms + valid Product Key
$1 <<- Drive Root
Drivers <<- where some OEM place driver files
Install <<- where I place most things and call from there. EX: %SystemRoot%\Install\Firstlog.cmd

@coucou I run Office Enterprise 2007 with Runonceex cmds with all Updates added to Updates folder with an xml. I can't find link right now but it is here on Msfn. Look for the /config custom-uA.XML

CMD /C Start /Wait %SystemDrive%\APPS\MS_Office_Enterprise_2007\setup.exe /config custom-uA.XML

Edited by maxXPsoft
0

Share this post


Link to post
Share on other sites

Hello,

I'm looking for how to install Office 2010 from my Windows7 DVD when the path is DVD:\Office2010 (see image bellow)

Do the following Autounattend.xml command is correct?

           <FirstLogonCommands> 
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Office 2010</Description>
<CommandLine>cmd /C start /wait %CDROM%\Office2010\office14.exe</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>

Regards

win7office.jpg

Nobody can help?

I reformulate my questions.

To install a program during windows installation, we copy that program (for exapmle) to DVD\sources\$OEM$ \$1\Install\ or DVD\sources\$OEM$\$$\Setup\scripts\. Then during Windows7 installation, our program it copied to c:\Install or to c:\Windows\Setup\scripts\.. and called by <FirstLogonCommands> <SynchronousCommand >.

My question is, if i do not place my rogram in the DVD\sources\$OEM$\ path, what would be the call command to install it straight on from the DVD?

Regards

0

Share this post


Link to post
Share on other sites

to find the cdrom variable look there. That has been posted so many times

you would run it as <Order>1</Order>

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

  • Recently Browsing   0 members

    No registered users viewing this page.