Selling a Windows App Outside the Microsoft Store: Code Signing, SmartScreen, Installers and License Keys
SmartScreen and Smart App Control decide whether a downloaded Windows app even starts, and EV certificates no longer skip the warnings. How to sell a Windows app from your own site: Artifact Signing vs OV certificates, signing MSIX, Inno Setup and WiX installers, Stripe or Paddle checkout, license keys with a stable device ID, offline tokens, updates and automatic refunds.
Windows has always been the open platform: put an installer on your website, take payment, send a license key. That still works, but the first-run experience has changed a lot. A new download meets Microsoft Defender SmartScreen, Windows 11 can block unsigned code outright with Smart App Control, Extended Validation certificates no longer buy instant trust, and code signing certificates issued since 1 March 2026 are valid for at most 460 days. A paid app whose first screen is "Windows protected your PC" loses sales before the customer ever sees the license dialog.
This guide is for indie developers and small studios selling a Windows desktop app directly in 2026 and 2027, instead of or next to the Microsoft Store. It goes through the whole path in the order you build it: code signing with Artifact Signing (formerly Trusted Signing) or a certificate authority, how SmartScreen and Smart App Control treat your files, signing MSIX, Inno Setup and WiX installers, the checkout with Stripe or Paddle, license keys and device activation with a stable Windows device ID, offline use with signed tokens, trials, auto-updates, and refunds that switch the license off. It is the Windows part of a series with selling a Mac app outside the Mac App Store, selling an Android app outside Google Play and iOS web checkout. Microsoft and CA/Browser Forum facts were checked against their own pages on 5 December 2026; the links are at the end. Nothing here is legal or tax advice.
Microsoft Store or direct sales: what each channel handles for you
Microsoft's own documentation is frank that the Store is the easiest way past SmartScreen: MSIX packages published through the Store are re-signed by Microsoft, so there is no certificate to buy and no download warning. The Store also does not force its billing on every app. Store policy 10.8 lets non-game products on PC use either a secure third-party purchase API or the Store's in-product purchase API for digital items used inside the product. Direct distribution is still the choice for many desktop tools, because it gives you the whole customer relationship and the freedom to ship any installer:
| Microsoft Store | Direct download | |
|---|---|---|
| Code signing | MSIX: re-signed by Microsoft. MSI/EXE: you sign with a certificate from a Trusted Root Program CA | You sign everything: Artifact Signing, OV or EV certificate |
| SmartScreen on first download | No warning for Store installs | Warnings possible until your files and publisher build reputation |
| Installer format | MSIX, or an MSI/EXE installer | Anything: MSIX, Inno Setup, WiX/MSI, a portable ZIP |
| Payments | Store commerce, or a third-party purchase API for non-game PC apps | Your own checkout (Stripe or Paddle) |
| Licensing and device limits | Store entitlements | Your own license keys, activation limits, offline tokens and trials |
| Updates | Store updates | App Installer, an update framework or your own updater |
| Tax, refunds, receipts | Depends on the commerce path you use | You, or your merchant of record |
Direct sales also make cross-platform pricing simple: one license can unlock the Windows build, the Mac build and a mobile companion app. The cost is that you now own signing, reputation, payment, license delivery, updates and refunds. The rest of this guide covers those parts in order.
What Windows checks before your app runs: SmartScreen reputation and Smart App Control
Two Windows features decide what the customer sees on the first launch of a file downloaded from your site.
Microsoft Defender SmartScreen
SmartScreen checks two signals: the publisher (is the file signed, and does the signing certificate have a known, trusted history?) and the file hash (has this exact file been downloaded by many users without signs of malicious behavior?). An unknown or negative result on either can trigger a warning. Microsoft's developer page summarizes the cases:
- Unsigned or self-signed: "Windows protected your PC". The user must choose "Run anyway", and enterprise policy can prevent that entirely. Unsigned files start from zero reputation with every new version.
- Signed with a valid OV or EV certificate: the app can still be flagged as unrecognized until reputation accumulates, but the verified publisher name is shown.
- Over time: "There is no exact threshold, but it can take several weeks and hundreds of clean installs from a wide audience." Reputation carries over to new versions only when they are signed with the same publisher identity.
The practical consequence: sign every release, from the very first beta, with one consistent identity. Each unsigned build, or each build signed by a different identity, starts the reputation clock again.
Smart App Control on Windows 11
Smart App Control is stricter. When a user starts an app, it asks Microsoft's cloud service about the app's reputation. If the service has no confident answer, Smart App Control lets the app run only if it has a valid signature; unsigned code or an invalid signature is blocked. Microsoft's developer overview says an app signed with a certificate from a CA in the Microsoft Trusted Root Program is allowed. There is no "run anyway" for a single app: Microsoft's FAQ says there is currently no way to bypass Smart App Control for an individual app, and suggests users ask the developer to sign it. Recent Windows updates also let users turn Smart App Control on from Windows Security without a clean install, so you should expect more customers to have it enabled, not fewer.
For a paid app this settles the question: an unsigned Windows app is not a product you can sell to the general public in 2026. Microsoft documents how to test with Smart App Control in evaluation and enforcement modes; add one clean Windows 11 machine (or VM) with it switched on to your release testing.
Code signing options in 2026: Artifact Signing, OV and EV certificates compared
Every option below produces an Authenticode signature that Windows trusts. What differs is cost, who can get it, how the key is stored and how it fits into a build pipeline. Prices and availability are as stated on Microsoft's pages on 5 December 2026:
| Artifact Signing (Azure) | OV certificate | EV certificate | |
|---|---|---|---|
| Price | Basic $9.99/month (5,000 signatures), Premium $99.99/month (100,000); $0.005 per signature over quota | Microsoft estimates $150–300/year | Microsoft estimates $400+/year |
| Who can get it | Organizations in the countries listed in the quickstart; individual developers only in the US and Canada | Worldwide | Worldwide |
| Key storage | Managed by the service; no hardware token | Hardware token or HSM (required since June 2023) | Hardware token or HSM |
| SmartScreen | Reputation builds over time | Reputation builds over time | Same as OV since 2024 |
| CI/CD | SignTool plug-in, GitHub Actions, Azure DevOps task, PowerShell | Depends on the CA's token or cloud HSM | Depends on the CA's token or cloud HSM |
EV certificates no longer skip SmartScreen
For years, the standard advice for a new Windows app was to buy an EV certificate, because EV-signed files got SmartScreen reputation immediately. That is over. Microsoft's Trusted Root Program requirements state that beginning in August 2024 "all EV Code Signing OIDs will be removed from existing roots in the Microsoft Trusted Root Program, and all Code Signing certificates will be treated equally", and the SmartScreen developer page says plainly: "EV certificates no longer bypass SmartScreen." An EV certificate can still matter if an enterprise customer's procurement asks for one, but paying the premium only to avoid warnings is, in Microsoft's words, "no longer justified".
Artifact Signing (formerly Trusted Signing)
Artifact Signing is Microsoft's recommended signing service for apps distributed outside the Store. It was renamed from Trusted Signing with no functional change and the same pricing. Things to know before you plan around it:
- Eligibility. The quickstart lists Public Trust certificates for organizations in the United States, Canada, the European Union, the United Kingdom, Australia, New Zealand, Japan, South Korea, Singapore, Switzerland, Norway and Israel. Individual developers must be located in the United States or Canada. If you are a sole developer elsewhere, use an OV certificate or sign as your company.
- A paid Azure subscription. Free, trial and sponsored subscriptions are not supported, and the monthly price is not pro-rated.
- Identity validation. Microsoft validates the organization or individual before a certificate profile is issued; for individuals, the legal name and address on the Azure billing account must match the government ID, and that name appears in the certificate.
- Short-lived certificates. The certificates have a three-day validity, so a trusted timestamp on every signature is what keeps it valid afterwards. Microsoft recommends its own timestamping authority at
http://timestamp.acs.microsoft.com.
Signing uses the normal Windows SDK signtool.exe with the Artifact Signing dlib plug-in and a small metadata file. The endpoint must match the region of your signing account; a mismatch is a common cause of a 403 error.
# One-time setup on the signing machine or CI runner: SignTool plug-in, dlib and dependencies.
winget install -e --id Microsoft.Azure.ArtifactSigningClientTools
# metadata.json: the endpoint must match your Artifact Signing account's region.
# {
# "Endpoint": "https://weu.codesigning.azure.net",
# "CodeSigningAccountName": "example-signing",
# "CertificateProfileName": "example-public-trust"
# }
# Sign your own binaries first. Certificates live three days, so always timestamp.
& signtool.exe sign /v /fd SHA256 `
/tr "http://timestamp.acs.microsoft.com" /td SHA256 `
/dlib "<dlib folder>\bin\x64\Azure.CodeSigning.Dlib.dll" `
/dmdf ".\metadata.json" `
.\publish\MyApp.exe .\publish\MyApp.Core.dll
# Check the result with the default Authenticode policy.
& signtool.exe verify /pa /v .\publish\MyApp.exeOV certificates from a CA, and the 460-day limit
An OV certificate from a CA such as DigiCert, Sectigo or GlobalSign is the option for everyone Artifact Signing does not cover. Since June 2023 the private key must live on a hardware token or HSM, so plan how your build machine reaches it: a USB token on a dedicated signing machine, or the CA's cloud signing service. The CA/Browser Forum's Code Signing Baseline Requirements also changed with ballot CSC-31: certificates issued before 1 March 2026 could be valid for up to 39 months, but certificates issued on or after 1 March 2026 "MUST NOT exceed 460 days". Expect to renew roughly every 15 months, and put the renewal date in your calendar together with the token's PIN policy.
# OV certificate on a hardware token: select it by SHA-1 thumbprint
# (more reliable than /n when several certificates share a subject name).
& signtool.exe sign /fd SHA256 /sha1 0123456789ABCDEF0123456789ABCDEF01234567 `
/tr "http://timestamp.digicert.com" /td SHA256 `
.\publish\MyApp.exe
& signtool.exe verify /pa /v .\publish\MyApp.exeTwo rules apply whichever option you choose. Always timestamp (/tr with /td SHA256), so a signature stays valid after the certificate expires. And always pass /fd SHA256; current SignTool versions warn without it and later versions treat it as an error. Sign your own EXE and DLL files first, then the installer that contains them.
Installers: signing MSIX, Inno Setup and WiX packages
The installer is the file SmartScreen sees first, so it carries the most weight. But Smart App Control checks each app when it runs, including the binaries your installer puts on disk, so the app itself must be signed too.
MSIX and App Installer
MSIX gives clean installs and uninstalls, and built-in updates through an .appinstaller file. Two signing rules trip people up. The certificate's Subject must match the Publisher in the package manifest, which with Artifact Signing means the validated name on your certificate profile. And the SignTool hash algorithm must be the one the package was built with; MakeAppx.exe uses SHA256 by default.
<!-- AppxManifest.xml: Publisher must equal the signing certificate's Subject. -->
<Identity Name="Example.MyApp" Publisher="CN=Example Ltd" Version="2.3.0.0" ProcessorArchitecture="x64" />
<!-- MyApp.appinstaller (2021 schema), linked directly from your download page. -->
<?xml version="1.0" encoding="utf-8"?>
<AppInstaller xmlns="http://schemas.microsoft.com/appx/appinstaller/2021"
Uri="https://downloads.example.com/MyApp.appinstaller" Version="2.3.0.0">
<MainPackage Name="Example.MyApp" Publisher="CN=Example Ltd" Version="2.3.0.0"
ProcessorArchitecture="x64"
Uri="https://downloads.example.com/MyApp_2.3.0.0_x64.msix" />
<UpdateSettings>
<OnLaunch HoursBetweenUpdateChecks="12" ShowPrompt="true" UpdateBlocksActivation="false" />
</UpdateSettings>
</AppInstaller>
<!-- Build and sign (MakeAppx defaults to SHA256, so SignTool must use /fd SHA256):
makeappx pack /d .\msix-layout /p .\MyApp_2.3.0.0_x64.msix
signtool sign /fd SHA256 /tr http://timestamp.acs.microsoft.com /td SHA256
/dlib ...\Azure.CodeSigning.Dlib.dll /dmdf metadata.json .\MyApp_2.3.0.0_x64.msix -->Two current details from Microsoft's distribution status page: the ms-appinstaller: web protocol has been disabled by default since December 2023, so link to the .appinstaller file itself and let the user open it; and Visual Studio generates the older 2017/2 schema, which ignores ShowPrompt and UpdateBlocksActivation. Use the 2021 schema as in the example. App Installer updates work on Windows 10 version 2004 and later and on all versions of Windows 11.
Inno Setup
Inno Setup signs for you if you define a sign tool. The SignTool directive signs Setup, the uninstaller (unless SignedUninstaller=no) and any file in [Files] with the sign or signonce flag. $f is replaced with the file to sign, and the sign tool can be defined on the ISCC command line with --signtool so the command stays in your build script, not in the .iss file:
; MyApp.iss
[Setup]
AppName=MyApp
AppVersion=2.3.0
DefaultDirName={autopf}\MyApp
SignTool=release
SignedUninstaller=yes
[Files]
; Sign binaries that were not signed earlier in the build.
Source: "publish\MyApp.exe"; DestDir: "{app}"; Flags: signonce
Source: "publish\*.dll"; DestDir: "{app}"; Flags: signonce
; Build script: define the "release" sign tool on the command line ($f = file to sign).
; ISCC.exe "--signtool=release=signtool.exe sign /fd SHA256 /tr http://timestamp.acs.microsoft.com /td SHA256 /dlib C:\tools\artifact-signing\bin\x64\Azure.CodeSigning.Dlib.dll /dmdf C:\build\metadata.json $f" MyApp.issWiX: MSI packages and Burn bundles
An MSI with embedded cabinets is signed like any other file. Two WiX cases need extra steps. If cabinets are external, sign the cabinets and then run wix msi inscribe so the MSI records their signatures before you sign it. A Burn bundle (a setup.exe that chains prerequisites) contains an engine that must be signed separately: detach it, sign it, reattach it, then sign the whole bundle.
# MSI with external cabinets: sign the .cab files, then record their signatures in the MSI.
wix build Product.wxs -o MyApp.msi
& signtool.exe sign /fd SHA256 /tr http://timestamp.acs.microsoft.com /td SHA256 <signing options> .\cab1.cab
wix msi inscribe .\MyApp.msi -out .\MyApp.inscribed.msi
& signtool.exe sign /fd SHA256 /tr http://timestamp.acs.microsoft.com /td SHA256 <signing options> .\MyApp.inscribed.msi
# Burn bundle: detach the engine, sign it, reattach it, then sign the whole bundle.
wix burn detach .\MyAppSetup.exe -engine .\engine.exe
& signtool.exe sign /fd SHA256 /tr http://timestamp.acs.microsoft.com /td SHA256 <signing options> .\engine.exe
wix burn reattach .\MyAppSetup.exe -engine .\engine.exe -o .\MyAppSetup.signed.exe
& signtool.exe sign /fd SHA256 /tr http://timestamp.acs.microsoft.com /td SHA256 <signing options> .\MyAppSetup.signed.exeWhichever tool you use, add a release gate that refuses to publish a file whose signature is not valid, not from your identity, or not timestamped:
# Release gate: fail unless the file is validly signed by you and timestamped.
foreach ($file in Get-ChildItem .\release -Include *.exe, *.dll, *.msi, *.msix -Recurse) {
$sig = Get-AuthenticodeSignature $file.FullName
if ($sig.Status -ne 'Valid') { throw "$($file.Name): signature status $($sig.Status)" }
if ($sig.SignerCertificate.Subject -notlike 'CN=Example Ltd*') { throw "$($file.Name): unexpected signer $($sig.SignerCertificate.Subject)" }
if (-not $sig.TimeStamperCertificate) { throw "$($file.Name): not timestamped" }
}Checkout and VAT: Paddle as merchant of record or your own Stripe account
Outside the Store, you need a checkout that charges the right tax for every buyer. The two common setups:
- A merchant of record, such as Paddle, is the seller to your customer. Paddle says it calculates, collects and remits VAT, GST and sales tax, issues compliant invoices and handles refunds and chargebacks for the transaction.
- Your own Stripe account, where you are the seller and tax is your responsibility. Stripe Tax can calculate it.
The trade-offs are in merchant of record vs Stripe. In the PermitCore Store you connect your own Stripe or Paddle account. PermitCore takes no sales commission; provider fees apply. When the signed payment webhook arrives, PermitCore issues the license with the activation limit, node locking, expiry and feature flags you set on the product, and queues the order email. Keys are not sent in plain text by email: the order email links to the buyer's Store account, where the My Keys tab lists every license linked to their email, with the purchase date, expiry and activated devices. Setup steps are in the Store guide and selling software with Stripe or Paddle. If you still run a Lemon Squeezy store, read the Lemon Squeezy shutdown guide before 31 March 2027.
Host the signed installer on your own site or a CDN, and keep the download public. The license, not the file, decides what the app unlocks, which also makes a trial simple: the same download works before and after purchase. Every rebuild has a new file hash that starts with no reputation of its own, so publish real releases rather than a stream of throwaway builds, and let the publisher reputation of your signing identity carry across versions.
License keys and device activation on Windows: a stable device ID
A license screen and key entry are normal for a Windows desktop app. The question is how to count PCs so one purchase is not shared across an office, without locking out a customer who reinstalls the app.
Choosing a Windows device ID
A widely used choice is the MachineGuid value under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography. It is created when Windows is installed, does not need administrator rights to read, survives uninstalling and reinstalling your app, and changes when Windows is reinstalled, which matches how customers think about "a new computer". Three details matter in practice:
- Read the 64-bit registry view. A 32-bit (x86) process on 64-bit Windows is redirected to
WOW6432Node, where the value is not found. Open the key withRegistryView.Registry64so x86, x64 and Arm64 builds of your app get the same ID. - Hash it with your app ID. Do not send the raw GUID. A SHA-256 of your app identifier plus the GUID is stable, specific to your app, and not useful to anyone else.
- Know the edge cases. PCs cloned from one disk image can share a value, which matters for labs and virtual desktops (see licensing in virtual machines). Avoid network MAC addresses, which change with adapters, VPNs and randomization (see why MAC addresses are bad hardware IDs). The general trade-offs are in device activation and hardware IDs.
using System.Runtime.Versioning;
using System.Security.Cryptography;
using System.Text;
using Microsoft.Win32;
public static class DeviceIdentity
{
// SHA-256 of your app ID + Windows MachineGuid: stable across app reinstalls,
// different for every app, and the raw GUID never leaves the PC.
[SupportedOSPlatform("windows")]
public static string StableDeviceId(string appId, string dataDir)
{
string? machineGuid = null;
try
{
// Always the 64-bit view: an x86 build would otherwise be redirected
// to WOW6432Node and not find the value.
using var hklm = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64);
using var key = hklm.OpenSubKey(@"SOFTWARE\Microsoft\Cryptography");
machineGuid = key?.GetValue("MachineGuid") as string;
}
catch (Exception) { /* locked-down machine: fall back below */ }
if (string.IsNullOrWhiteSpace(machineGuid))
{
// Fallback: a random ID kept in the app's data folder (lost if the folder is deleted).
var path = Path.Combine(dataDir, "device-id");
if (!File.Exists(path)) File.WriteAllText(path, Guid.NewGuid().ToString("N"));
machineGuid = File.ReadAllText(path);
}
var bytes = SHA256.HashData(Encoding.UTF8.GetBytes(appId + ":" + machineGuid.Trim().ToLowerInvariant()));
return Convert.ToHexString(bytes).ToLowerInvariant();
}
}Activate once, validate on every launch with the .NET SDK
For a WPF, WinForms, WinUI or Avalonia app on .NET 6 to 10, the PermitCore .NET SDK (dotnet add package PermitCore.Client) wraps the REST calls. Give the client the device ID from above so every launch uses the same value, a private cache folder for the offline token, and your tenant's public key compiled into the app. ActivateAsync fetches a single-use nonce and takes a seat on this PC; call it once, when the customer enters the key. ValidateAsync runs on later launches and never takes a seat. Pass expectedProductId so a key for another of your products is rejected with WrongProduct, and the app version so version limits apply.
using PermitCore;
var productId = Guid.Parse("7f3e9a2b-1c4d-4e8f-9a6b-3d2c1e0f5a8b");
var appVersion = "2.3.0";
var dataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Example", "MyApp");
Directory.CreateDirectory(dataDir);
using var client = new PermitCoreClient(new PermitCoreOptions
{
BaseUrl = "https://api.permitcore.dev",
DeviceId = DeviceIdentity.StableDeviceId("com.example.myapp", dataDir),
CacheDirectory = dataDir,
// SPKI base64 key from GET /api/v1/{tenantSlug}/public-key, compiled into the app.
TrustedPublicKeys = new[] { "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE..." },
});
// Once per PC, when the customer enters the key: takes a seat.
var activation = await client.ActivateAsync(licenseKey, deviceName: Environment.MachineName,
version: appVersion, expectedProductId: productId);
if (!activation.IsValid)
{
if (activation.ErrorCode == "SeatsExhausted") ShowManageDevices(); // opens the customer portal
else ShowLicenseError(activation.ErrorCode, activation.Message);
return;
}
// Every later launch: no new seat. On network or 5xx failure the SDK falls back to the
// signed pc_grace_v1 token in dataDir; a rejection from the server is never overridden.
var license = await client.ValidateAsync(licenseKey, version: appVersion, expectedProductId: productId);
switch (license.ErrorCode)
{
case null when license.IsValid:
if (license.IsTrial) ShowTrialBanner(license.TrialDaysRemaining);
EnablePdfExport(license.HasFeature("pdf-export"));
if (license.IsOffline) ShowOfflineBadge();
break;
case "VersionBlocked": ShowUpgradeOffer(); break; // key capped below this version
case "WrongProduct": ShowWrongProductKey(); break;
case "RequestFailed": ShowConnectToActivate(); break; // offline and no valid signed token
default: ShowLocked(license.Message); break;
}Store the key itself with DPAPI (ProtectedData with DataProtectionScope.CurrentUser) rather than in plain text, and never store a "licensed = true" flag in the registry or a settings file: both are trivially editable. If your Windows app is built with Electron, Python, Java, C++, Go or Unity instead of .NET, PermitCore has official SDKs for those too, and any other stack can call POST /activate and POST /validate directly. Integrating PermitCore into a .NET app and license checks at app startup cover the startup flow in more depth.
Device limits and new PCs
Windows users replace PCs, reinstall Windows and move between a desktop and a laptop. Set an activation limit that matches how people work, for example two or three PCs for a personal license, and let customers free a seat themselves. Every PermitCore tenant has a customer portal at /portal/{your-slug}, where a customer enters the key, sees the activated devices and removes the old one; you can require an email code before a device is removed (Professional plan and above). Store buyers can manage their devices in their Store account too. When activation returns SeatsExhausted, show a "Manage devices" button that opens the portal. The full flow is in transferring a license to a new computer.
Offline license validation on Windows: signed tokens and grace periods
Laptops go on planes, factory PCs sit behind firewalls, and some customers run your app on machines that never touch the internet. A paid app that locks itself when the network is down produces support tickets and refunds.
In PermitCore you set offline grace days on the license. When the app validates online with its device ID, the response includes an offlineCacheToken: a pc_grace_v1 token signed with your tenant's ECDSA P-256 key, carrying the product ID, a SHA-256 hash of the license key, the device ID, the feature flags and a signed validUntil time. The .NET SDK stores only that signed token in your cache folder and re-verifies the signature, deadline, product and device on every read, using the public keys you configured in TrustedPublicKeys. It falls back to the token only when the server cannot be reached (network errors or 5xx); a rejection from the server always wins, and the result is marked with IsOffline. Copying the cache file to another PC does not help, because the token is bound to the device ID.
For fully offline customers, such as air-gapped engineering or lab machines, an admin can issue a manual pc_offline_v1 token bound to one device for 1 to 365 days. The SDK verifies it with ActivateOffline and ValidateOffline, against the same trusted keys. Both token types are described in offline licensing, offline grace mode and offline license validation in C#.
- Pick the grace period on purpose. A longer grace period means an offline PC learns about a refund or a removed device later, because a token stays valid until its signed deadline.
- Watch the clock. Token expiry is compared with the PC's clock. Save the latest time you have seen and treat the cached token as unusable if the clock goes clearly backwards.
- Keep the public key in the binary. Never read the trusted key from the cache folder, a config file or a network response.
Code signing does not stop someone from patching your binary on their own PC; it stops a modified copy from passing as yours, because the signature breaks. Keep the license check straightforward and read what to do if your software is cracked before investing weeks in obfuscation.
Free trials for a downloaded Windows app
A direct download makes trials easy: the customer installs the full app and decides within a week or two. PermitCore licenses can be trial licenses with a set number of trial days; IsTrial and TrialDaysRemaining in the validation result let the app show an honest countdown and an upgrade button. The trial state lives on the server, not in a registry key the customer can delete, and the paid license replaces the trial without a reinstall. The details are in adding a free trial license.
Auto-updates: App Installer, update frameworks and your own updater
Store apps update through the Store; direct apps need their own path. The common options:
- MSIX with an
.appinstallerfile (shown above): Windows checks the file on launch, at the interval inHoursBetweenUpdateChecks, and installs the newer signed package. Every update keeps the same package identity, including thePublisher, so it must be signed by the same identity. - An update framework such as Velopack, which describes itself as an installation and auto-update framework for cross-platform desktop applications. Sign the binaries it packages and the installer it produces, like any other release.
- Your own updater for Inno Setup or WiX installers: fetch a small version manifest over HTTPS, download the new installer, and before running it check that the file's Authenticode signature is valid and comes from your own publisher identity, the same test as the release gate above. Never run a downloaded installer only because it came from your domain.
Paid upgrades and maintenance periods
Many Windows apps sell a perpetual license for one major version, or a license with a year of updates. Two PermitCore license fields help on the licensing side:
- Version limits. A license can carry a minimum and maximum version. When the app sends its dotted numeric version with activate or validate, a license capped at 1.99 that is used with version 2.0 is answered with
VersionBlocked, and your app can show the upgrade offer instead of a generic error. - Maintenance date. A license can carry
maintenanceExpiresAt, returned asMaintenanceExpiresAtnext to the license expiry. Your updater uses it to offer only releases the customer is entitled to. The fields are described in license controls.
How to combine a perpetual license with a limited update period is covered in perpetual fallback licenses and perpetual vs subscription licenses.
Refunds, chargebacks and subscriptions ending: revoking the Windows license automatically
When a store sells your app, the store handles refunds. When you sell it, a refund in your payment dashboard must also turn the license off, or every refund is a free copy. In the PermitCore Store, a fully refunded or lost-dispute order revokes its license automatically, and a subscription license is deactivated when the subscription ends. The next online validation fails, and an offline PC stops when its grace token runs out. If your own backend keeps an account in sync, the signed license.revoked webhook tells it; verify the X-PermitCore-Signature header before trusting the body. Failed renewals and dunning are covered in revoking a license after a failed payment.
Test it before launch: buy in test mode, refund the order, and confirm the app shows the locked state after its next online check.
Selling in the Microsoft Store and directly at the same time
Many developers do both: the Store for discovery and for customers whose IT only allows Store installs, and the website for team licenses, upgrade pricing and other platforms. Keep two build configurations if the commerce or update paths differ, for example an MSIX for the Store without your own updater, and a signed installer with the updater and license screen for direct sales. A compile-time flag keeps both in one project.
The direct license is also the link to your other platforms. In PermitCore, a license belongs to a product, and activation works the same way on any device that calls the API. Use one product across platforms, pass the same expectedProductId from the Windows, Mac and mobile builds, and let the activation limit count devices across all of them. The Mac side is in selling a Mac app outside the Mac App Store, Android in selling an Android app outside Google Play, iPhone in selling iOS app unlocks through your own web checkout, and desktop licensing in general in software licensing for desktop applications.
Launch checklist for a directly sold Windows app
- Pick a signing identity you can keep: Artifact Signing if you are eligible, otherwise an OV certificate on a token or cloud HSM. Skip EV unless a customer requires it.
- Sign every EXE and DLL you ship, then the installer, with
/fd SHA256and an RFC 3161 timestamp; fail the build ifGet-AuthenticodeSignatureis notValid, not your publisher or not timestamped. - For MSIX, match the manifest
Publisherto the certificate Subject and use the 2021.appinstallerschema; for Inno Setup and WiX, sign the uninstaller, external cabinets and the Burn engine. - Test the download on a clean Windows 11 machine with Smart App Control on, and expect SmartScreen prompts on a brand-new identity for the first weeks.
- Connect Stripe or Paddle to your Store, set the activation limit, node locking, offline grace days and feature flags on the product, and run a test purchase.
- Use a hashed
MachineGuidfrom the 64-bit registry view as the device ID, activate once per PC, validate on later launches, and passexpectedProductIdand the app version. - Configure
TrustedPublicKeysand a private cache folder so the signed grace token works offline; store the key with DPAPI, never a "licensed" flag. - Link "Manage devices" to the customer portal from the license window and from the
SeatsExhaustedmessage. - Ship updates through App Installer, an update framework or an updater that checks the Authenticode signer before running anything.
- Refund a test order and confirm the license is revoked on the next online check.
- Put the certificate renewal date (at most 460 days for certificates issued since 1 March 2026) in the calendar, and recheck Microsoft's SmartScreen and code signing pages before major releases.
Selling a Windows app directly is still the most flexible way to run a desktop software business, as long as the parts a store would otherwise handle are in place. PermitCore gives you licensing, device limits, offline tokens, a Store with your own Stripe or Paddle account and refunds that revoke licenses, with a REST API and eight official SDKs. There is a permanent Free plan, and paid plans start with a three-month free trial; compare them on the pricing page, or start with the Store guide and what to look for in a licensing API.
Sources
Pages checked on 5 December 2026:
- Microsoft Learn, SmartScreen reputation for Windows app developers and Code signing options for Windows app developers
- Microsoft Learn, Current status of Windows app distribution features (last reviewed August 2026)
- Microsoft Learn, Microsoft Trusted Root Program requirements (section 3.D, EV Code Signing OIDs)
- Microsoft Support, Smart App Control frequently asked questions; Microsoft Learn, Smart App Control overview and Test app signatures with Smart App Control
- Microsoft Learn, Quickstart: Set up Artifact Signing, Set up signing integrations, Change the account SKU and Artifact Signing FAQ; Microsoft Azure, Azure Artifact Signing (formerly Trusted Signing)
- CA/Browser Forum, Code Signing Baseline Requirements (version 3.11.0, section 6.3.2) and Ballot CSC-31: Maximum Validity Reduction
- Microsoft Learn, SignTool, Sign an app package using SignTool, Create a certificate for package signing and Auto-update and repair apps
- Microsoft Learn, Microsoft Store Policies (10.8 Financial Transactions)
- Inno Setup Help, [Setup] section directive SignTool; FireGiant WiX documentation, Signing; Velopack, Introduction
- Paddle, What is Paddle? and How Paddle handles VAT on your behalf
Build your first licensed product without building a license server.
Create a free PermitCore account, issue a test license, and validate it from your application.