Remove the option 'wait' from Windows registry.

This option is only used in command line.

This commit closes #2192.