Skip to main content

Deploying your app with Intune or another MDM

If the machines you want on the network are managed, you can push your Wi-DAS-enabled app to them as an MSIX package through Microsoft Intune or another MDM. Nobody has to install anything by hand. The app then onboards each user with the SDK, just as it would on an unmanaged machine.

This is one of two ways to use an MDM with Wi-DAS. The other skips the app altogether: the MDM pushes the client certificate and the Passpoint profile itself. See Configuring Passpoint with Intune or another MDM. Pick one per machine, because the two can't share one (see Using both options).

What deploying the app does and doesn't do​

Your MDM installs the package with no prompts. That's all it does. The machine joins the network only once your app has run for the signed-in user and called Connect(), and Connect() needs your Broker to vouch for that user (see Brokered issuance).

So for a rollout that needs nobody to click anything, your app has to:

  • start without the user opening it, for example when they sign in to Windows
  • sign the user in to your Broker without asking them, for example with the Microsoft Entra account they're already signed in to Windows with
  • call Status() on every launch, and Connect() only when the state is None, Expired or Revoked

How you do each of these is up to you. The SDK doesn't start your app or sign anyone in.

Before you package​

Your package needs everything Setup describes for MSIX:

  • runFullTrust, so the SDK can install the certificate and the profile.
  • The certificate-store exclusion and unvirtualizedResources, if your Broker returns the issuing CA. Without them the CA lands in the package's private copy of the registry, and Windows can't select the certificate. See MSIX: let the issuing CA reach the real certificate store.
  • A MinVersion of 10.0.18362.0 (Windows 10 1903) in TargetDeviceFamily when you use that exclusion, since earlier versions ignore it. Without the exclusion, the floor is MSIX's own: Windows 10 1709. (The SDK's floor of Windows 10 1607 only matters for apps you don't package as MSIX.)

runFullTrust and unvirtualizedResources are restricted capabilities, but they only need Microsoft's approval for a Microsoft Store listing. A package you deploy yourself can declare them freely.

Two more things matter once an MDM is doing the installing:

  • Bundle what your app needs. An MDM installs dependencies only if you hand them over. The simplest route is a self-contained .NET publish (<SelfContained>true</SelfContained> with a RuntimeIdentifier), so the machine needs no .NET runtime and the package needs no framework packages. If your UI relies on WebView2, make sure the runtime is on the machine: it ships with Windows 11 but has to be installed on Windows 10.
  • Raise the version for every release. The Version in your package's Identity has to go up each time, or your MDM won't deploy the new package. A lower version than the one installed is refused.

Sign the package​

Windows won't install an unsigned MSIX, however it's delivered. The Publisher in your manifest's Identity must match the signing certificate's subject exactly.

The machine also has to trust the signing certificate:

  • A code-signing certificate from a public CA works as it is, because Windows already trusts those CAs. This is the simplest choice.
  • Your own certificate (from your internal CA, or self-signed) has to be trusted on every machine first. Push it into the machine's Trusted People store, which trusts it for app packages only.

Avoid putting a self-signed signing certificate in the machine's root store. It works, but the machine then trusts that certificate for anything it signs.

Sideloading is on by default in current versions of Windows 10 and 11, so you usually don't need to change anything. If your organisation has switched it off, turn it back on with the ApplicationManagement/AllowAllTrustedApps policy (Trusted app installation in Intune's device restrictions).

Deploy with Intune​

1. Trust your signing certificate (own certificates only)​

Skip this if your certificate comes from a public CA.

Intune's trusted certificate profile only offers the root and intermediate stores, so use a custom profile to reach Trusted People:

  1. In the Intune admin center, go to Devices → Configuration → Create → New policy.
  2. Choose Windows 10 and later, then Templates → Custom.
  3. Add an OMA-URI setting:
FieldValue
OMA-URI./Device/Vendor/MSFT/RootCATrustedCertificates/TrustedPeople/{thumbprint}/EncodedCertificate
Data typeString
ValueThe certificate (.cer, no private key), Base64-encoded on one line with no headers

{thumbprint} is the certificate's SHA-1 thumbprint as 40 hex characters with no spaces.

  1. Assign the profile to the same devices you'll deploy the app to.

