Microsoft Knowledge Base Email Alertz

(824687) - This article describes the consistent set of command-line switches that Microsoft is adopting for deploying packages that contain software updates.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Command-line switches for Microsoft software update packages

Article ID: 824687 - View products that this article applies to.

SUMMARY

Microsoft is adopting a consistent set of command-line switches that you can use to deploy packages that contain software updates, such as security updates, critical updates, and hotfixes. This article describes these new command-line switches and their behaviors.

Note Packages that support these new command-line switches also support earlier command-line switches for backwards compatibility. However, usage of the earlier switches should be discontinued as this support may be removed in future software updates.

For additional information about current command-line switches that are used by IExpress packages, click the following article number to view the article in the Microsoft Knowledge Base:
197147 Command-line switches for IExpress software update packages
For additional information about command-line switches that are used by Windows software update packages, click the following article number to view the article in the Microsoft Knowledge Base:
262841 Command-line switches for Windows software update packages
For additional information about command-line switches used by Windows Installer, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/aa367988.aspx
For additional information about the standard terminology that Microsoft is adopting to describe software updates, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

MORE INFORMATION

Microsoft is adopting the following command-line switches for software update packages:
  • /help; /h; /? - Displays a dialog box that shows the correct usage of the Setup command, including a list of all its command-line switches and their behaviors. You can display this help information in the command-line interface (CLI) or the graphical user interface (GUI). If you use any command-line switch incorrectly, this help switch is invoked and the correct usage is displayed. The dialog box also provides references to more online information.
  • /quiet - Runs the Setup program or the removal program in "quiet" mode. The program does not prompt the user with any messages. The program enters all messages in a log file. By default, the program restarts the computer with no prompt or warning if the process requires a restart for the changes to take effect. To change the default restart behavior, use a different restart mode.
  • /passive - Runs the Setup program or the removal program in "passive" mode. The program does not prompt the user with any error messages. The user sees a progress bar that indicates that the installation or the removal is occurring. The user cannot cancel the installation or the removal. By default, the program invokes the /warnrestart switch. If the program is installing multiple updates, the progress bar indicates the progress of the installation or the removal for each update.
  • /norestart - Does not restart the computer after the installation or the removal, even if the process requires a restart for the changes to take effect.
  • /forcerestart - Restarts the computer after the installation or the removal, even if the process does not require a restart for the changes to take effect. Restarting forces programs that are running to close.
  • /warnrestart[:x] - Invokes a dialog box that warns the user that a restart will occur in x seconds (in 30 seconds if no value is specified). For example, to warn that a restart will occur in 60 seconds, type /warnrestart:60. The dialog box contains a Cancel button and a Restart Now button. If the user clicks Cancel, the computer is not restarted.
  • /promptrestart - Prompts the user that the computer must be restarted for the changes to take effect. The user can select whether to restart the computer.
  • /uninstall - Removes the package.
  • /log - Enables the user to define the path for the local log file. This switch invokes the default logging behavior.
  • /extract - Enables you to extract the installation files to a specified folder.

Properties

Article ID: 824687 - Last Review: February 16, 2007 - Revision: 4.3
APPLIES TO
  • Customer Service and Support Information
Keywords: 
kmcustomerservice KB824687
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate