bagofbones Posted March 23, 2004 Posted March 23, 2004 Suppose GUIRunOnce section looks like[GUIRunOnce]command0 = " ... "command1 = " ... "command2 = " ... "For some reason command1 will restart the computer. My question is that whether command2 will be executed or not if command1 forces the computer to restart. I don't want a test. If some one here can give a quick answer, it will save me a lot of time. Thanks a lot.
AirMaleDFW Posted March 23, 2004 Posted March 23, 2004 GUIRunOnce places keys (your commands) in the RunOnce section of the registry. Those keys are erased as each command is processed. If command 1 restarts the computer then command 2, 3, etc., would still be present on the next run through of the registry and should be processed then.Now, this hinges on whether the RunOnce section waits for each command to finish before issuing the next. I know this is the case with RunOnceEx (waits for each command issued to finish before progressing to the next).It would be simple enough to place three run keys in the RunOnce section of your computer with command 1 restarting your computer to check.
bagofbones Posted March 24, 2004 Author Posted March 24, 2004 Thank you for your replies.Actually,the real example is that command1 renames the computer and command2 makes the machine join a domain. For some reason, it seems that the machine can not rename itself and join a domain at same time. What I am thinking is that1.Command1 renames the machine and reboots the machine2.Once the machine starts up again, command2 make the machine join a domain.The name of machine and domain can not be determined in answer file. That means, user should supply the name of machine and domain during installation.Is it possible?
gtaylor Posted March 25, 2004 Posted March 25, 2004 The name of machine and domain can not be determined in answer file. That means, user should supply the name of machine and domain during installation.You can achieve this simply by leaving the entries for these items blank in your WINNT.SIF file. During installation Windows Setup will prompt you for the required information.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now