Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


raffa

RunOnce.....

9 posts in this topic

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
0

Share this post


Link to post
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.

0

Share this post


Link to post
Share on other sites

I see nowhere that runonce is used by Vista

Windows XP Embedded

Mobile and Embedded Development

0

Share this post


Link to post
Share on other sites

E' true, I must find other solution ....thank !!

0

Share this post


Link to post
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

0

Share this post


Link to post
Share on other sites

well i'm glad we got that starightened out

since i been using those Synchronous and ASynchronous since I discovered runonce or ex is no more

0

Share this post


Link to post
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

0

Share this post


Link to post
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
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.