RunOnce after fbreseal?

  • Thread starter Thread starter Doug Gordon
  • Start date Start date
D

Doug Gordon

I'd like to have something run once the first time the system boots on a
cloned target, i.e. after doing fbreseal. Making a RunOnce resource with
flag=1 (RunOnce key), it runs during the initial FBA sequence at a time that
it really will not work right. Changing to flag=2 (RunOnceEx) it ran once at
the expected time on my development system on the first full boot of the
system after Explorer shell came up. I then made the rest of my
customizations and did "fbreseal", but the reseal apparently does not
restore the RunOnceEx key as the program did not run at first boot on the
cloned target.

I guess what I'll have to do is to manually enter this key with regedit just
before doing the reseal, but I thought that there should be a way to get
this to happen from the component settings.

Doug Gordon
 
at fbreseal you can specify a dll...

this dll is called after fbreseal, there you can create the runonce reg
entry.

do you need more info?

mario
 
Another option is to not call fbreseal directly, but to write a custom
script, say, myreseal.cmd,
and in there it can do any number of steps you want, including inserting the
registry values you
need, and then at the end it would call fbreseal.
 
Back
Top