Re: Running when XPe Starts

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I'm somewhat new to XPe, and after searching this and other forums on the
Windows Embedded, I must admit that I haven't an understanding as to how to
tag a component so as to compel it to be executed, without user intervention,
immediately after the Second Boot but before anyone attempts a login.

(For a variety of reasons beyond the scope of this discussion, it is
important that the script I need execuited starts after the Second Boot. And
depending on user login to kick it off won't do, as the system being crafted
is intended for unattended operation.)

Is there a tutorial on the building of Components that act as Services when
XPe comes up? I think this would do the trick... but alas there didn't
appear to be a generic UserDefinedService .sld file I could use or extend.
Anyone care to post one?

Thanx -

-Darren-

"KM" wrote:

> Darren,
>
> Why just not set up FBA Generic Command that will launch the batch file like : "cmd.exe / C <patch_path.bat>"?
> You will have the control over the FBA phase for the command. It is going to be executed once. No user login relevance.
>
> --
> Regards,
> KM, BSquare Corp.
>
>
> > OK... refining my thoughts a bit...
> >
> > Is there a way - perhaps in the form of an already-created sample Component
> > - which will cause a command (such as a script) to be executed:
> > ž Once
> > ž After the FBA second boot (FBA phase 8501 - 12,000)
> > ž Without requiring a user to log in
> >
> > (Of course, after the 2nd boot, it's easy to get a script to execute only
> > once. The real trick seems to be how to get this done *before* the first
> > user login.)
> >
> > In essence, I'd like to accomplish some system configuration work outside
> > the scope of XPe (another OS), and have that work done prior to any user
> > login. If this can be accomplished, my entire appliance build process (save
> > the reseal and ghosting for duplication) will be completely automated: and
> > that would be great goodness ;-)
> >
> > Thanx -
> >
> > -Darren-
> >
> > "Martin Grossen, eMVP [AVNET Silica]" wrote:
> >
> > > Hi Paul
> > >
> > > Have a look into www.xpefiles.com.
> > > I have posted a Software component
> > > called "User Account Unlimited".
> > >
> > > This component starts a batch file late
> > > FBA phase 6005 (before second boot)
> > >
> > > You can take this component and use your own batch
> > > (or change the existing batch file in the Rep directory)
> > >
> > > But this will be started only once.
> > > (For configuration)
> > >
> > > If you want to start it at every boot up, use the
> > > solution from KM in the RUN keys.
> > >
> > > --
> > >
> > > Martin Grossen, eMVP
> > >
> > > AVNET EMG Silica
> > > Franchise Manager Microsoft Embedded Europe
> > >
> > > Your competent partner for Microsoft Embedded licencing
> > >
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >
> > > "Darren Suprina" <dsuprina@xxxxxxxxxxxxx(donotspam).> schrieb im Newsbeitrag
> > > news:2DD777DB-5018-49F2-BCCC-FD965BFDCEE5@xxxxxxxxxxxxxxxx
> > > > Can someone give me a hint as to how I configure an application to be
> > > > automatically be started when XPe starts? For example, I have created
> > > > c:\utilities\test.bat and would like to know how to configure the OS image
> > > > so
> > > > that when FBA finishes and the system reboots, by bat file will get kicked
> > > > off.
> > > >
> > > > Thanx -
> > > >
> > > > -Darren-
> > >
> > >
> > >
>
>
>
.



Relevant Pages

  • Re: Running when XPe Starts
    ... Then you should read XPe docs about FBA and FBA phases. ... But since you mentioned you wanted to launch the command just once, the FBA Generic Command would serve it better. ... No user login relevance. ...
    (microsoft.public.windowsxp.embedded)
  • OSQL prompts for password
    ... I have a batch file setup for backing up an msde 2000 database but the only ... in it fails with invalid password and my user login name. ... I enter is correct and the server is setup with Windows Authentication. ...
    (microsoft.public.sqlserver.server)
  • Re: Log in Script is not working
    ... Have you tried running the batch file interactively when the user is logged ... How many logon scripts do you have configured? ... doesnot run when a user login. ...
    (microsoft.public.windows.server.active_directory)
  • Re: how to run script at user login ?
    ... Put the batch file in the users startup folder ... Or you can set them in the registry in the Run Keys ... The machiine keys get run a boot time, the user keys at logon ... > run a batch file at either bootup or at a particular user login to ...
    (microsoft.public.windowsxp.setup_deployment)