Jump to content

RunOnce.....


Recommended Posts

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 by raffa
Link to comment
Share on other sites


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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

vista install is very different from XP

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

Nowhere a run once came in place,

M$ proposed WIM based deployment and not with runonce

Link to comment
Share on other sites

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 by maxXPsoft
Link to comment
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.
×
×
  • Create New...