HKey RunOnce runs too soon...

Rilescat

Senior member
Jan 11, 2002
815
0
0
Hello,

I am sysprepping systems and have a program in the "RunOnce" reg key to run a program to setup all of the IP and Hostname info. The problem is that when sysprep comes up, it runs the RunOnce while still setting up the system rather than waiting until it is in Windows.

Anyone know how I can make the program run once in Windows, rather than prematurely.

Thanks

 

Smilin

Diamond Member
Mar 4, 2002
7,357
0
0

Do a hack like so:

Put a link in your programs\startup folder to a batch file. Have the batch file run what you want and then delete it's own shortcut from programs\startup when it's done.
 

Rilescat

Senior member
Jan 11, 2002
815
0
0
You are the man! That worked perfectly. Shoulda' thought of it myself. Just shows what another perspective can do.

Thanks!