RunOnce after fbreseal?

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
 
M

Mario Dambauer

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
 
D

David Repko

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top