Export (0) Print
Expand All

Install or Remove System MSIs or Packages Online with OCSetup

OCSetup can be called only on a running Windows operating system. OCSetup installs and removes system Microsoft Windows Installer (system MSI) components. It can also be used to pass packages to Package Manager for installation or removal, or to call the Windows Installer service MSIExec.exe. It hands off packages to be installed by Package Manager automatically.

OCSetup cannot take a path to determine the location of the system MSI or package. System MSIs must be staged before installation. The path for packages must be specified in the servicing section of an unattended installation answer file.

To install language packs online, use the Language Pack Setup tool (Lpksetup.exe). For more information, see Use the Language Pack Setup Tool to Install a Language Pack.

For more information about OCSetup command-line options, see OCSetup Command-Line Options.

You must install the latest version of the Windows OEM Preinstallation Kit (Windows OPK), which contains all the necessary tools, including Windows System Image Manager (Windows SIM).

Install or Remove System MSIs or Packages Online

Before running OCSetup at a command prompt, set the command prompt to run as an administrator (even if you are logged on as administrator on the computer). To do this, perform the following procedure.

  1. Click Start, point to All Programs, and then click Accessories.
  2. Right-click Command Prompt, and then click Run as administrator.

To install or remove MSIs or packages

  1. Copy the out-of-box system MSI or package to the local hard drive.
  2. If you are installing a package, then create an answer file in Windows SIM with the desired packages in the servicing section.
    For details on how to do this, see Add a Package to an Answer File.
  3. Validate the answer file and save it.
  4. At a command prompt, run the following command.
    start /w ocsetup <MSI or package name> /unattendfile:<path to answer file>
    
    The MSI or package name is case-sensitive. To remove a system MSI or package, use the /uninstall option.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft