Re: ngen.exe at FBA stage

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks Ethan,

That looks exactly like what I'm after. I will look into it. I notice
you work for Advantech. Funnily enough I'm doing the image for an
Advantech TPC-660G screen. Are you familiar with this model, as I'm
having some issues with the Penmount nonPnP touchscreen driver?

Thanks

On Jun 18, 5:43 pm, Ethan Chen <EthanC...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Hi gommo,

If you want to execute your application at FBA stage, you can set "RunOnce
request" in the component --> Resources. There 3 flags you can set for
runonce request. I think flag 1 would fit your requirement.
0: Run.
The Run key is processed after every logon, either by the Explorer shell, if
it is present, or by First Boot Agent (FBA), if a custom shell, Command
shell, or Task Manager shell is used. If FBA processes this key, it does so
after every logon, not during first boot as it normally would. Typically,
this flag is used to load Systray applications, launch services in
executables, hide autostart applications, or hide background processes.

1: RunOnce. Default.
The RunOnce key is processed only once, by FBA, after Plug and Play device
enumeration and DLL registration processing have completed. The values of
this registry key are deleted from the registry after it is processed, so
that it will not run again. Typically, this flag is used when a reboot is
required, such as for a DLL or OCX registration, or for cleaning up a setup
or an uninstall.

2: RunOnceEx.
The RunOnceEx key is processed only once, by the Explorer shell, after the
first logon. The values of this registry key are deleted from the registry
after it is processed, so that it will not run again. If the Explorer shell
is not present, this key is ignored. Typically, this flag is used for a
process that runs only once, and that either cannot be run correctly by FBA
or requires the system to be fully operational.

You can reference tohttp://msdn2.microsoft.com/en-us/library/ms940034.aspx
Hope this helps you~
--
Advantech Co., Ltd.

"gommo" wrote:
Thanks Ethan,

But I'm after a way to run ngen.exe on my applications assemblys
during FBA.

On Jun 18, 11:45 am, Ethan Chen <EthanC...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Hi gommo,

The component ".NET Framework 2.0" includes ngen.exe will automatically
install at FBA stage.
--
Ethan
Advantech Co., Ltd.

"gommo" wrote:
I am including a .Net application with my XP embedded image. Is there
a way to run ngen.exe automatically at FBA on my applications
assembly's?

Thanks


.



Relevant Pages

  • Re: Shell application is started twice
    ... My reseach showed that FBA will put itself into the Usetinit key if you are using NOT Explorer shell. ... > We has registered a minor problem with some of our XPE based product. ... > Does anyone know what causes the UserInit entry in registry to get this value. ...
    (microsoft.public.windowsxp.embedded)
  • Re: ngen.exe at FBA stage
    ... driver like desktop PC unless you don't use explorer shell. ... If you want to execute your application at FBA stage, you can set "RunOnce ... this registry key are deleted from the registry after it is processed, ...
    (microsoft.public.windowsxp.embedded)
  • Re: Add a component to a deployed image
    ... > Depending on a component content it may be hard to add it to a post-FBA ... Component may have many files and registry entries. ... All this is done by FBA. ... >> I read already some documentation about the DUA but the only thing I ...
    (microsoft.public.windowsxp.embedded)
  • Re: will the xpe check disk after abnormal shutdown?
    ... about modifying registry values. ... Postponing registry changes to phase after PnP. ... These values can be overwritten during the FBA process by some PnP process ...
    (microsoft.public.windowsxp.embedded)
  • Re: Invalid registry data fixup
    ... You are right but these branches are created by PnP phase, ... and who know what else during the FBA. ... > and called regedit to load the registry data from a .reg file. ... >> Can you post sample of reg file so we can see what is wrong with it. ...
    (microsoft.public.windowsxp.embedded)