maxXPsoft Posted May 8, 2011 Author Share Posted May 8, 2011 depends where you want to do things and if a User is loaded or not. Since I copy Install folder by using OEM this worksI do most in FirstLogonCommands <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <Description>Password Expires False</Description> <CommandLine>cmd /C wmic useraccount where "name='MYUSERNAME'" set PasswordExpires=FALSE</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>2</Order> <Description>Running FirstLog.cmd</Description> <CommandLine>cmd /C start /wait %systemdrive%\Install\FirstLog.cmd</CommandLine> </SynchronousCommand> </FirstLogonCommands> Link to comment Share on other sites More sharing options...
coucou Posted May 8, 2011 Share Posted May 8, 2011 TNX maxXPsoft Link to comment Share on other sites More sharing options...
coucou Posted May 13, 2011 Share Posted May 13, 2011 Hi,Finally I'm quite happy with my Autounattend.xml. Everything works just fine However, I noticed since always, that Windows Post Install Wizard (cmd order 7) start installing the progs before all addons and cmd files in Synchronous has installation completed.Is there anyhow to correct thatRegardsAutounattend.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>Prenom Nom</FullName> <Organization>Private</Organization> <ProductKey> <Key>D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV</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>D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV</ProductKey> <RegisteredOwner>Prenom Nom</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>Prenom Nom</RegisteredOwner> <TimeZone>Romance Standard Time</TimeZone> <AutoLogon> <Enabled>true</Enabled> <LogonCount>9999999</LogonCount> <Username>HEN</Username> <Password> <Value></Value> </Password> </AutoLogon> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <Description>UberPack v4 several utilities</Description> <CommandLine>cmd /C start /wait c:\Install\Win7_UberPacK_HEN_v4.exe</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>2</Order> <Description>Windows Malicious Software Removal Tool 3.18.4804.0</Description> <CommandLine>cmd /C start /wait c:\Install\windows-kb890830-v3.18.exe /Q</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>3</Order> <Description>Windows Malicious Software Removal Tool 3.18.4804.0 delta</Description> <CommandLine>cmd /C start /wait c:\Install\windows-kb890830-v3.18-delta.exe /Q</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>4</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>5</Order> <Description>About 275 Portable Utilities</Description> <CommandLine>cmd /C start /wait c:\Install\UtilsPortable.exe</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>6</Order> <Description>My Registry Tweaks</Description> <CommandLine>cmd /C start /wait c:\Windows\Setup\scripts\MyTweaks.bat</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>7</Order> <Description>Windows Post Install Wizard</Description> <CommandLine>cmd /C start /wait c:\Windows\Setup\scripts\CDVD-Switcher.exe</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>HEN</DisplayName> <Name>HEN</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> Link to comment Share on other sites More sharing options...
maxXPsoft Posted May 13, 2011 Author Share Posted May 13, 2011 you can make a cmd wait but not the program you are calling CDVD-Switcher.exe. The things you call must be able to do that on their own. apparently Switcher.exe is calling other things that don't wait on initial cmdI don't use wpi so can't help with it Link to comment Share on other sites More sharing options...
coucou Posted May 13, 2011 Share Posted May 13, 2011 (edited) TNX maxXPsoft I wrote the here attaced AutoIt script for CDVD-Switcher.exe to enable me passing from the first DVD (Win7) to the next (progs), then it launch WPI.Do you thing I've to add sleep (wait) before launching WPI and that's it?BTW, I'm not much familiar with cmd. May you write a cmd wait for me?RegardsCDVD-Switcher.au3 Edited May 13, 2011 by coucou Link to comment Share on other sites More sharing options...
coucou Posted May 16, 2011 Share Posted May 16, 2011 Finally I added twice 5 minutes delay.5 minutes delay in CDVD-Switcher.exe and 5 minutes in MyTweaks.bat (cmd order 6).For the batch file I added the following a [b]@ping command as here bellow @ECHO OFF@ping 1.1.1.1 -n 1 -w 300000ECHO.REM Intégrationtion des fichiers de registre (.reg) et fichiers (.vbs)REGEDIT /S "%systemroot%\Setup\Scripts\MyTweaks.reg"ECHO.EXITThe drawback is that it open a cmd windows and I don't know how to prevent it Link to comment Share on other sites More sharing options...
maxXPsoft Posted May 16, 2011 Author Share Posted May 16, 2011 could have used timeout and timer ticks down allowing you to go on if wantedCMD /C Start /Wait Timeout 300 Link to comment Share on other sites More sharing options...
coucou Posted May 16, 2011 Share Posted May 16, 2011 (edited) TNX MAX Is the following correct?CMD /C Start /Wait Timeout 300 /NOBREAK Edited May 16, 2011 by coucou Link to comment Share on other sites More sharing options...
maxXPsoft Posted May 16, 2011 Author Share Posted May 16, 2011 TNX MAX Is the following correct?CMD /C Start /Wait Timeout 300 /NOBREAK yes if you don't want to be able to stop it. Link to comment Share on other sites More sharing options...
coucou Posted May 20, 2011 Share Posted May 20, 2011 could have used timeout and timer ticks down allowing you to go on if wantedCMD /C Start /Wait Timeout 300I tested in real install... doesn't works. Worse, the apps aren't even launched <SynchronousCommand wcm:action="add"> <Order>6</Order> <Description>My Registry Tweaks</Description> <CommandLine>cmd /C start /wait Timeout 400 c:\Windows\Setup\scripts\MyTweaks.bat</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>7</Order> <Description>Windows Post Install Wizard</Description> <CommandLine>cmd /C start /wait Timeout 400 c:\Windows\Setup\scripts\CDVD-Switcher.exe</CommandLine> </SynchronousCommand> Regards Link to comment Share on other sites More sharing options...
maxXPsoft Posted May 21, 2011 Author Share Posted May 21, 2011 (edited) perhaps you can try cmd /C Start /Wait Timeout 4 | cmd /C C:\Windows\Setup\scripts\MyTweaks.batthat should continue and call bat while timer is runningexperiment on the desktop first calling second file. I done on desk and it worked, make sure you put exit at end of .cmd files so they will close Edited May 21, 2011 by maxXPsoft Link to comment Share on other sites More sharing options...
coucou Posted May 22, 2011 Share Posted May 22, 2011 TNX Max, but i wrote an AutoIt script instead MyTweaks.batRegards Link to comment Share on other sites More sharing options...
coucou Posted May 26, 2011 Share Posted May 26, 2011 (edited) Hi Max,Sorry for bothering you again.I noticed that what ever i do, largely the registries inside MyTweaks.reg file (SynchronousCommand in Order6) are not applied.Autounattend.xml post #138Do you think if I launch that MyTweaks.bat file as RunOnce/RunOnceEx all the registries will be applied?[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\MyTweaks]"MyTweaks"="c:\Windows\Setup\scripts\MyTweaks.bat"Regards Edited May 26, 2011 by coucou Link to comment Share on other sites More sharing options...
maxXPsoft Posted May 28, 2011 Author Share Posted May 28, 2011 There may be permission problems with what you are trying to add and remember you can't add user tweaks with this. You need to do those maybe at FirstlogoncommandsI see you posting about setacl in another post. Is that what you are tring to do?http://www.howtogeek.com/forum/topic/tutorial-setting-permissions-on-a-registry-key?replies=8 Link to comment Share on other sites More sharing options...
coucou Posted May 29, 2011 Share Posted May 29, 2011 I see you posting about setacl in another post. Is that what you are tring to do?YES and got success with it Link to comment Share on other sites More sharing options...
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