Install manifest with setup.exe
Opened this issue · 4 comments
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?
@CodeCube0 Thanks for feedback. Two questions to confirm your requirements:
- You need a way to install the add-in manifest in non-interactive mode that directly read user credentials from some place?
- 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?
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
@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.