How to deploy Maui App to client to install without turning on developer mode?

Lohith K K 110 Reputation points
2023-09-01T12:01:17.73+00:00

I have developed a .NET MAUI windows application. Now I want to supply the same to the client to use it in their company for multiple users. I have created appx package and delivered the same but with this package to install the software user need to turn on developer mode in their machine. But, due to security reason client management do not want to turn on the developer mode.

How can I resolve this issue? How to install app without turning on the developer mode?
Some more info which may help: Client is using company portal to list all their applications. With the help of Microsoft Intune, they are adding the application into company portal.

Also, I need to install the application from company portal without user intervention. As of now PowerShell window pops up and user needs to accept the question to install the application. It will ask permission for certificate installation.

Developer technologies .NET .NET MAUI
Microsoft Security Intune Other
{count} votes

Accepted answer
  1. Rob Caplan - MSFT 6,032 Reputation points Microsoft Employee Moderator
    2023-09-06T00:00:19.78+00:00

    If you're getting a PowerShell message about turning on developer mode, it's because you're running a script to do so. This is likely the Add-AppDevPackage.ps1 script that Visual Studio generates when creating an appx. That script shouldn't be used for production. It is designed for development / test deployments, and two of the three things it adds to the install are turning on developer mode and trusting your test certificate. Neither of these are needed or appropriate for production.

    For production deployment with Intune, you (or more likely, your IT team) will need to sign the app with a trusted certificate and then deploy the MSIX and its dependencies. See Distribute your MSIX in an enterprise environment - Microsoft Intune.

    If you need more help on configuring Intune, you'll probably need to post a question specifically about that under the appropriate Intune tag.


1 additional answer

Sort by: Most helpful
  1. Leo Wagner de Souza 696 Reputation points
    2023-09-01T13:26:48.8866667+00:00

    Hello @Lohith K K !

    Please note that the correct output for your MAUI Windows App is a MSIX file.

    The Package.appxmanifest is just a configuration file, not a deployment one.

    Normally the MSIX file should be under your bin/release folder after a successful build or publish.

    Here, you will find two different ways to publish a MAUI windows app:

    https://learn.microsoft.com/en-us/dotnet/maui/windows/deployment/overview

    To install a MSIX package using PowerShell, refer to this page, or create a new question on the appropriate tag:

    https://learn.microsoft.com/en-us/windows/msix/desktop/powershell-msix-cmdlets


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.