Silent Installation of the XDK

Silent installation and removal of the XDK is available to advanced users. This topic describes these two options:

To see the full range of command-line options for XboxOneXDK.exe, enter XboxOneXDK.exe /? at the command line.

Note Xbox One XDK setup does not support installing to a non-default location. The /installpath command-line switch, which is listed in the help output for XboxOneXDK.exe /?, doesn’t work correctly and should not be used.

Silently Installing the XDK

To silently install the XDK, run the XboxOneXDK.exe from a command prompt or script.

To install the XDK from a command line

  1. In a command prompt window, navigate to the folder where you extracted the XDK package.
  2. To silently install the XDK enter the command:
    XboxOneXDK.exe/quiet/norestart
  3. Enter the command cd%temp%\xboxonesdk to navigate to the log file.
    The log file is by default written to %temp%\xboxonesdk.
  4. Verify the Exit code in the log file.
    Exit codes are described in the following table.
Exit code (hex) Exit code (decimal) Description
0x0 0 Success, with no reboot required.
0xBC2 3010 Success, with a reboot required.
0x7D5 2005 An instance of setup is already running.
0x7D7 or 0x7DA 2007 or 2010 A pending reboot needs to be completed before setup can run.
0x3E8 1000 Invalid command line parameter.
0x3E9 1001 Invalid value provided to a command line parameter.
0x80070642 1602 Setup was cancelled during installation of one of the components.
0x80070643 1603 Setup failed during installation of one of the components.

Silently Uninstalling the XDK

To silently uninstall the XDK from the command line

  1. Kill any processes that may be using XDK files and cause uninstall to request a reboot.
    call taskkill /F /IM Microsoft.Durango.TransportProxy.exe
    call taskkill /F /IM xbrdevicesrv.exe
    call taskkill /F /IM devenv.exe
    call taskkill /F /IM msbuild.exe
    call taskkill /F /IM xbtplinksvc.exe
    net stop msiserver  
    
  2. Enter the following command at the command line:
    XboxOneXDK.exe/quiet/norestart/uninstall
    Note you can optionally use a command like the following in a script to automatically find and uninstall the setup program:
    for /F "delims=" %%G in ('dir /b /s "%programdata%\package cache\XboxOneXdk*.exe"') DO (
      call "%%G" /uninstall /norestart /q
          
      set _EXITCODE=!errorlevel!
          
      if not "!_EXITCODE!" == "0" (
        if not "!_EXITCODE!" == "3010" (
          echo Process returned exit code !_EXITCODE!. See logs in %temp%\xboxonesdk for more details.
          goto :END
      )
    )
          
    echo Uninstall completed successfully with exit code !_EXITCODE!
    )