• Installing a customized click-to-run Office 2013-2016

    Home » Forums » AskWoody support » Microsoft Office by version » Microsoft Office by version – misc » Installing a customized click-to-run Office 2013-2016

    Author
    Topic
    #99336

    Part 1:

    Some of you might have come across the arguably horrible new way Microsoft distributes the regular Office to find out there are no customization anymore with 2013-2016. You don’t want Groove or Outlook installed or you want to install Office on another partition, too bad. Sure, there are some technical advantages to click-to-run, but Office has become such a hassle to install with the way it asks for the product key, it can be quite annoying. Plus, it can be so hard sometimes to avoid logging into Office to activate it you wonder if it is done on purpose to discourage you from not doing it.

    Warning : if you use Office 365, I don’t know if the following applies to you. It might, but I haven’t tested it. This is for the retail version of Office that you pay only once and that comes with only a product key on a card. My instructions are for 2016, but I did it with 2013 too and it works fine.

    If you wonder what version you should get, here is my opinion. I think I could qualify as an Office power user and I don’t find any feature update since 2007 that justify paying for it more than once every 10 years at home, although I love Office and there are sometimes nice features added. So to me, no Office365 that keeps changing. I will pay once for whatever version is selling at the moment I have to buy. 2010 is great, better than 2007 if you find it for cheap and then you don’t need what is below. 2016 is more polished than 2013 and they both offer the ability to have multiple Excel windows seen at the same time. 2013 has ugly uppercases menus.

    There is a way to customize the installation of 2013-2016. I will share what I did right after the usual disclaimer: always do backups, don’t do it if you don’t fully understand what you are doing or if you are not ready to accept full responsibility for it. What is provided here is only information about what I did in case it can help some people do their own research.

    Ok, so you need to create an xml file called Office2016config.xml.

    In it, you put a configuration similar to this one, adapted to your needs:
    <?xml version=”1.0″ encoding=”utf-8″?>
    <Configuration>
    <Add SourcePath=”C:\Office2016″ OfficeClientEdition=”64″ >
    <Product ID=”HomeBusinessRetail”>
    <Language ID=”en-us” />
    <!– everything that is not excluded here but is part of the product ID you chose will be installed –>
    <!– <ExcludeApp ID=”Outlook” /> –>
    <ExcludeApp ID=”OneNote” />
    <ExcludeApp ID=”Lync” />
    <ExcludeApp ID=”Groove” />
    <ExcludeApp ID=”Access” />
    <ExcludeApp ID=”InfoPath” />
    <ExcludeApp ID=”Project” />
    <ExcludeApp ID=”Publisher” />
    <ExcludeApp ID=”SharePointDesigner” />
    <ExcludeApp ID=”Visio” />
    </Product>
    </Add>
    <Updates Enabled=”TRUE” />
    <Display Level=”Full” AcceptEULA=”TRUE” />
    <!–  <Logging Path=”%temp%” />  –>
    <Property Name=”AUTOACTIVATE” Value=”1″ />
    </Configuration>

    Please note in this file I specify the 64 bits version (the number 64 in OfficeClientEdition). You might want to use 32 instead if you have legacy add-ins or apps that rely on 32 bits Office. Microsoft recommends using 32 bits.

    However, I found that there was synchronization issues with Outlook and Itunes that could only be resolved by using the 64 bits edition after a bad click-to-run unavoidable update, so I install the 64 bits edition, plus I don’t have any dependency on 32 bits Office. I always ran 64 bits since 2010 and never had an issue, but then again my setup is very simple, I use no legacy software (or software that have legacy code that interacts with Office 32).

    Pay attention to the language version you want to install. I used en-us for English US.

    Note that the <!– beginning a line are comments, so this means this line is ignored. So, in my example, Outlook is installed because the line excluding it is commented. A comment started must be ended with /> if you add one. If you remove one, like if you want to not install Outlook, remove the <!– and remove also the /> at the end of the line.

    Pay attention to the productId. I used the Home and Business version in my example. This is the one that contains Outlook. The one without Outlook is HomeStudentRetail. Those who have Professional might use ProfessionalRetail. Online, you will find other productID, including some for Office 365.

    Now that your file is ready, put it in C:\Office2016 (the path I put in the configuration file and that I will refer to as the setup folder, from which you install).

    Now, download the Office Customization Tool at
    https://www.microsoft.com/en-us/download/details.aspx?id=49030

    Extract the setup.exe file and place it in C:\Office2016.

    Now you can download the files:
    Use a command prompt to go to the setup folder (C:\Office2016). Then type
    setup.exe /download .\Office2016config.xml

    This will take a while to download the setup files.

    3 users thanked author for this post.
    Viewing 2 reply threads
    Author
    Replies
    • #99340

      Now would be a good time to backup this whole C:\Office2016 setup folder and then you can reuse it on other computers if you have more licenses without having to prepare a new config file or download the setup files again.

      Ok, time to install:

      First, if you have a previous trial of Office or any other version, uninstall it and REBOOT.

      Go to the C:\Office2016 folder using an admin command prompt and install:

      setup.exe /configure c:\Office2016\Office2016config.xml (full path required)

      Let the magic operate, then you can delete the install folder.

      Now, you can start Office and activate it. To activate it, you need a product key. What you got on that little card is not a product key, it is an exchange key, a trick to get you to log with a Microsoft Account to retrieve your product key and associate it to you. You don’t have to log in to Office to get your product key. Go to https://setup.office.com/

      Create a Microsoft Account or use an existing one you have. You will have to enter your exchange key, then you will go through some steps to end up choosing how you want to install your Office. You will have an option to see your product key. If you don’t see it, try selecting something like download to install offline and then you will see an option to show your product key. Save that key. It is your real product key in case you need it for reinstall and you don’t want to go back online.

      Now when you start an Office program and you want to activate it, don’t log in using your Microsoft Account, click that you want to use a product key instead and enter that product key. If it doesn’t work, it might be because you didn’t uninstall a trial or didn’t reboot after. In that case, just activate through the command prompt:

      cscript “C:\Program Files\Microsoft Office\Office15\OSPP.VBS” /dstatus gives the status of activation
      cscript “C:\Program Files\Microsoft Office\Office15\OSPP.VBS” /inpkey:<replace this with your product key> to activate using your product key

      If you use 2013 instead of 2016, replace Office15 in the path by Office14.

      All done!

      Now would be a good time to do the registry tweaks I posted under another topic if you are like me and want Office to behave more like 2010 and have nothing to do with being logged in to the cloud when doing your budget on Excel, using Onedrive, sharing/talking about your documents with other LinkedIn users or whatever similar connected thing Microsoft will come up with.

      1 user thanked author for this post.
    • #149811

      I was really looking forward to a clean install of Office 2013 CTR without the extraneous applications that are forced on standard installs. However, I came up with a few frustrations:

      Firstly, the Office Customization Tool mentioned doesn’t contain any setup.exe file, but the Deployment Tool does.

      This line caused a problem – the “.” shouldn’t be there:

      setup.exe /download .\Office2016config.xml

      I didn’t find a problem with the C:\Office201X location part of

      setup.exe /configure c:\Office2016\Office2016config.xml (full path required)

      as I found setup.exe /configure Office201xconfig.xml worked just as well as setup.exe /configure \Office201xconfig.xml or how you have it above.

      Where I did come to grief was installing, with some files not downloaded for some reason.

      I added a Logging entry into the config.xml file, which showed me that a particular cab file hadn’t been downloaded, and downloading failed; and “Looking for existing client. Did not find an existing client. Downloading a new one.” (or words to that effect – it’s not a copy>paste).

      After searching online, I have tried it with and without the firewall being active; the log file assures there is enough disk space, etc. But now I’m now wondering if I have to be resigned to a stock-standard CTR installation after all…? Pity.

      • #149946

        I happened to be lucky and saw your post looking at the newly back recently active topics and saw a response to this old post.

        I didn’t experience the issues your describe, but I have mostly done this using 2016.

        Maybe one thing that happened was when I downloaded something but wanted to install something else. I had to be careful to have the same configuration file (i.e. not download the 32 bits and then try to install the 64 bits version).

        One thing you could try is to download the setup on another computer. I do that and then copy it to a disc or USB key and then I can just copy the install files in C: (I think it had to be in C:\Office2016 to avoid issues) on another computer. It works well.

        I find it interesting you didn’t have the path issues. I didn’t write full path required for no reason. I think I got issues when I omitted it. But then again, maybe it was the first time I tried the tool that I had issues and they improved it since, as I was an early adopter of it. Did you try using the full path for the download portion? Removing the .\ might create issue with the download?

         

        1 user thanked author for this post.
        • #149986

          I’ll give it another try – thks for the further tips.

          I did find one post regarding using it with SCCM (not something I’ve used before) which says to edit the config.xml file after the download, to remove the sourcepath – worth giving a try too, perhaps.

        • #150131

          Ok, I had success, to a certain point, after downloading the files again.

          Firstly, I presume there was some conflict in the config.xml when unsuccessfully using the following download instruction:

          C:\Office201x>setup.exe /download .\config.xml

          However, after subsequent changes, it did work correctly today, downloading cab files that weren’t included in yesterday’s attempt (that could be more than just one issue?).

          Then I was able to install offline, by using the following instruction:

          C:\Office201x>setup.exe /configure "C:\Office201x\configinstall.xml"

          The original .xml was amended to remove the sourcepath entry and saved with a new name, and it worked fairly well.

          I was able to exclude having OneNote and Outlook installed, but try as I might, OneDrive still installed, despite including ExcludeApp ID=”OneDrive” in the config.xml.

          Thanks for the additional tips from @AlexEiffel and a number of retries and tweaks, I am at a point when I have been able to activate, and will have to tweak what I can to disable OneDrive…

          1 user thanked author for this post.
          • #150645

            Onedrive is the wart of Windows. You remove it and it seems to always grow back, from Office or Windows itself.

            Here is what I do:

            I install Office first because it wants to install Onedrive.

            I then uninstall Onedrive from programs and features.

            On Windows Pro, you go to gpedit in computer, admin template, windows components, Onedrive and then you prevent its use.

            On Windows Home, a registry edit:
            [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive]
            “DisableFileSyncNGSC”=dword:00000001 ; for Win 8.1
            “DisableFileSync”=dword:00000001 ; prevents using Onedrive to store files
            “DisableLibrariesDefaultSaveToOneDrive”=dword:00000000 ; they say 0 deactivates saving to Onedrive, although it doesn’t seem logical

            There is a few policies in the registry that apply to Onedrive. On Windows Home, you set the registry, on Pro it is better to manually use gpedit or use lgpo to load them (see my very long topic about the differences between tweaking a standalone PC on Home version vs Pro version if you wonder why). If you use LGPO, just import the following from a text file using lgpo.exe /t mytextfile.txt:

            Computer
            Software\Policies\Microsoft\Windows\OneDrive
            DisableFileSyncNGSC
            DWORD:1

            Computer
            Software\Policies\Microsoft\Windows\OneDrive
            DisableFileSync
            DWORD:1

            Computer
            Software\Policies\Microsoft\Windows\OneDrive
            DisableLibrariesDefaultSaveToOneDrive
            DWORD:0

            See this post if you want more information:
            https://www.askwoody.com/forums/topic/tweaking-standalone-pcs-htfdlgpw-or-how-to-feel-da-local-group-policys-working/

            ===
            You can right-click on the taskbar icon and select don’t start automatically, and unlink Onedrive.

            If it still shows in file explorer, you can use the registry to hide it:
            [HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
            “System.IsPinnedToNameSpaceTree”=dword:00000000
            [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
            “System.IsPinnedToNameSpaceTree”=dword:00000000

            You might want to skip receiving ads for Onedrive too ine File Explorer?
            [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
            “ShowSyncProviderNotifications”=dword:00000000

            Then you will be quiet, maybe until the next feature update of Windows.

            • #150680

              Thanks @alexeiffel, I’ll check that out in a few days.

              However, my first observation is that I never got a taskbar icon, so maybe my excludeapp entry did help? I do have an entry in the Open & Save screens, which I didn’t have in the old setup.

              It’s all a good learning experience, if one has the time to do it 😉

              1 user thanked author for this post.
    • #149963

      Here are some registry settings I use. Replace the 16.0 with 15.0 for Office 2013:

      Windows Registry Editor Version 5.00

      ; Deactivates the ability to sign in in Office 2016. To reactivate, just set the value to 0
      [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\SignIn]
      “SignInOptions”=dword:00000003

      ; from 2 to 0 to deactivate external file access and sharepoint integration
      [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Internet]
      “UseOnlineContent”=dword:00000000

      ; no annoying start screen for any Office app
      [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\General]
      “DisableBootToOfficeStart”=dword:00000001

      ; deactivate the annoying animations
      [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Graphics]
      “DisableAnimations”=dword:00000001

      ; prevents asking to save each time you open an older format Excel file
      [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options]
      “FullCalcOnLoadOldFile”=dword:00000001

       

    Viewing 2 reply threads
    Reply To: Installing a customized click-to-run Office 2013-2016

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: