Back to Blog

How to Link to the Microsoft Store and the Mac App Store

Your desktop app lives in two stores, and each one has its own link format, its own ID and its own badge rules. Here are the formats that work today, where to find the IDs, and how one short link sends Windows and Mac visitors to the right store.

Karan Bhakuni
Karan Bhakuni
Founder, Flyn
GuideOct 19, 202618 min readUpdated Oct 19, 2026
How to Link to the Microsoft Store and the Mac App Store

Store Schemes: ms-windows-store and macappstore

Both stores also answer a custom URL scheme that skips the browser and opens the store app. That sounds like an upgrade until you picture who clicks a link in an email: people on phones, Macs, Windows PCs and Chromebooks, and only one of them has the matching store app.

The Microsoft Store protocol

Microsoft's ms-windows-store URI reference calls ms-windows-store://pdp/?ProductId=9WZDNCRFHVJL the recommended way to open a product page, and lists ms-windows-store://review/?ProductId=9WZDNCRFHVJL for the write-a-review screen. The same page marks the older package family name and App ID forms as deprecated, and says that from February 2026 the store no longer supports the mode=mini pop-up, so those links open the full page instead. Microsoft describes the protocol link as the way to reach your listing without opening a browser, for example from inside an app, and a campaign tag works here as &cid=.

The macappstore scheme on a Mac

On a Mac, the App Store app registers macappstore:// (it is listed, next to itms-apps, in the app's own Info.plist), and Apple's App Store web pages use it to hand a Mac visitor over: they keep the listing address and swap https for macappstore, as in macappstore://apps.apple.com/us/app/xcode/id497799835?mt=12. We found no Apple developer documentation for the scheme, so treat it as a convenience that can change, not a contract.

Table of four store links and what each opens on a Windows PC and on a Mac: the Microsoft web listing opens the Store app on Windows and a web page on a Mac, ms-windows-store opens the Store app on Windows and nothing on a Mac, the Apple web listing is a web page on Windows and offers a button into the App Store on a Mac, and macappstore opens nothing on Windows and the App Store app on a MacTap to enlarge
What each link does on the two desktops. The web listings load everywhere; each scheme works on one platform only.
  • Inside your own Windows app, such as an Update or Rate this app button: ms-windows-store:// opens the Store app with no browser in between.
  • Inside Mac software, where a Mac is certain to handle the click: macappstore:// works, though the https listing is the documented route.
  • Everywhere else (web pages, email, social posts, QR codes, ads): use the https listing. It loads in any browser, and on Windows the Microsoft one opens the Store app anyway.
Watch out

A store scheme in a newsletter or on a web page is a dead click for most readers. Macs and phones have no app registered for ms-windows-store://, and a Windows PC normally has none for macappstore://, so the browser usually shows an error or does nothing, and you never see the lost install. Test any scheme on a device without that store before it ships.

Store schemes are cousins of the URI schemes behind deep links that open native apps; Flyn's Pro deep links do that job for 16 supported apps such as YouTube, which is different from opening a store.

Store Badges: What Microsoft and Apple Allow

A badge is the visual half of a store link, and both companies publish rules for it.

The Microsoft Store badge

Microsoft's badge generator builds the badge from your Store ID in two forms: a static badge (an image plus a link, for READMEs and pages that block scripts) and a web component that follows the visitor's language and theme. You choose a launch mode: Direct, the default, downloads your app's installer, and Full opens your product page in the Store app. The guidelines on that page ask you to:

  • Keep standard spacing around the badge and place it prominently.
  • Never stretch, recolor or modify the artwork, and keep a static image's aspect ratio (no skewing or cropping).
  • Add a campaign ID so you can measure each placement.

Microsoft hosts the assets, so a generated badge follows future rebrands on its own.

The App Store and Mac App Store badges

Apple's marketing guidelines cover the Download on the Mac App Store badge alongside the other App Store badges:

  • Use only the badge artwork Apple provides, and do not modify, angle or animate it.
  • Use one App Store badge per layout or video.
  • Keep it at least 40 px tall on screen (10 mm in print), with clear space of a quarter of its height.
  • Use the preferred black badge whenever badges for other platforms appear in the same layout.

Apple also asks that its trademarks appear in your own URLs only after your company or product name, so name a page or slug after your app, not after the store.

Two cards of badge rules: the Microsoft Store badge is generated from the Store ID, comes as a static image or web component, offers Direct and Full launch modes and must not be stretched or recolored; Apple's badges must be Apple's own artwork, unmodified, one per layout, at least 40 px tall, with clear space of a quarter of the badge heightTap to enlarge
Badge rules from Microsoft's badge page and Apple's marketing guidelines, as published on October 18, 2026.

One button for every device

Point each badge at its own store. For a single Download button that works on any device, use your own label rather than a store badge, with a device-routed short link behind it (setup below). On Pro that link can sit on one of up to three custom domains, which builds trust in the address.

