question

ChethanVenkat-7173 avatar image
0 Votes"
ChethanVenkat-7173 asked ajkuma-MSFT edited

Deploy the "msiexec.exe abc.msi" Package

I need to deploy "ABC.msi" package in Azure web app server but not able to Deploy and not getting detail information in Azure documents as well.

I tried to deploy using "d:/windows/system32>msiexec.exe -i ABCSetup.msi" but it throwing the Access Denied error

I left with no option to resolve this error/deployment issue.

Please help me out on this.

Thanks
Chethan.V

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered ajkuma-MSFT commented

Hi @ChethanVenkat-7173,

You can't deploy MSI's to Azure. That would involve executing and having the permissions to install the package. Furthermore, Static Web Apps (you tagged it as such), can only accept static code deployments of specific runtimes. Only HTML, JavaScript frameworks, CSS, and images are supported; see What you can do with Static Web Apps. For general App Service, for which Static Web Apps are based, run on a Sandbox environment which restricts access to underlying components.

If you're packaging your web application inside an MSI, there are many different ways to deploy your code; from a Zip, FTP, through CI/CD or GitHub actions; just to name a few.

· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ryanchill,

Thanks for the response.

Actually we are deploying the ".msi" package through Azure CICD pipeline and deployment option as 'Run from Package' to azure web app server, since we need to send complete package to client we are following ".msi" format. hence we need to deploy our .net project in ".msi" format itself.

As you said this "That would involve executing and having the permissions to install the package." can you please elaborate it. Permissions is in the context of code signing or other permission in web app server we need to get.

My mistake -- this is not "Static Web Apps" wrongly selected tag.


Please let me know if I am missing anything here and your help will be much appreciate.

Thanks
Chethan.V



0 Votes 0 ·

No worries @ChethanVenkat-7173, I'll retag. When you say...

since we need to send complete package to client we are following ".msi" format

Who is the client? Is it your app service or app services owned by different people? You still can't deploy an MSI to an Azure App Service. You will have to adjust your pipeline to use .zip as instructed on https://docs.microsoft.com/en-us/azure/devops/pipelines/targets/webapp?view=azure-devops&tabs=yaml#deploy-a-web-deploy-package-aspnet.

0 Votes 0 ·

The Client is our customer(end user)

As you said we can not deploy 'msi' into web app service and 'zip deploy' is not in our deployment scope.

In this scenario can Azure VM will be the alternative for our requirement ?
can we deploy ".msi" package through CICD in Azure VM ?


Thanks
Chethan.V

0 Votes 0 ·
Show more comments