Skip to content

ci: migrate from the deprecated microsoft/store-submission action to the MSStore CLI - #7888

Merged
nirvn merged 2 commits into
opengisch:masterfrom
azchohfi:migrate-to-msstore-cli
Aug 25, 2026
Merged

nirvn merged 2 commits into
opengisch:masterfrom
azchohfi:migrate-to-msstore-cli

Conversation

@azchohfi

Copy link
Copy Markdown
Contributor

Why

microsoft/store-submission is deprecated and the repository is being archived (see microsoft/store-submission#27). Archiving does not break anything — uses: microsoft/store-submission@v1 will keep resolving — but there will be no further fixes, features, or security updates, and it has open issues that will never be addressed (notably #20: no certificate or federated/managed-identity auth).

The supported replacement is the MSStore CLI, put on the runner by microsoft/microsoft-store-apppublisher (the action formerly named microsoft/setup-msstore-cli). It handles both packaged (MSIX) and unpackaged (MSI/EXE) apps and is actively maintained. microsoft/PowerToys already runs on it.

I'm doing a sweep of the repos still referencing the old action so nobody is caught out by the archive.

What changed

deploy (ms store) in .github/workflows/windows.yml now sets up the MSStore CLI and calls it directly. Same job gating (release + refs/tags/v), same three steps, same secrets, same package payload for the x64/arm64 NSIS .exe packages.

Worth knowing

This job currently fails on roughly 1 in 4 releases. Across the last 12 months of release-triggered runs: 27 success, 10 failure, 1 cancelled. Every failure is the same one — Update Draft Submission polls

{"responseData":{"isReady":false},"isSuccess":true,"errors":[{"code":"modulenotready","message":"Package Module is not in Ready Status.","target":"packages"}]}

…re-printing Waiting 10 seconds. until the job times out. That retry loop lives in the action and was never going to be fixed. The CLI has its own polling implementation (plus --skipInitialPolling and a msstore submission poll command if you want to control it explicitly), so this migration is also the practical way off that failure mode.

Command mapping used

microsoft/store-submission MSStore CLI
command: configure + tenant-id/seller-id/client-id/client-secret msstore reconfigure --tenantId … --sellerId … --clientId … --clientSecret …
command: update + product-update msstore submission update <productId> '<json>'
command: publish msstore submission publish <productId>
type: win32 / type: packaged dropped — the CLI resolves the product type itself

Notes

  • No secrets added or renamed — this uses exactly the same ones the workflow already referenced.
  • The JSON payload is unchanged. msstore submission update deserializes into UpdatePackagesRequest → { "packages": [ { packageUrl, languages, architectures, isSilentInstall, installerParameters, packageType, genericDocUrl, … } ] }, which is the same shape product-update took, so the payload carried over verbatim.
  • Secret values are passed via env: and referenced as shell variables rather than interpolated straight into the command line — same behaviour, and it keeps them out of the process command line.
  • I can't execute this pipeline against your Partner Center product, so please sanity-check before merging. Happy to adjust anything.

microsoft/store-submission is deprecated and its repository is being
archived. Switch to microsoft/microsoft-store-apppublisher + the
MSStore CLI, which is the supported replacement and covers both
packaged (MSIX) and unpackaged (MSI/EXE) applications.
@qfield-fairy

qfield-fairy commented Aug 24, 2026 •

Copy link
Copy Markdown
Collaborator

🍎 MacOS DMG universal builds

Download a MacOS DMG universal build of this PR for testing.
(Built from commit 1755f59)

📱 Android builds

Download an Android arm64 build of this PR for testing.
(Built from commit 1755f59)

Other Android architectures

🪟 Windows builds

Download a Windows build of this PR for testing and for arm64.

(Built from commit 1755f59)

🐧 Linux AppImage builds

Download a Linux AppImage build of this PR for testing.
(Built from commit 1755f59)

microsoft/microsoft-store-apppublisher@v1.4 is a lightweight tag pointing
directly at a commit, so it can be moved. This step handles Partner Center
credentials, so pin the action to cc9910a8d59f2eb55cbb83df0a3800cf3b5300e0
and pin the CLI it downloads to v0.4.1 instead of the default 'latest'.

v0.4.1 is what 'latest' resolves to today, so this freezes current
behaviour rather than changing it.

microsoft/PowerToys pins this same action the same way.
@nirvn

nirvn commented Aug 25, 2026

Copy link
Copy Markdown
Member

@m-kuhn , should we wait until after we branch off QField 4.3 to merge this?

@m-kuhn

m-kuhn commented Aug 25, 2026

Copy link
Copy Markdown
Member

I don't see a lot we can win by holding off longer.

Do you see good reasons to wait?

@nirvn

nirvn commented Aug 25, 2026

Copy link
Copy Markdown
Member

@m-kuhn , the only reason is that I was hoping for a friction-less 4.3 release after two release cycles where we had issues 😉 but that's hardly a good reason.

Let's go ahead then and deal with any fallout issues immediately!

@nirvn

nirvn commented Aug 25, 2026

Copy link
Copy Markdown
Member

@azchohfi , thanks for this BTW. I'm not exactly sure whether this was automated but in any case your profile seems human enough to share our appreciation 😉

@nirvn
nirvn merged commit 805cce1 into opengisch:master Aug 25, 2026
30 of 31 checks passed
@azchohfi
azchohfi deleted the migrate-to-msstore-cli branch August 25, 2026 19:03
@azchohfi

Copy link
Copy Markdown
Contributor Author

Yes and no 😄 — Copilot did the typing, I did the aiming. store-submission lists ~138 dependents, but most are PowerToys forks that have never once run the workflow; QField is one of the handful actually publishing, so you got a hand-checked PR rather than a mail-merge.

(I maintain the action that's being archived, hence the cleanup duty.)

@nirvn

nirvn commented Aug 26, 2026

Copy link
Copy Markdown
Member

@azchohfi , wonderful, thanks :)

@nirvn

nirvn commented Aug 28, 2026

Copy link
Copy Markdown
Member

@m-kuhn , it worked: https://github.com/opengisch/QField/actions/runs/33139470135/job/98752406324

@nirvn

nirvn commented Sep 2, 2026

Copy link
Copy Markdown
Member

I might have spoken too soon 😉

@azchohfi , we're seeing this error when installing QField's latest version (which was released using the migrated MSStore action:

image

Is that something you've seen somewhere else?

azchohfi added a commit to azchohfi/QField that referenced this pull request Sep 16, 2026
The Windows installer switched from NSIS .exe to WiX .msi in opengisch#7753, but
the Store submission payload still declared packageType "exe", passed the
NSIS silent switch /S, and pointed genericDocUrl at the NSIS error code
reference.

Partner Center uses packageType to decide how to launch the downloaded
installer: "exe" is executed directly, "msi" is handed to msiexec. So the
Store downloaded QField-x64.msi, saved it as <guid>.exe and ran it
directly. An MSI is not a PE binary, so Windows reports "Unsupported
16-Bit Application" and the install fails.

- packageType: exe -> msi
- installerParameters: /S -> /quiet /norestart (msiexec)
- drop genericDocUrl, which the API documents as exe-only

Fixes the install failure reported on opengisch#7888.
@azchohfi

Copy link
Copy Markdown
Contributor Author

Thanks for the ping, and sorry for the slow reply.

Good news: this isn't the CLI migration. The payload was carried across verbatim, so the old action would have sent exactly the same JSON.

The actual cause is #7753, which switched the Windows installer from NSIS .exe to WiX .msi but left the Store submission payload declaring packageType: "exe" (plus the NSIS /S switch and the NSIS error-code genericDocUrl). Partner Center uses packageType to decide how to launch the downloaded file — exe runs it directly, msi hands it to msiexec. So the Store downloads QField-x64.msi, saves it as <guid>.exe and executes it directly; an MSI isn't a PE binary, so Windows assumes it's a 16-bit image and you get that dialog.

It only showed up in 4.3 because the v4.2.x releases were cut from a branch predating #7753 and still built .exe:

tag builds payload declares
v4.2.11 exe exe ✅
v4.3.0 msi exe ❌
v4.3.2 msi exe ❌

v4.3.0 was the first release containing #7753 and also the first after this PR landed, which is what made them look connected.

Fix is in #8011 — three fields on both package entries. Worth noting the honest version: the mismatch was sitting in the same file I edited (INSTALLER_SUFFIX="msi" a few lines up from "packageType":"exe"), and I should have caught it while I was in there rather than porting the payload across unexamined. Sorry about that.

nirvn pushed a commit that referenced this pull request Sep 17, 2026
The Windows installer switched from NSIS .exe to WiX .msi in #7753, but
the Store submission payload still declared packageType "exe", passed the
NSIS silent switch /S, and pointed genericDocUrl at the NSIS error code
reference.

Partner Center uses packageType to decide how to launch the downloaded
installer: "exe" is executed directly, "msi" is handed to msiexec. So the
Store downloaded QField-x64.msi, saved it as <guid>.exe and ran it
directly. An MSI is not a PE binary, so Windows reports "Unsupported
16-Bit Application" and the install fails.

- packageType: exe -> msi
- installerParameters: /S -> /quiet /norestart (msiexec)
- drop genericDocUrl, which the API documents as exe-only

Fixes the install failure reported on #7888.
nirvn pushed a commit that referenced this pull request Sep 17, 2026
The Windows installer switched from NSIS .exe to WiX .msi in #7753, but
the Store submission payload still declared packageType "exe", passed the
NSIS silent switch /S, and pointed genericDocUrl at the NSIS error code
reference.

Partner Center uses packageType to decide how to launch the downloaded
installer: "exe" is executed directly, "msi" is handed to msiexec. So the
Store downloaded QField-x64.msi, saved it as <guid>.exe and ran it
directly. An MSI is not a PE binary, so Windows reports "Unsupported
16-Bit Application" and the install fails.

- packageType: exe -> msi
- installerParameters: /S -> /quiet /norestart (msiexec)
- drop genericDocUrl, which the API documents as exe-only

Fixes the install failure reported on #7888.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants