[Tip] Customize Microsoft Office Click-to-Run (C2R) Setup to Install Selected Programs Only

Since the release of Office 2010 version, Microsoft has started using a new virtualization technology to distribute Office setup and installation files to users and the technology is called "Click-to-Run" or "C2R Installer".

In older Office versions such as Office 2003, 2007, etc, Microsoft used to provide traditional MSI (Windows Installer) to Office users to install Office suite in their computers. The MSI installer allowed users to select or deselect desired Office programs at the time of installation so that the Office setup wizard installs only selected programs.

On the other hand, the new C2R installer is an absolute different type of program which actually streams Office setup files from Microsoft servers. Its an online installer which downloads Office files at the time of installation. The benefit of this installer is that it lets you use the downloaded Office programs before the whole Office suite is installed in your computer. Also with the help of C2R installer, you can install multiple Office versions side-by-side in same computer.

But there is a big disadvantage in this new Click-to-Run installer technology! This new C2R installer doesn't allow you to select/deselect Office programs at the time of installation so the installer downloads and installs all available Office programs. If you want to install only selected programs such as Microsoft Word, Excel and PowerPoint, you can't do that with C2R installer. It'll install all Office programs without asking for your choice.

Fortunately Microsoft provides an official tool to customize Click-to-Run installer options so that you can force the installer to install your desired Office programs only.

This tool is called "Office Deployment Tool" and is available for Office 2013 and Office 2016 versions. With the help of this tool, you can download Office setup files at your desired location and then configure the installer to install your selected Office apps only. You can also select which language should be installed and also customize lots of setup options.

You can consider this deployment tool as an unattended setup of Microsoft Office suite. You can force the Click-to-Run installer to suppress the whole setup UI. Also you can set whether Office should automatically update itself or not.

If you want to customize Office setup and want to install selected Office programs using Click-to-Run (C2R) installer in your computer, check out following simple steps:

STEP 1: Download Office Deployment Tool

First of all, download the official tool from Microsoft website:

Download Office 2013 Deployment Tool

Download Office 2016 Deployment Tool

STEP 2: Run Deployment Tool to Extract Required Files

Once you download Office Deployment Tool, run it and it'll ask you to select a folder to extract the files. Select any desired folder and it'll extract following 2 files in that folder:

  • configuration.xml
  • setup.exe


STEP 3: Edit Configuration.XML File

"Configuration.xml" file is the main file which will be used to tell the Office installer details about all setup options. We'll provide all required information in this XML file to force the installer to install only selected Office programs with predefined things. You can consider this XML file as an automatic answer file which is used in unattended software installations.

We'll use Notepad to edit this XML file. To edit the file, right-click on "configuration.xml" file and select Edit option. It'll automatically open the file in Notepad.


By default, the file contains basic information to help you in easily modifying the file. Everything is marked as comment and you'll need to remove the comment marks to make it a working configuration file.

Copy following code and replace the existing code in the file with it:

<Add SourcePath="E:\Office\" OfficeClientEdition="64" >
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="InfoPath" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneNote" />
<ExcludeApp ID="PowerPoint" />
<ExcludeApp ID="Publisher" />
<ExcludeApp ID="SharePointDesigner" />


Now some important things to know!

The information given in BOLD in the above code can be modified according to your requirements. For example:


Set the value of "SourcePath" to the desired folder which should store the Office setup files downloaded by C2R installer.


If you want to download and install 32-bit (x86) version of Office suite, set value of "OfficeClientEdition" to 32. If you want to download and install 64-bit (x64) version of Office suite, set its value to 64.

Product ID:

This variable contains the information about the main product which you want to install using C2R installer. You can set any of following as its value according to your requirements:


Language ID:

You can set which language should be installed by the installer. You can set its value to your desired locale and language information such as en-us, hi-in, ja-jp, etc.

ExcludeApp ID:

That's the most useful variable which we need to specify to force C2R installer to install only selected Office programs.

This variable is optional. You can use this variable multiple times as we have used in the above code, to specify which Office programs should NOT be installed by the installer. So set its value to the programs which you don't want to install i.e. exclude from your computer.

You can set its value to any of following:


That's it. After providing required information save the XML file.

STEP 4: Download Office Setup Files

Now we need to download Office setup files using the setup.exe file. But it'll not work if you try to direct run the setup.exe file.

1. Open the folder containing setup.exe and configuration.xml files. Now press and hold SHIFT key on your keyboard and then right-click on empty area in the folder. You'll see a new option "Open command window here" or similar, click on it. It'll open Command Prompt window with the current directory active.