Frequently Asked Questions

How do I link to my app in the Microsoft Store?
Share https://apps.microsoft.com/detail/ followed by your app's Store ID. Microsoft's documentation says this link opens the web-based listing, and on Windows devices the Store app also launches and shows your listing, so it works in any browser on any device. Find the Store ID in Partner Center under Product management, then Product identity, or copy it from the end of your public listing address. If the link lives inside your own Windows app instead, Microsoft recommends ms-windows-store://pdp/?ProductId= plus the same ID, which opens the Store app without a browser.
What is the Mac App Store URL format?
A Mac App Store listing lives at https://apps.apple.com/, followed by a storefront such as /us, /app/, the app's name and id plus the Apple ID, for example https://apps.apple.com/us/app/xcode/id497799835?mt=12. The ID is the essential part: https://apps.apple.com/app/id497799835 redirects to the full address, and the name segment is cosmetic because Apple corrects it. The mt=12 query marks Mac software, and Apple adds it on its own redirects. Find the Apple ID in App Store Connect under App Information, or copy the digits after id from your public listing.
Where do I find my Microsoft Store product ID?
Microsoft calls it the Store ID, and its badge page also calls it the App ID or Product ID: a unique 12-character alphanumeric code. Apps sold as .exe or .msi installers have a 14-character ID starting with XP instead, such as Visual Studio Code's XP9KHM4BK9FZ7Q. In Partner Center, open the app, expand Product management and choose Product identity, where the Store ID sits next to your listing link and Store protocol link. Without dashboard access, open the app on apps.microsoft.com: the ID is the last part of the address after /detail/. The same ID builds the web link, the ms-windows-store protocol link, the Store badge and a campaign-tagged link for Partner Center reports.
What is the difference between an apps.microsoft.com link and an ms-windows-store link?
The apps.microsoft.com link is a normal web address. It opens the web listing on any device, and on Windows the Store app launches too, which makes it the right choice for web pages, email, social posts and QR codes. The ms-windows-store link is a store scheme: on Windows it opens the Store app directly with no browser, but a Mac, an iPhone or an Android phone has no app registered to open it, so the click usually ends in an error or nothing at all. Use the scheme only inside Windows software, where every click comes from a Windows PC.
Does the macappstore:// link still work?
On a Mac, yes as of October 18, 2026: the App Store app is registered as the handler for the macappstore scheme, and Apple's own App Store web pages use it to hand Mac visitors to the app by swapping https for macappstore in the listing address. Two caveats apply. We found no Apple developer documentation for it, so it can change without notice, and nothing outside macOS opens it, so a Windows PC, a phone or a Chromebook gets an error or nothing. For anything shared publicly, use the https listing, which offers its own button into the App Store when opened on a Mac.
Why will Flyn not accept an ms-windows-store or macappstore link in the Windows or Mac field?
Because a Flyn link's Windows and Mac fields accept http or https addresses only. The editor refuses a store scheme when you save, and the API answers with a 400 error and the code INVALID_TARGETING. Paste each store's web listing instead: https://apps.microsoft.com/detail/ plus your Store ID for Windows, and your apps.apple.com listing for Mac. You lose little, because the Microsoft web link opens the Store app on Windows and Apple's Mac listing has its own button into the Mac App Store. Device routing is part of Flyn Pro, Lifetime and Team.
Can I show the Microsoft Store badge and the App Store badge on the same page?
Yes, and Apple's guidelines plan for it: when badges for other app platforms appear in the same layout, Apple asks you to use its preferred black badge. Apple also asks for one App Store badge per layout, artwork taken only from Apple, no modifications, at least 40 px tall on screen and clear space of a quarter of the badge height. Microsoft asks you to generate its badge from your Store ID, keep spacing around it and never stretch, recolor or crop it. Point each badge at its own store, and use your own label for any single button that serves every device.
Should I link to the store listing or to a direct download?
It depends on where your app is distributed. A store listing gives readers a familiar install flow, and on Windows the Microsoft web link opens the Store app, while a direct .exe, .msi or .dmg link suits software you ship outside the stores. Outside the stores, follow each platform's rules: Microsoft's code signing guide notes that new files can show SmartScreen warnings until they build reputation, and Apple's Gatekeeper checks for a Developer ID signature, with notarization adding a security scan. Put a download page behind a short link so you can update the destination with each release.

Ready to try Flyn?

Free plan includes 25 links/month, full analytics, and access to all 30+ free tools above. No credit card required.

Already a member? Log in

Karan Bhakuni
Karan Bhakuni· Founder, Flyn

Karan Bhakuni is the founder of Flyn. He writes about branded links, click analytics, and the link-management tooling growth teams and creators actually need, drawn from building Flyn and reading a lot of user feedback.

Find these guides useful? Add Flyn as a preferred source so more of them show up in your Google results.