myselfidem Posted January 10, 2011 Posted January 10, 2011 (edited) @coucouIf 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 offColor 0Aecho."C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Mount-Wim /Wimfile:"C:\Se7en\sources\install.wim" /index:1 /MountDir:"C:\test"echo.pauseecho.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.pausereg.exe import "C:\DISM_Temp\RegistryTweaks.reg"pauseecho.reg.exe unload HKLM\WIM_Defaultreg.exe unload HKLM\WIM_Softwarereg.exe unload HKLM\WIM_Systempauseecho."C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Unmount-Wim /MountDir:"C:\test" /Commitecho.pauseAnd the reg file inside your temp folder:RegistryTweaks.regWindows 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:00000000Enjoy!*Edit: the correct value for the reg file with reg.exe is with my example above:RegistryTweaks.regWindows 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 January 15, 2011 by myselfidem
coucou Posted January 11, 2011 Posted January 11, 2011 Thanks a lot myselfidem and maxXPsoft I'll give a try laterRegards
myselfidem Posted January 15, 2011 Posted January 15, 2011 (edited) Hello coucou! 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.regWindows 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:00000000And the batch file is the same, but you need adapt the paths and the image number (index) to your needs.RegHive.cmd@echo offColor 0Aecho."C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Mount-Wim /Wimfile:"C:\Win7\sources\install.wim" /index:1 /MountDir:"C:\work"echo.pauseecho.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.pauseecho.reg.exe import "C:\DISM_Temp\RegistryTweaks.reg"echo.pauseecho.reg.exe unload HKLM\WIM_Defaultreg.exe unload HKLM\WIM_Softwarereg.exe unload HKLM\WIM_Systemecho.pauseecho."C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Unmount-Wim /MountDir:"C:\work" /CommitpauseNow 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 January 16, 2011 by myselfidem
myselfidem Posted January 17, 2011 Posted January 17, 2011 (edited) About the batch "Reg_Hive.cmd" you can improve like this:Reg_Hive.cmd@echo offColor 0Aecho."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 > nulecho.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 > nulecho.reg.exe import "C:\DISM_Temp\Services.reg"echo.choice /t 5 /c on /cs /d o > nulecho.reg.exe import "C:\DISM_Temp\RegistryTweaks.reg"echo.reg.exe unload HKLM\WIM_Defaultreg.exe unload HKLM\WIM_Softwarereg.exe unload HKLM\WIM_Systemecho.choice /t 5 /c on /cs /d o > nulecho."C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Unmount-Wim /MountDir:"C:\work" /Commitecho.echo ==Appuyez sur n'importe qu'elle touche pour quitter==&pause>nulUsing:choice /t 5 /c on /cs /d o > nulYou 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 January 17, 2011 by myselfidem
coucou Posted January 18, 2011 Posted January 18, 2011 TNX again myselfidem,BTW, this may interseting youCDVD-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
coucou Posted January 18, 2011 Posted January 18, 2011 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
yngdiego Posted January 19, 2011 Posted January 19, 2011 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>
maxXPsoft Posted January 19, 2011 Author Posted January 19, 2011 (edited) @yngdiegoWAIK is not the best friend thing, been there done that1. 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.XMLCMD /C Start /Wait %SystemDrive%\APPS\MS_Office_Enterprise_2007\setup.exe /config custom-uA.XML Edited January 19, 2011 by maxXPsoft
coucou Posted January 19, 2011 Posted January 19, 2011 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> RegardsNobody 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
maxXPsoft Posted January 19, 2011 Author Posted January 19, 2011 to find the cdrom variable look there. That has been posted so many timesyou would run it as <Order>1</Order>
coucou Posted January 20, 2011 Posted January 20, 2011 TNX maxXPsoft,Therefore the command will looks like this? <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <Description>Office 2010</Description> <CommandLine>cmd /C for %%a 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 %%a:\%Office2010\Office14.exe% start /Wait "%%a:\%Office2010\Office14.exe%"</CommandLine> </SynchronousCommand> </FirstLogonCommands> What about the further command <Order>2</Order> <Order>3</Order> ... do the'll looks as normal? <SynchronousCommand wcm:action="add"> <Order>2</Order> <Description>UberPack</Description> <CommandLine>cmd /C start /wait c:\Install\Win7_UberPacK_v4.exe</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>2</Order> <Description>Windows Post Installation</Description> <CommandLine>cmd /C c:\Windows\Setup\scripts\WPI.exe /Q</CommandLine> </SynchronousCommand> Regards
maxXPsoft Posted January 20, 2011 Author Posted January 20, 2011 (edited) been awhile since I used this so off the top of my head. someone correct me if wrongYou don't want blank spaces in these or you have to add the quote for xml<Order>1</Order> <Description>Set CDROM Variable</Description> <CommandLine>cmd /c FOR %%i IN (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:\sources\install.wim SET CDROM=%%i:</CommandLine><Order>2</Order> <Description>Office2010</Description> <CommandLine>cmd /C start /Wait %CDROM%\Office2010\Office14.exe</CommandLine>any others will use same thing %CDROM%\ Edited April 6, 2011 by maxXPsoft
dyehardfan Posted January 21, 2011 Posted January 21, 2011 Is this the place for a noob to ask questions re: Win7 Unattend.xml? I certainly hope so, because I am highly frustrated at the moment and could really use some help figuring this one out. Background: Using a KACE K2100 Appliance to push out scripted installation of Windows 7 Professional VL MAK. I do not think the method of delivery plays into this, but I could certainly be wrong. Also, I am using a batch script post install to insert the Product Key and commence Activation. The following is the code that I am attempting to use based on the Wizard that is built into the KACE Appliance. When the Install Setup is in it's final stage it prompts for a username and then for a password for that username. I am confused as to what I am missing to make this happen. This is in no way a complete Unattend.xml as I plan to put a lot of other stuff in here, but I want the damned thing to at least run through the most basic of unattended installs with no hiccups before I move forward. I would really appreciate any feedback y'all might have.<?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <UseConfigurationSet>true</UseConfigurationSet> <UserData> <AcceptEula>true</AcceptEula> <FullName>User</FullName> <Organization>Camellia Home Health and Hospice</Organization> </UserData> <ImageInstall> <OSImage> <InstallToAvailablePartition>true</InstallToAvailablePartition> <InstallFrom> <MetaData> <Key>/IMAGE/Name</Key> <Value>windows 7 professional</Value> </MetaData> </InstallFrom> </OSImage> </ImageInstall> </component> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <UILanguage>en-US</UILanguage> <SetupUILanguage> <UILanguage>en-US</UILanguage> </SetupUILanguage> <InputLocale>en-us</InputLocale> <SystemLocale>en-us</SystemLocale> <UserLocale>en-us</UserLocale> </component> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <RegisteredOwner>User</RegisteredOwner> <RegisteredOrganization>Camellia Home Health and Hospice</RegisteredOrganization> <TimeZone>Central Standard Time</TimeZone> <AutoLogon> <Enabled>true</Enabled> <Username>Administrator</Username> <Password> <PlainText>true</PlainText> <Value>P@ssw0rd</Value> </Password> <LogonCount>3</LogonCount> </AutoLogon> <ComputerName>*</ComputerName> </component> <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <Identification> <JoinWorkgroup>Workgroup</JoinWorkgroup> </Identification> </component> <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Path>reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork" /v Category /t REG_DWORD /d 00000000 /f</Path> <Description>Setting Network Location</Description> <Order>1</Order> <WillReboot>OnRequest</WillReboot> </RunSynchronousCommand> </RunSynchronous> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Work</NetworkLocation> <SkipMachineOOBE>false</SkipMachineOOBE> <SkipUserOOBE>false</SkipUserOOBE> <ProtectYourPC>3</ProtectYourPC> </OOBE> <UserAccounts> <AdministratorPassword> <Value>P@ssw0rd</Value> <PlainText>true</PlainText> </AdministratorPassword> </UserAccounts> </component> </settings></unattend>
maxXPsoft Posted January 22, 2011 Author Posted January 22, 2011 Are you logging in with Administrator on every machine? you need LocalAccounts even with AdminThis would come right behind /AdministratorPassword <UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add"> <Group>Administrators</Group> <DisplayName>Administrator</DisplayName> <Description>Local Account</Description> <Name>Administrator</Name> </LocalAccount> </LocalAccounts> </UserAccounts>
dyehardfan Posted January 22, 2011 Posted January 22, 2011 Are you logging in with Administrator on every machine? you need LocalAccounts even with AdminThis would come right behind /AdministratorPassword <UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add"> <Group>Administrators</Group> <DisplayName>Administrator</DisplayName> <Description>Local Account</Description> <Name>Administrator</Name> </LocalAccount> </LocalAccounts> </UserAccounts>Thanks, I will give this a shot. And yes, each machine will be logged into as the Local Admin post Win7 Installation for Application Deployment and furthur setup. I appreciate your help.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now