2. Add the app​

  1. Go to Apps → All apps → Create, and choose Line-of-business app as the app type.
  2. Upload your signed .msix or .msixbundle. Intune reads the name, publisher and version from it.
  3. Set App install context:
    • Device installs the app for every user of the machine. Assign it to device groups, as Required.
    • User installs it for each assigned user when they sign in. Assign it to user groups.
  4. Assign it as Required so it installs without asking anyone.

Whichever context you pick, the SDK's work stays per-user: each user who signs in gets their own certificate and profile when your app calls Connect() for them.

Intune can only deploy apps to machines enrolled in it.

If your app is in the Microsoft Store​

If you also list your app in the Microsoft Store, you can deploy the Store listing instead. Add it as a Microsoft Store app (new) and assign it as Required. You don't need to sign anything or trust a certificate yourself, and Store updates reach machines automatically.

Deploy with another MDM​

Any MDM that can send Windows CSP commands can do the same with the EnterpriseModernAppManagement CSP. Host the package somewhere the machines can reach (HTTPS, a UNC share or a local path), then send:

<Add>
<CmdID>1</CmdID>
<Item>
<Target>
<LocURI>./Device/Vendor/MSFT/EnterpriseModernAppManagement/AppInstallation/{PackageFamilyName}</LocURI>
</Target>
</Item>
</Add>
<Exec>
<CmdID>2</CmdID>
<Item>
<Target>
<LocURI>./Device/Vendor/MSFT/EnterpriseModernAppManagement/AppInstallation/{PackageFamilyName}/HostedInstall</LocURI>
</Target>
<Meta><Format xmlns="syncml:metinf">xml</Format></Meta>
<Data>
<Application PackageUri="https://apps.example.com/YourApp_1.2.0.0_x64.msix" />
</Data>
</Item>
</Exec>
  • ./Device/... provisions the app for every user of the machine. Use ./User/... to install it for the enrolled user only.
  • Send the Add first. It lets the MDM remove the app cleanly if the machine is unenrolled.
  • Dependencies, if your package has any, go inside Application as <Dependencies><Dependency PackageUri="..." /></Dependencies>.

If you use your own signing certificate, trust it the same way as in Intune, through ./Device/Vendor/MSFT/RootCATrustedCertificates/TrustedPeople/{thumbprint}/EncodedCertificate.

To update the app, send the same HostedInstall again with the new package's URI. To remove it, send a Delete for ./Device/Vendor/MSFT/EnterpriseModernAppManagement/AppManagement/AppStore/{PackageFamilyName} (or the ./User/... path, if that's how you installed it). Removing an app you provisioned through ./Device/... stops it reaching new users, but users who already have it keep it.

Microsoft's Enterprise app management page has the full detail, including status reporting.

Updating the app​

Raise the package version, then upload the new package to the same app in your MDM. In Intune, open the app's Properties, edit App information and select the new file. Machines pick it up at their next check-in.

An update doesn't touch anything the SDK installed. The certificate, the profile and the device key all live outside the package, so users stay connected through the update.

Removing the app​

Uninstalling the package, through an Intune Uninstall assignment or your MDM's equivalent, removes the app and nothing else. The Passpoint profile, the client certificate and the device key stay on the machine, and it keeps joining the network until the certificate expires or is revoked. When your app is uninstalled explains why, and what to do.

In short:

  • To take a user or machine off the network, ask Wi-DAS to revoke the certificate. Removing things from the machine doesn't cut off access.
  • To keep machines tidy, have your app call Disconnect() before you remove it, for example by shipping a final release that disconnects on launch.
  • If the app has already gone, run the cleanup script through your MDM to clear what it left.

Checklist​

  • Package declares runFullTrust, plus the certificate-store exclusion and unvirtualizedResources if your Broker returns the issuing CA
  • MinVersion is at least 10.0.18362.0 if you use the exclusion
  • .NET (and anything else your app needs) is bundled or already on the machines
  • Package is signed, and Publisher matches the certificate's subject
  • Machines trust the signing certificate
  • App is assigned as Required
  • Your app starts, signs the user in, checks Status() and calls Connect() when needed, without the user doing anything
  • Your Broker is registered with Wi-DAS and ready for a fleet's worth of enrolments (see rate limits)