Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GUIRunOnce problem

Featured Replies

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.


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.

  • Author

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 that

1.Command1 renames the machine and reboots the machine

2.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?

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.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.