Archive for the ‘Office365’ Category

Install only some parts of Office 2016 and 2013

From 2013 version Microsoft Office has the nasty default of install everything, while in the past it was possible to choose what to install.
Sometimes in a test virtual machine the space is limited, and i needed to use only Word and Outlook.
Fortunately there are 2 Office Deployment tools:
Office 2013 Deployment Tool
Office 2016 Deployment Tool
With the above links it is downloaded an exe file, which extracts 2 files setup.exe and configuration.xml in a folder of your choice.
In order to install only Word and Outlook 2016 i configured the xml file as:

<Add SourcePath="C:\Work\Office\" OfficeClientEdition="32" >
<Product ID="ProPlusRetail">
<Language ID="en-us" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="Excel" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="InfoPath" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneNote" />
<ExcludeApp ID="PowerPoint" />
<ExcludeApp ID="Project" />
<ExcludeApp ID="Publisher" />
<ExcludeApp ID="SharePointDesigner" />
<ExcludeApp ID="Visio" />

Then i launched, in the folder where are placed the 2 files setup.exe and configuration.xml:

setup /configure configuration.xml

In this case i used the license key from my Action Pack, i tried to use “O365ProPlusRetail” as Product ID but my Office 365 working serial was not recognized: could be that the 365 serial from the Action Pack is not valid in this context for some reason.
I discovered also this Configuration XML Editor:

But my simple xml has worked.

Categories: Office, Office365

Error in Delve (Office 365)

A curious error message:

Categories: Office365

Testing problems with SharePoint 365

I was trying to develop an Add-in on SharePoint online, the version that comes with Office365, after a long experience with SharePoint on premise.
The first thing I tried was the obvious HelloWorld in Vs2015:

specifying a hosted version:


Some changes to code, and immediately tried to launch with F5…error!:

error occurred in deployment step 'install sharepoint add-in' sideloading is not enabled

Ok, the story is : The site collection should be based on “Developer Site” template or you have to enable sideloading feature.
Sideloading apps is not secure.
The main reason for blocking sideloading by default on non-developer sites is the risk that faulty apps pose to their host.
Apps have the potential to damage site collections.
Then apps should be sideloaded only in dev/test environments, never in production.
Anyway is faster to immediately try our code, so the first thing is to download and install the SharePoint Online Management Shell.
Done this, we can download the PowerShell scripts from here.
These scripts must be changed in the initial part, where are provided url, user, password; you can press Return for the questions so are used the cabled values:

if ($siteurl -eq '') {
    $siteurl = ''
    $username = ''
    $password = ConvertTo-SecureString -String '<yourpwd>' -AsPlainText -Force

Launched from the SharePoint Online Powershell, another error….:

Error encountered when trying to enable SideLoading feature https://****** : Exception calling "ExecuteQuery" with "0" argument(s): "For security reasons DTD is
prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method."

I tried to launch in Powershell

set-ExecutionPolicy Unrestricted

But still the error, and probably is not requested: i was staring at the screen, thinking to return to my ancient job as plumber (yes.. when i was very young, MS-DOS was recently commissioned from IBM to Bill Gates while i was trying to make some money for the motorcycle).

After some searches i found the incredible solution: it seems that the “DTD is prohibited..” is related to a DNS problem in order to reach your tenant; so the solution is to use the Google DNS couple in your pc network setting:

So, the Powershell activation was now running ok:

And magically , launching with F5:

Categories: Office365, SharePoint