Skip to content

Commit 46af757

Browse files
[All Hosts] (publish) desktop installation links (#5066)
* [All Hosts] (publish) desktop installation links * various fixes * typo * Update docs/publish/publish-office-add-ins-to-appsource.md Co-authored-by: Alison McKay <[email protected]> --------- Co-authored-by: Alison McKay <[email protected]>
1 parent 5d620de commit 46af757

File tree

1 file changed

+52
-15
lines changed

1 file changed

+52
-15
lines changed

docs/publish/publish-office-add-ins-to-appsource.md

Lines changed: 52 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Publish your Office Add-in to Microsoft AppSource
33
description: Learn how to publish your Office Add-in to Microsoft AppSource and install the add-in with a Windows app or COM/VSTO add-in.
44
ms.topic: concept-article
5-
ms.date: 11/16/2024
5+
ms.date: 02/24/2025
66
CustomerIntent: As a developer, I want to publish my Office Add-in to Microsoft AppSource so that customers can deploy and use my new add-in.
77
---
88

@@ -27,36 +27,73 @@ When your add-in is available in AppSource, there are two further steps you can
2727

2828
### Provide an installation link
2929

30-
After you publish to Microsoft AppSource, you can create an installation link to help customers discover and install your add-in. The installation link provides a "click and run" experience. Put the link on your website, social media, or anywhere you think helps your customers discover your add-in.
30+
After you publish to Microsoft AppSource, you can create an installation link to help customers discover and install your add-in. The installation link provides a "click and run" experience. Put the link on your website, social media, or anywhere you think helps your customers discover your add-in. When users select the link, the Office application opens with a new document and your add-in is installed without the need for users to search for it in Microsoft AppSource and install it manually.
3131

32-
The link opens a new Word, Excel, or PowerPoint document in the browser for the signed-in user. Your add-in is automatically loaded in the new document so you can guide users to try your add-in without the need to search for it in Microsoft AppSource and install it manually.
32+
> [!NOTE]
33+
> Installation links can only be created for Excel, PowerPoint, and Word add-ins.
34+
35+
There are two styles of links depending on whether you want the Office application to open in Office on the web or on desktop Office.
36+
37+
- [Open in Office on the web](#open-in-office-on-the-web)
38+
- [Open in Office on Windows or Mac](#open-in-office-on-windows-or-mac)
39+
40+
> [!NOTE]
41+
> The style of link determines only the platform that opens, not the platforms where the add-in is installed. The add-in is installed on every platform that supports all of the requirement sets that are specified in its manifest. See [Office versions and requirement sets](../develop/office-versions-and-requirement-sets.md).
42+
43+
#### Open in Office on the web
3344

3445
To create the link, use the following URL template as a reference.
3546

3647
`https://go.microsoft.com/fwlink/?linkid={{linkId}}&templateid={{addInId}}&templatetitle={{addInName}}`
3748

38-
Change the three parameters in the previous URL to support your add-in as follows.
49+
Change the placeholders in the URL as follows.
3950

4051
- **linkId**: Specifies which web endpoint to use when opening the new document.
4152

4253
- For Word on the web: `2261098`
4354
- For Excel on the web: `2261819`
4455
- For PowerPoint on the web: `2261820`
4556

46-
**Note:** Outlook is not supported at this time.
57+
- **addInId**: The ID of your add-in as listed in AppSource.
58+
- **addInName**: The full title of your add-in. This must be URL-encoded.
4759

48-
- **templateid**: The ID of your add-in as listed in Microsoft AppSource.
49-
- **templatetitle**: The full title of your add-in. This must be HTML encoded.
50-
51-
For example, if you want to provide an installation link for [Script Lab](https://appsource.microsoft.com/product/office/wa104380862), use the following link.
60+
For example, the following is an installation link for [Script Lab](https://appsource.microsoft.com/product/office/wa104380862).
5261

5362
[https://go.microsoft.com/fwlink/?linkid=2261819&templateid=WA104380862&templatetitle=Script%20Lab,%20a%20Microsoft%20Garage%20project](https://go.microsoft.com/fwlink/?linkid=2261819&templateid=WA104380862&templatetitle=Script%20Lab,%20a%20Microsoft%20Garage%20project)
5463

5564
The following parameter values are used for the Script Lab installation link.
5665

57-
- **linkid:** The value `2261819` specifies the Excel endpoint. Script Lab supports Word, Excel, and PowerPoint, so this value can be changed to support different endpoints.
66+
- **linkid:** The value `2261819` specifies the Excel endpoint. Script Lab supports Word, Excel, and PowerPoint, so this value can be changed to support different endpoints.
5867
- **templateid:** The value `WA104380862` is the Microsoft AppSource ID for Script Lab.
59-
- **templatetitle:** The value `Script%20Lab,%20a%20Microsoft%20Garage%20project` which is the HTML encoded value of the title.
68+
- **templatetitle:** The value `Script%20Lab,%20a%20Microsoft%20Garage%20project` is the URL-encoded value of the title.
69+
70+
#### Open in Office on Windows or Mac
71+
72+
To create the link, use the following URL template as a reference.
73+
74+
`{{appName}}:https://api.addins.store.office.com/addinstemplate/{{language}}/{{correlationID}}/{{addinId}}/none/{{addinName}}.{{fileFormat}}?omexsrctype=1`
75+
76+
Change the placeholders in the URL as follows.
77+
78+
- **appName:** This parameter specifies which Office application is opened when users click the link.
79+
80+
- For Word: `ms-word`
81+
- For Excel: `ms-excel`
82+
- For PowerPoint: `ms-powerpoint`
83+
84+
- **language:** This is the language of the add-in. For example: `de-DE`, `ja-JP`, or `zh-CN`.
85+
- **correlationID:** A GUID for diagnostic purposes. For example, "7bf846ec-905a-5edd-b162-83498f9a8674". Use a GUID generation tool. The diagnostic purpose is defeated if multiple users have the same GUID, so we recommend you to generate it at runtime and make it different per click.
86+
- **addInId:** The ID of your add-in as listed in AppSource. *This parameter is case-sensitive. Use uppercase letters.*
87+
- **addInName:** The full name of your add-in. This must be URL-encoded.
88+
- **fileFormat:** Specifies the format of the file that is created.
89+
90+
- For Word: `docx`
91+
- For Excel: `xlsx`
92+
- For PowerPoint: `pptx`
93+
94+
For example, the following is an installation link for Script Lab in Word on Windows with en-US as the language.
95+
96+
`ms-word:https://api.addins.store.office.com/addinstemplate/en-US/228a829b-69d7-45f4-a338-c6aba330ec7e/WA104380862/none/Script%20Lab,%20a%20Microsoft%20Garage%20project.docx?omexsrctype=1`
6097

6198
### Include the add-in in the installation of a Windows app or COM/VSTO add-in
6299

@@ -69,7 +106,7 @@ The following are the basic steps:
69106

70107
#### Join the certification program (recommended)
71108

72-
We recommend that you join the [developer certification program](/microsoft-365-app-certification/docs/certification). Among other things, this will enable your installation program to run smoother. For more information, see the following articles:
109+
We recommend that you join the [developer certification program](/microsoft-365-app-certification/docs/certification). Among other things, this enables your installation program to run smoother. For more information, see the following articles:
73110

74111
- [Get Started in Partner Center for Microsoft 365, Teams, SaaS, and SharePoint apps](/microsoft-365-app-certification/docs/userguide)
75112
- [Microsoft 365 App Compliance Program](https://developer.microsoft.com/microsoft-365/app-compliance-program)
@@ -336,7 +373,7 @@ namespace SampleProject
336373

337374
##### Include privacy terms in your terms & conditions (required for certified developers)
338375

339-
Skip this section if you are not a member of the certification program, but *it is required if you are*.
376+
Skip this section if you aren't a member of the certification program, but *it is required if you are*.
340377

341378
Include in the installation program code to add an entry like the following example to the Windows Registry.
342379

@@ -369,12 +406,12 @@ To implement this, just make two small changes in the code sample in the previou
369406

370407
#### The user's installation experience
371408

372-
When an end user runs your installation executable, their experience with the web add-in installation will depend on two factors.
409+
When an end user runs your installation executable, their experience with the web add-in installation depends on two factors.
373410

374411
- Whether you're a [certified Microsoft 365 developer](/microsoft-365-app-certification/docs/certification).
375412
- The security settings made by the user's Microsoft 365 administrator.
376413

377-
If you're certified and the administrator has enabled automatic approval for all apps from certified developers, then the web add-in is installed without the need for any special action by the user after the installation executable is started. If you're not certified or the administrator hasn't granted automatic approval for all apps from certified developers, then the user will be prompted to approve inclusion of the web add-in as part of the overall installation. After installation, the web add-in is available to the user in Office on the web as well as Office on Windows.
414+
If you're certified and the administrator has enabled automatic approval for all apps from certified developers, then the web add-in is installed without the need for any special action by the user after the installation executable is started. If you're not certified or the administrator hasn't granted automatic approval for all apps from certified developers, then the user is prompted to approve inclusion of the web add-in as part of the overall installation. After installation, the web add-in is available to the user in Office on the web as well as Office on Windows.
378415

379416
If you're combining the installation of a web add-in with a COM/VSTO add-in, you need to think about the relationship between the two. For more information, see [Make your Office Add-in compatible with an existing COM add-in](../develop/make-office-add-in-compatible-with-existing-com-add-in.md).
380417

0 commit comments

Comments
 (0)