December 6, 200619 yr In the Autounattend.xml<RunOnce> <!-- This section contains elements for allowing additional commands during setup--> <RunOnceCommand FilePath="C:\sample1.vbs" Attributes="/a /f /e" Flags="1" ErrorControl="1" Reboot="True" Timeout="100" Cloning="On"> <DisplayName Value="MSDE Setup" /> <Description Value="This RunOnce Command installs MSDE" /> </RunOnceCommand> <RunOnceCommand FilePath="C:\sample2.vbs" Attributes="/r /j /k" Flags="0" ErrorControl="0" Reboot="True" Timeout="0" Cloning="Off"> <DisplayName Value="MSDE Setup" /> <Description Value="This RunOnce Command installs MSDE" /> </RunOnceCommand> <RunOnceCommand FilePath="C:\sample3.vbs" Attributes="/d /n /m" Flags="0" ErrorControl="0" Reboot="True" Timeout="0" Cloning="On"> <DisplayName Value="MSDE Setup" /> <Description Value="This RunOnce Command installs MSDE" /> </RunOnceCommand> <RunOnceCommand FilePath="C:\sample4.vbs" Attributes="/s /f /l" Flags="1" ErrorControl="1" Reboot="True" Timeout="1000" Cloning="Off"> <DisplayName Value="MSDE Setup" /> <Description Value="This RunOnce Command installs MSDE" /> </RunOnceCommand> </RunOnce>as we can insert the RunOnce and start setup, where to copy RunOnce so that it comes executed?Thank ! Edited December 6, 200619 yr by raffa
December 6, 200619 yr In the Autounattend.xml<RunOnce> <!-- This section contains elements for allowing additional commands during setup--> <RunOnceCommand FilePath="C:\sample1.vbs" Attributes="/a /f /e" Flags="1" ErrorControl="1" Reboot="True" Timeout="100" Cloning="On"> <DisplayName Value="MSDE Setup" /> <Description Value="This RunOnce Command installs MSDE" /> </RunOnceCommand> <RunOnceCommand FilePath="C:\sample2.vbs" Attributes="/r /j /k" Flags="0" ErrorControl="0" Reboot="True" Timeout="0" Cloning="Off"> <DisplayName Value="MSDE Setup" /> <Description Value="This RunOnce Command installs MSDE" /> </RunOnceCommand> <RunOnceCommand FilePath="C:\sample3.vbs" Attributes="/d /n /m" Flags="0" ErrorControl="0" Reboot="True" Timeout="0" Cloning="On"> <DisplayName Value="MSDE Setup" /> <Description Value="This RunOnce Command installs MSDE" /> </RunOnceCommand> <RunOnceCommand FilePath="C:\sample4.vbs" Attributes="/s /f /l" Flags="1" ErrorControl="1" Reboot="True" Timeout="1000" Cloning="Off"> <DisplayName Value="MSDE Setup" /> <Description Value="This RunOnce Command installs MSDE" /> </RunOnceCommand> </RunOnce>as we can insert the RunOnce and start setup, where to copy RunOnce so that it comes executed?Thank !RunOnce can be executed at several locations in the Install proccess, you cannot use it to kick off Setup as the AutoUnattend file is not read till AFTER setup is launched.
December 7, 200619 yr I see nowhere that runonce is used by VistaWindows XP EmbeddedMobile and Embedded Development
December 7, 200619 yr correct, not called runonce anymore but synchronous commands, can be added in passes 1,4,6,7 these are like runonce commands as you can launch applicatopns or scripts or bat files to continue installation.from within the WAIK, on the menu bar at the top, choose insert => Synchromous Command=> Pass then enter the command you want to run <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <CommandLine>\\servername\path\file.exe</CommandLine> </SynchronousCommand></FirstLogonCommands>this can launch anything you need, somethings may have to launched from msiexec or something else but you can do alot from here
December 8, 200619 yr well i'm glad we got that starightened outsince i been using those Synchronous and ASynchronous since I discovered runonce or ex is no more
December 8, 200619 yr vista install is very different from XPOEMs doesnt need RunOnce at all they can create master install with all required apps,confs & OOBE conf they they can build a wim from it and deploy the wimNowhere a run once came in place,M$ proposed WIM based deployment and not with runonce
December 9, 200619 yr With Vista you have Runonce BTW but name change,Its called Firstlogon and you can do pratically anything during that Firstlogon command with very little or no popups by the UAC if you know how. Edited December 10, 200619 yr by maxXPsoft
Create an account or sign in to comment