Skip to content

fix(ci): declare the Windows packages as msi in the Store submission - #8011

Merged
nirvn merged 1 commit into
opengisch:masterfrom
azchohfi:fix-store-packagetype-msi
Sep 17, 2026
Merged

nirvn merged 1 commit into
opengisch:masterfrom
azchohfi:fix-store-packagetype-msi

Conversation

@azchohfi

Copy link
Copy Markdown
Contributor

Problem

Installing QField from the Microsoft Store currently fails with "Unsupported 16-Bit Application" (reported by @nirvn in #7888):

The program or feature \??\C:\Users\...\Temp\<guid>.exe cannot start or run due to incompatibility with 64-bit versions of Windows.

Cause

#7753 switched the Windows installer from NSIS .exe to WiX .msi:

-  INSTALLER_SUFFIX="exe"
+  INSTALLER_SUFFIX="msi"

The Store submission payload in this workflow was not updated to match, and still declares:

field value
packageType "exe" but the artifact is now QField-x64.msi
installerParameters "/S" NSIS silent switch; msiexec doesn't accept it
genericDocUrl NSIS error-code reference documented as required only for packageType: exe

Partner Center uses packageType to decide how to launch the downloaded installer — exe is executed directly, msi is handed to msiexec. So the Store downloads QField-x64.msi, saves it to a temp file named <guid>.exe, and executes it directly. An MSI is an OLE compound document rather than a PE binary, so Windows can't identify it, falls back to assuming a 16-bit image, and shows that dialog.

Why it surfaced only in 4.3

The v4.2.x releases were cut from a branch that predates #7753, so they kept building .exe and the payload was still accurate:

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

v4.3.0 is the first release containing #7753 — and it happened to be the first release after the MSStore CLI migration in #7888 landed, which is why the two looked related. The CLI change is not involved: #7888 carried the payload across verbatim, so the same JSON would have been sent by the old action.

Fix

-"isSilentInstall":false,"installerParameters":"/S","packageType":"exe","genericDocUrl":"https://nsis.sourceforge.io/Docs/AppendixD.html#errorlevels"
+"isSilentInstall":false,"installerParameters":"/quiet /norestart","packageType":"msi"

Applied to both the x64 and arm64 package entries. isSilentInstall stays false, which is correct — an MSI does need switches to install silently, and the API documents installerParameters as required in that case.

Verification

I can't exercise this against your Partner Center product, so please sanity-check before merging. The next release is the real test: the deploy job should stay green and the resulting Store listing should install cleanly.

One thing worth confirming on your side — Partner Center may need the product's installer type reviewed once the first msi submission goes through, since previous submissions declared exe.

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.
@qfield-fairy

qfield-fairy commented Sep 16, 2026 •

Copy link
Copy Markdown
Collaborator

🍎 MacOS DMG universal builds

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

📱 Android builds

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

Other Android architectures

🪟 Windows builds

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

(Built from commit a951e55)

🐧 Linux AppImage builds

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

@nirvn
nirvn merged commit 554e0b1 into opengisch:master Sep 17, 2026
33 checks passed
@nirvn

nirvn commented Sep 17, 2026

Copy link
Copy Markdown
Member

@azchohfi , thanks, not sure how I managed to miss this one. I had gone as far as trying to tweak the settings on the released package via the web management site to no real success. This should do it. I'll push a release in ~1 hour or so.

@azchohfi
azchohfi deleted the fix-store-packagetype-msi branch October 19, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants