Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install manifest with setup.exe #11959

Closed
CodeCube0 opened this issue Jul 4, 2024 · 5 comments
Closed

Install manifest with setup.exe #11959

CodeCube0 opened this issue Jul 4, 2024 · 5 comments
Assignees

Comments

@CodeCube0
Copy link

CodeCube0 commented Jul 4, 2024

I would like to try to create a setup.exe that allows you to install the add-in manifest directly into the client of the user running it, but I can't find anything on the internet or in the forums. I would like to know if there is some way to do it or if there is already some tool that allows you to do it. I know distribution is done through other processes but I would like to try a different approach if possible.

I noticed that using the command "npx @microsoft/teamsapp-cli install --xml-path manifest.xml" it is possible to install the add-in manifest in sideload mode, there is the possibility of doing so without the form appearing entering user credentials? Maybe taking them from somewhere?

I noticed that on some PCs it is not possible to start the local server which runs at the following path "http://localhost:53487" is there a possibility of doing it differently?

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Jul 4, 2024
@jayzhang
Copy link
Member

jayzhang commented Jul 8, 2024

@CodeCube0 Thanks for feedback. Two questions to confirm your requirements:

  1. You need a way to install the add-in manifest in non-interactive mode that directly read user credentials from some place?
  2. What do you mean by doing it differently instead of running the local server for local sideloading? Do you mean sideload from a remote server deployed beforehand?

@jayzhang jayzhang added the needs more info Need user to provide more info label Jul 8, 2024
@CodeCube0
Copy link
Author

Hello @jayzhang for your first question: Yes I would need to run the manifest.xml installation silently without user interaction. I would like to recover the Microsoft user logged into the Windows PC if possible so as not to disturb him during the installation.

for your second question: I noticed that when the credentials are requested to log in to the Microsoft account and retrieve the authentication token, a redirect is performed to a local server which "I think" is performed via nodejs. There wouldn't be a different way to do it

@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs more info Need user to provide more info label Jul 8, 2024
@jayzhang
Copy link
Member

jayzhang commented Jul 8, 2024

@CodeCube0 Thanks for clearify. Is it OK for you if: we provide a way to login without interaction. Prerequisite is you need to turn off the Multi Factor Authentications for your M365 account and set environment variables for your m365 credential (M365_ACCOUNT_NAME, M365_ACCOUNT_PASSWORD). Then you could execute teamsapp install xxx without need for sign in interaction. We could enable this feature in the next release of TTK.

@CodeCube0
Copy link
Author

Sure, that would be great. A thousand thanks @jayzhang

@MuyangAmigo MuyangAmigo removed the needs attention This issue needs the attention of a contributor. label Jul 10, 2024
@jayzhang
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants