Clavem

Selling and licensing Windows software with Stripe

To sell Windows software with Stripe, host a signed installer and issue a license key per purchase. The Microsoft Store is optional for non-game apps, because its policy lets them use a third-party purchase API, so you can sell in both places or only direct.

Store or direct download

Windows has no rule that keeps license keys out of one channel, which is a difference from the Mac App Store. You can distribute an MSI, an EXE or an MSIX from your own site, and you can list in the Microsoft Store as well.

Microsoft’s Store policies say that non-game products made available on PC devices “may either use a secure third-party purchase API or the Microsoft Store in-product purchase API” for digital items consumed inside the product. That means a non-game Store app is allowed to take payment through a provider other than Microsoft. Whether your particular flow counts as a secure third-party purchase API is a question for the policy text and for Microsoft’s certification review, so check it before you ship. Games have separate terms.

For most small sellers, direct sale is simpler: one installer, Stripe for the payment, a key by email. List in the Store when its discovery matters more than the extra review and packaging work.

What is specific to Windows

Signing. Sign the installer and the executables with a code-signing certificate. An unsigned or unfamiliar installer gets a warning from Windows before your buyer reaches the license screen. The code-signing article covers the certificate options, and selling Windows software directly covers the rest of the path from build to payment.

Machine identifier. Windows keeps a machine GUID in the registry. Hash it and send the hash as fingerprint at activation, so reinstalling on the same PC returns the same seat. Machines cloned from one disk image without a reset can share identifiers, and a major Windows upgrade or a motherboard swap can change them, so decide in advance what your support team does when a customer says “it asks for my key again”.

Storing the key. Use Windows Credential Manager or DPAPI for the key, the instance id and the token. A plain file in %APPDATA% is readable by anything running as the user.

Proxies and inspected TLS. Office networks route traffic through proxies, and some of them rewrite certificates. A validation call that works at home can fail at a customer’s desk. Set a timeout of a few seconds and fall back to the stored token; do not show an error dialog.

Per-machine and per-user installs. A machine-wide install used by three people on a shared PC is one device, not three. Store the license where every user of that PC can read it, such as %ProgramData%, if your product is licensed per machine.

Setting Suggested value Why
License type Perpetual with paid major upgrades, or an annual subscription Windows buyers in companies often prefer a yearly invoice
Device limit 2 for personal licenses; one key per seat for companies A work PC and a home PC; companies track seats themselves
Trial 14 to 30 days in the app, or a time-limited key Gives IT time to test before purchase approval
Updates Check the releases endpoint at launch; label files windows One universal file works too, if you ship a single installer

Companies deploy differently

A business may install your app on 40 PCs with a script and no user at the keyboard. Support two things. First, a way to pass the key at install time, for example an installer property or a config file written to %ProgramData%. Second, an activation that runs on first launch for each PC without asking a person. Each PC then takes one seat, so sell the right number of keys: Clavem creates up to 100 keys for one Stripe line item when the buyer sets a quantity, or you can give one key a higher device limit and treat it as a site license.

Doing this with Clavem

Create a product, connect Stripe, map a Stripe product to it. When a buyer pays, Clavem creates the key, emails it and publishes an order page with the installer. Your app calls activate once per PC, validate at launch and deactivate when a PC is retired. The C# guide shows the flow; the C++ guide and the Qt guide cover native and Qt apps.

Clavem does not act as a merchant of record, so VAT and sales tax on your Windows sales stay with you and Stripe.

Guides to follow

Questions

Can a Microsoft Store app use my own payment system?

Microsoft's Store policies say non-game products on PC may use a secure third-party purchase API or the Store's in-product purchase API for digital items used inside the product. Games are treated differently, so read the policy for your category before you rely on it.

Which identifier should I use as the device fingerprint on Windows?

Use a hash of a stable machine identifier, never the raw value. Test it on a cloned image and on a machine after a major Windows upgrade, because both can change what you read.

Sources

  1. Microsoft Store policies, in-app purchases section (checked November 2026)