maxXPsoft

Ask your Seven xml ? here

616 posts in this topic

depends where you want to do things and if a User is loaded or not. Since I copy Install folder by using OEM this works

I 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>

0

Share this post


Link to post
Share on other sites

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 that

Regards

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>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>

0

Share this post


Link to post
Share on other sites

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 cmd

I don't use wpi so can't help with it

0

Share this post


Link to post
Share on other sites

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?

Regards

CDVD-Switcher.au3

Edited by coucou
0

Share this post


Link to post
Share on other sites

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 300000

ECHO.
REM Intégrationtion des fichiers de registre (.reg) et fichiers (.vbs)
REGEDIT /S "%systemroot%\Setup\Scripts\MyTweaks.reg"
ECHO.
EXIT

The drawback is that it open a cmd windows and I don't know how to prevent it :}

post-11791-0-89257700-1305534721_thumb.j

0

Share this post


Link to post
Share on other sites

could have used timeout and timer ticks down allowing you to go on if wanted

CMD /C Start /Wait Timeout 300

0

Share this post


Link to post
Share on other sites

TNX MAX ;)

Is the following correct?

CMD /C Start /Wait Timeout 300 /NOBREAK

Edited by coucou
0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

could have used timeout and timer ticks down allowing you to go on if wanted

CMD /C Start /Wait Timeout 300

I 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

0

Share this post


Link to post
Share on other sites

perhaps you can try cmd /C Start /Wait Timeout 4 | cmd /C C:\Windows\Setup\scripts\MyTweaks.bat

that should continue and call bat while timer is running

experiment 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 by maxXPsoft
0

Share this post


Link to post
Share on other sites

TNX Max, but i wrote an AutoIt script instead MyTweaks.bat

Regards

0

Share this post


Link to post
Share on other sites

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 #138

Do 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 by coucou
0

Share this post


Link to post
Share on other sites

I see you posting about setacl in another post. Is that what you are tring to do?

YES and got success with it ;)

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.