Adding run-once registry entries from .NET application

M

MIchele

Hi,
we have a XPE system all write-locked except for only one folder where my
..NET application reside.
When I send service pack from hq in order to update my .NET application
sometimes I have to reboot my system and then, when the machine startup,
continue the update.
How I can insert the run-once registry entry if after reboot all
modifications done outside my unlocked folder get lost?

Thanks

Mike
 
K

KM

Mike,

I can see a few ways how you can implement that.
For example, you can have a RunOnce option (or even better - Run option) setup all the time and pointing to a script file that is
located in the unprotected folder you mentioned. (script could be .bat, .cmd, etc. and you launch it with cmd.exe). Then, the batch
file can take care of any logic for reboot-required-updates you want to implement - check for global flags, file existence, registry
entries, etc. Obviously, a file presence under that folder could be the indicator for any action since the file will survive a
reboot.

Another way to implement what you asked about is by using Registry Filter: http://msdn2.microsoft.com/en-us/library/aa940857.aspx.
 

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