2. Now type following command in Command Prompt and press Enter:

setup.exe /download configuration.xml


If you have set the "configuration.xml" file correctly, the setup.exe file will immediately start downloading Office files. You'll notice a new folder "Office" created by the installer in the same folder which you defined in "SourcePath" variable in configuration.xml file. If you open this new folder, it'll contain Office setup files which are being downloaded by the setup.exe file.


Downloading all Office files may take some time depending upon your Internet connection speed.

Once the download process finishes, the Command Prompt window will return to current directory.

STEP 5: Run Office Installer to Install Selected Programs

Now the final step! We need to run the setup.exe file with correct parameters in Command Prompt to install selected Office programs with our predefined settings in configuration.xml files.

Run following command in Command Prompt:

setup.exe /configure configuration.xml


That's it. It'll immediately start installing your desired Office programs in your computer.


It'll take some time in installing Office suite in your computer.


You can also provide the product key to the installer using configuration.xml file so that you don't need to type product key manually. Just add following line to the code:

<Product PIDKEY="11111-11111-11111-11111-11111">

Replace "11111-11111-11111-11111-11111" with the correct product key.

Share this article: Facebook | Twitter | Google+ | Reddit | Tell a friend

Posted in: Microsoft Office

Other similar articles that may interest you


  • Thank you for such an Informative article.I would put this up to Microsoft community as it would be very helpful for the users.
    Anyway, I am encountering a very strange problem accessing your website from today morning itself, whenever I type in askvg.com at the address bar, it starts downloading a download.gz named file and this problem exists in every browser I use.I have also refreshed my IP and nothing has changed.
    I am accessing your website using a proxy server.
    (I use your website to refer many users on Microsoft community who have some windows problems and you have written very informative articles to correct them)

  • VG

    ^^ Thanks for reporting the issue. Some other AskVG readers also reported the same. Now the issue has been fixed. :)

  • Here is a tricky question I don't have the hardware to test with.

    As I understand it, this deployment tool is setting up a single CTR environment. SOOOO ... is there any chance you could specify more than one "Product ID". Specifically, I'm wondering if you could include a mix like:

    to create a single Office 365 Business + Visio + Project CTR environment.



    to create a single Office 365 Home Prem + Visio + Project CTR environment

    In both cases assuming that you have the required product keys for each bundle.

    I'm asking this because many people are having issues installing Visio and Project after they install any of the Office 365 business bundles, or Office 365 Home Prem.

  • VG

    ^^ Of course, you can. See the dummy XML file in screenshot. It contains 2 different products: Office and Visio. You can use more than one product using opening and closing Product tags.

  • I can't customize my installation even with configuration.xml content provided by you. I always end up getting this error message (I'm launching CMD as administrator): i.imgur.com/HjAI9rj.png

  • VG

    ^^ If a single detail in the XML file is incorrect, you'll get that error message. Make sure the OfficeClientEdition is set to correct edition. Double-check the Product ID value.

    If you can't figure out, post the content of your XML file.

  • Thanks. Will Give It A Try. :)

  • @VG

    Here it's, I'm not able to correct this:


  • VG

    ^^ Add SourcePath variable and the code will work.

  • I believe it was said in the article before that this variable is optional. Anyway, my main problem was running “setup.exe /configure configuration.xml” command before downloading required files. Although I tried several times to launch custom setup with installation files extracted from ISO image but it didn‘t work. Thank you for your latest suggestion, required files are being downloaded at the moment.

  • I noticed another nuance—SourcePath must be either very short or without any spaces because this is also causing the problem I talked about above.

  • Hi , VG .
    did you try " Office 2016 Setup by Ratiborus" ? : " Small tool to install Office 2016 giving the ability to select which products to install (Word, Excel, PowerPoint, Access, etc). "

    i found this comment to use offline :
    " for those who already have downloaded the .iso Office what to do is mount the .iso and copying the "office" folder to the "files" folder of this program, then run the program and configure it to your liking and finally click on the Install Office button, wait for it to install and enjoy. "

    please test this methoud .
    Thanks .

  • How about if I already have the setup files on my drive, can I do it in offline. Because I don't want to install all the Proffesional Plus Suite. Also how about when uninstalling, how can I uninstall just some on the suite? Thank you for helping in advance

  • VG

    ^^ Check above comment of Arshia. You can extract the content of ISO. Regarding uninstalling selected programs, same configure command with exclude list can be used.

  • Hello VG!
    Thank you for this incredibly useful tutorial, it helped a lot.
    I have a very strange thing happening though. For the third time in two days I installed Office 2016 (long story) and I have ProPlusRetail, so I excluded everything but Word, Excel and PowerPoint, and all three times OneNote was installed. I specifically excluded it and the third time around I put exclude clause three times on different places and it was still installed.
    Do you maybe have an idea why this is happening?

  • Thank you so much! Really, i don't understand this stupid thing from MS. I only use Word and Excel, hence, i only wish to install those two! Damn it, i step forward, 3 steps back. Removing control from the user and s**t ¬¬

  • Wow, this tutorial is simply flawless. Worked perfectly for me.

    Thank you so much!

  • @Missy

    Are you sure you‘re not confused with OneNote app which is installed in Windows 10 by default?

  • I have Office 2016 and want to add MS Office Picture Manager. I followed the above instructions and in the Office folder got a version 15 file folder. When I tried to run that I got a message that said I was trying to install a later version than the one I had and did I want to continue. I clicked out.

    I don't know what I'm doing wrong. My configuration.xml file looks like this:

    Thank you.


  • most useful

  • Thank you TOOOOOO Much :)
    I Appreciate your work

  • Hi, I installed Microsoft Office 2013 with a MSI installer, and I was hoping to do the same with 2016, is there any version of 2016 that doesn't come with "Click-to-Run"/"C2R Installer"?

    I haven't bought Office 2016, and I thought about asking here, so I may be better informed when the time comes, and in case there is a version of Microsoft Office that still has the installer that came before "Click-to-Run", I want to know which version to buy.

    Thank you.

  • What's the ID's for Skype for Business all all that junk etc?

  • @Jo: Skype for Business = Lync, OneDrive for Business = Groove.

  • bloody brilliant... saved me a lot of hassle...

  • Hi, I used this and it worked. I can now install our Visio 2016 MSI as C2R, the problem is that our Visio is a Volume License. After install we can't enter the key as it won't accept VL Keys.

    Is there a solution for this?

  • Hi, I used this and it worked. I can now install our Visio 2016 MSI as C2R, theproblem is that our Visio is a Volume License. Afte reinstall we can't enter the key as it won't accept VL Keys.
    Is there a solution for this?

  • Thank you, this was very easy to follow and execute. I'm wondering - if you download the installers without excluding any modules, can you then re-edit the .xml file to specify exclusion of some modules, just prior to running the Office Deployment Tool setup.exe?

  • Hi VG!

    I've come so far as to run the setup.exe /configure configuration.xml. UAC asks me to let setup.exe make modifications to my system, I say yes. then it appears to be working like it does while downloading, but nothing pops up. After a while, it just returns to command prompt. I tried putting the setup file in the Office folder, in it's parent folder and in another folder i used for the deployment tool. like this:


    This is my config file, ran from the o16-c2r folder:

    <!-- -->

  • I couldn't manage to paste the .xml data, so here's a link: bstart.net/configuration.xml

    I'm using Windows 10 x64 with built-in firewall. I already got the ProPlus version installed, so i'm planning to format and use this version instead, just want to make sure it will work first. Only need Word, Excel and PowerPoint. OneDrive for Business is causing me troubles.

  • VG

    ^^ Since you are using ProPlus version, you need to change Product ID in the XML file.

  • Hi again VG!

    I did format and tried again, had the same result. But to my surprise, office had already installed :) I suppose the (Display Level="None" AcceptEULA="True") made it a silent install. I kept waiting for the GUI Installer, thought that the string only skipped the EULA for me. Happy days!!

  • VG

    ^^ OF course. Display Level="None" works as a silent installer. No UI is shown.

  • Thank you VERY much for your thorough explanation! It was of great help to battle the stupidity of the C2R installer.

  • Hi VG,

    I followed all the steps above, but for some reason when I get to step 5 by and enter this line in run cmd.exe

    E:\Office>setup.exe /configure configuration.xml

    I get the following error/line when I hit return...

    'setup.exe is not recognized as an internal or external command, operable program or batch file.

    Any ideas on what I may have done wrong. Steps 1-4 seemed to work fine.

  • VG

    ^^ Press SHIFT key and right-click on empty area inside the folder containing Office setup.exe file and select "Open Command Prompt window here" option. Then execute the command.

  • Hello VG,

    Thank you very much for this tutorial.
    But as always, it will not work for me the first time.
    At step 4 (downloading the files), after waiting for a more then 1 hour, the command prompt is not returning back.

    C:\temp>setup.exe /download configuration.xml

    During the download, I'm monitoring the files in subfolder 12.1.12345.1234 (example).
    Amongst the files there are two large files:
    - stream.x64.en-us.dat (200.295 KB)
    - stream.x64.x-non.dat (1.051.630 KB). The latter one appears and disappears.

    What could I have done wrong during the process?

    I've copied the configuration file here below in case I have done something wrong.

    Can you please advice me what to do?

    PS: I'm working with Windows 10.

  • Many thanks in advance.

    With kind regards,


  • It finally works (after 2 hours of waiting).

    Many thanks.


  • How do I know my product key if the version is the free one for students?

  • VG

    ^^ Check following:


  • Hi. I am getting an error message "Couldn't install" after running the configuration file below. What am doing wrong? Thanks.

  • Oooops, no XML tags allowed - or they will be eaten :)
    Oh well, I figured why it won't work. I don't have a ISO or mounted DVD setup.exe to point to; only an executable M$ let me download through their HUP partner website. So, I ordered a backup DVD and will then try again. I am assuming even the installation DVD will "click and run" if I don't use your workaround. Is that correct? Thanks.

  • I use this tool. Very easy:officedev.github.io/Office-IT-Pro-Deployment-Scripts/XmlEditor.html

  • Hello VG awesome can i also use this trick for Office 365? Thanks for the help

  • VG

    ^^ Yes. Its mentioned in Product ID section.

  • Hi, thanks for tip
    but after all I still couldn't install language pack
    after start cmd, office folder created with 34mb content but never stop and takes more than 1gb bandwidth traffic without installing anything or downloading anything in office folder
    it's like installing something else
    I don't know what to do?
    Windows 10 x64 - Office 2016 Professional x32

  • I have Office365 Home (including Word, Excel, Powerpoint, OneNote, Outlook, Publisher, Access Skype and OneDrive):

    What will happen when I exclude programs (.e.g. Visio or Project) that are not part of the Home version?

    Will the download stop?

  • Hi,

    I need this steps for the Active Directory Office 2013 activation, Does this steps can be usefull for my request?


  • Thank you for this clear and easy to follow explanation! It works fine, I have installed what I want.
    Kind regards,

  • How do I exclude office 2013 tools from installing by default?
    I have already used the exclude syntax for everything else.

  • Hello thank you for the tutorial I am encountering one issue. imgur.com/Nq9XTfr
    I am trying to install my office on a removable drive as I have limited drive space and I'm saving that for updates. Can I install it on a removable drive?

  • Command prompt is stuck open, not moving foward after issuing /download command. Have waited 2+ hours... Is there any solution?

  • I want to end up with this on a USB stick, so can the SourcePath be specified relatively given that one can't know what drive letter will be assigned to a USB stick?

  • Doesn't seem to stop OneDrive being installed

  • Argh!

    The following with the appropriatye syntax!
    ExcludeApp ID="OneDrive"

  • Hi

    I have issues with Office365 installation.
    I have following config: prntscr.com/bk6rl3
    After a long time of downloading, the setup gives me following error: prntscr.com/bk6pom

    Any ideas?

  • @VG

    Thanks for the useful information.

    I have had downloaded the image file of Office 2016 Home & Student Edition from office.com/setup but the setup file is always downloading updates from Microsoft server hence unable to install it on an offline (non-internet) notebook.

    Therefore, please help me to configure setup/installer for an offline notebook.

    Thanks & Regards

  • I'm trying to deploy O365 via GPO using the 2016 Deployment tool. I got it to work and launch the installer, but then it seems to hang for hours. I turned on logging an redirected to a file and am getting a bunch of errors seen below. I tried running the script manually and not in silent mode and it still hangs for hours on the installation screen. Any help would be greatly appreciated.

    Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:34:59.225 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:34:59.225 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:34:59.225 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:34:59.225 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:34:59.225 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:34:59.225 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:35:00.563 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:35:00.563 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:35:00.563 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:35:00.563 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:35:00.563 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:35:01.289 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}
    07/06/2016 18:35:01.289 SETUP (0x24c4) 0x21f0 Nexus Transport a426j Unexpected MsoGetRemoteHostNetworkStatusWithUrlType failed {"RemoteHost": "nexus.officeapps.live.com"}

  • Hi VG, many thanks for the tip. Successfully installed. Just one question, can I update Office without worrying about the excluded programs coming back? Thanks

  • Hello VG,

    Thank you for wonderful help.

    Worked Perfectly !

  • @xtasy No, i try update the exclude program will reactivated

  • Hi,

    Within the XML script, how could I notify the destination folder? Everything runs top-notch as you explained; however, I'd like an option to install to another directory/folder instead of the default system drive.

    Your help is as always highly appreciated.

  • Thank you very much, worked like a charm.

Leave a Comment