Michael Heuberger
Michael Heuberger

Reputation: 872

Office Add-In with configurable options during installation?

Currently I am looking for examples how to write an Office Add-In providing an UI with configurable options for the Add-In alone during installation. And sets them as roaming settings upon once consent is give (submit button).

There is this well-known API for Roaming Settings: https://dev.office.com/reference/add-ins/outlook/RoamingSettings. Plus an API for dialogues, see https://github.com/OfficeDev/office-js-docs-pr/blob/master/docs/develop/dialog-api-in-office-add-ins.md.

With these you can show an UI for configuring options. But my missing piece is how to display this during installation?

In other words: how can we ask the user for some parameters before finalising installation?

Upvotes: 0

Views: 75

Answers (1)

Rick Kirkham
Rick Kirkham

Reputation: 9659

There is not currently any way to handle the installation event. That's an interesting idea and you should request it at Office Developer User Voice.

In the meantime, consider implementing "first run" logic that prompts the user for her preferences. See this Stack question: Is there any best practice how to detect a first run of the app?

Also, RoamingSettings is available only for Outlook.

Upvotes: 1

Related Questions