Skip to content

BUG: office-addin-debugging stop does not properly uninstall Outlook add-in #1004

Description

@channeladam

Prerequisites

Please answer the following questions before submitting an issue.

  • I am running the latest version of Node and the tools
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Expected behavior

The outlook add-in should have been uninstalled / unacquired.

Current behavior

Running npx office-addin-debugging stop manifest.json does not properly uninstall the outlook add-in.

$ npx office-addin-debugging stop manifest.json

Debugging is being stopped...
running: npx -p @microsoft/m365agentstoolkit-cli atk uninstall --mode manifest-id --manifest-id 19bfdd21-31c2-4d12-897f-bf9082c96ed8 --interactive false


Successfully uninstalled!

If I then manually run

npx -p @microsoft/m365agentstoolkit-cli atk uninstall --mode manifest-id --manifest-id 19bfdd21-31c2-4d12-897f-bf9082c96ed8 --interactive false --options m365-app

(note the addition of --options m365-app)
it actually uninstalls it:

$ npx -p @microsoft/m365agentstoolkit-cli atk uninstall --mode manifest-id --manifest-id 19bfdd21-31c2-4d12-897f-bf9082c96ed8 --interactive false --options m365-app
Microsoft 365 Application of Title ID: U_ab518969-b81c-b2ab-9f58-27409b1f8b5f successfully uninstalled.
The uninstallation of the Microsoft 365 Application may be delayed.

office-addin-debugging stop is not adding --options m365-app to the call to atk uninstall

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. create an outlook task pane add-in via yo office (following the https://learn.microsoft.com/en-us/office/dev/add-ins/develop/yeoman-generator-overview)
  2. npm start
  3. close outlook
  4. npm stop
  5. either restart outlook and wait a minute and see the add-in is still there, or manually run atk uninstall with --options m365-app to see it properly uninstall it (and not error because it doesn't exist).

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Operating System: Windows 11
  • Node version: 24
  • Office version: latest
  • Tool version: office-addin-debugging 6.1.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions