Side-load (deprecated)
Overview
The side-load method allows you to bypass the Microsoft Store and still use web add-ins.
Note: Side-load setups only work on Windows clients.
How does the Add-in Store work
To install a web add-in from the store, Microsoft Word downloads its manifest.xml, a file containing the end-points of the web application and UI enhancements to Word.
When the end-user interacts with the UI enhancements, Microsoft Word will load the web application in a sandboxed web view that will access the JS API.
Using the add-in store to load manifest.xml can be an issue if we want to prevent end-users from installing any web add-ins that are publicly listed.
How does side-loading work
Side-loading also uses a manifest.xml.
Microsoft will allow the end-user to download any manifest.xml from a trusted catalog.
In this setup, the trusted catalog will be a network location. The trusted catalog cannot be a local folder; it has to be a network location.
A Side-load setup is the only way to load a manifest.xml without publishing it to the store or using it.
Steps to follow
To side-load a web addin in Microsoft Word, you will need to:
- Download the manifest.xml from TermLynx and put it on a file share
- Add the network location of the file share as a trusted catalog within Microsoft Word on the end-user computer
- Add the web add-in to the end-users Microsoft Word
Microsoft Documentation
If you would like additional information regarding side-loading, you can find some from Microsoft on this link:
Side-load Overview
1. Catalog configuration
- Download the TermLynx manifest.xml
- Move the manifest.xml on a file share
- Make sure that the end-user will have the authorization to read the file share
2. Adding a trusted Catalog
The next step is to add the network path of the file share as a trusted add-in catalog on the end-user computer.
Step by Step (using the UI)
- Open Microsoft Word from the end-user computer
- Click on File
- Click on Options
- Click on Trust Center
- Click on Trust Center Settings
- Click on Trusted Add-in Catalogs
- Add the network location of the directory containing your manifest.xml
- Click OK
- Open a new document
- Click Insert on the ribbon
- Click Get Add-ins
- Click Shared Folder
- Click on TermLynx
- Click Add at the lower right corner of the dialog
Using scripts
To add the catalogue, you will add entries to the registry. You can do it with a PowerShell script or execute a REG file.
Powershell
# Path to the network folder holding the manifest.xml
$networkPath = "\\some-server\some-network-path"
# Can be any GUID
$guid = New-Guid
# Path for trusted catalogues
$entryPath = HKCU:\\Software\Microsoft\Office\16.0\WEF\TrustedCatalogs
# Creating the registry item and setting values
$entry = New-Item -Path $entryPath -Name $guid -Force
$entry.SetValue("Id", $guid)
$entry.SetValue("Url", $networkPath)
$entry.SetValue("Flags", 1)
REG file
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\WEF\TrustedCatalogs\{GUID}]
"Id"="{GUID}"
"Url"="{NETWORK_PATH}"
"Flags"=dword:00000001
3. Install the web add-in
Finally, once you have added the trusted catalog to Microsoft Word, you will need to load the TermLynx web add-in.
Step by Step
- Open Microsoft Word
- Open an empty document
- Open the Insert ribbon
- Click on My Add-ins
- Click on FILE SHARE
- Click Refresh in the upper right corner
- Click on TermLynx and then click on Add
If the "insert" button is disabled in your Microsoft Word, please make sure to enable Web Add-ins.