Commit 19fcfe6
fix(installer): Files Exclude is a child element, not an attribute
WiX 5.0.2 rejected Exclude="..." as an attribute on <Files> with
WIX0004 -- confirmed against the pinned compiler binary (5.0.2+aa65968c,
pulled from the local NuGet cache), not guessed. The correct form is a
child <Exclude Files="..."/> element, one per pattern.
Also drop the "**\obj\**" exclusion: WiX 5.0.2's harvester throws
(System.ArgumentException: Illegal characters in path, inside
HarvestFilesCommand.GetWildcardFiles) on any Exclude Files pattern with
two "**" segments -- reproduced locally against the real compiler. A
single-"**" trailing form only matches a root-level obj folder and
fires a permanent "missing directory" warning since BinDir never has
one; the real CI-built payload (304 files, inspected in a prior
session) contains zero "obj" path segments at any depth, so this
exclusion was a no-op to begin with.
Verified end-to-end, not just XML-well-formed: compiled the actual
Package.wxs with the actual pinned WiX 5.0.2 binary against this
checkout's real app/build/x64/Release output (307 files) using the
same Util/Firewall extensions the wixproj references. Exit 0, only the
pre-existing WIX1149 warning. The resulting MSI's File table has 303
entries (0 leaked .pdb, 0 leaked obj/) and carries
Microsoft.WindowsAppRuntime.dll, Microsoft.ui.xaml.dll, resources.pri,
a brand font, and App.xbf -- confirmed both by direct query and by
running app/tools/verify-msi-payload.ps1 against it.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PT7KcWCPKfFwQUc7SM3oZY1 parent 53406bc commit 19fcfe6
1 file changed
Lines changed: 37 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
140 | 145 | | |
141 | 146 | | |
142 | 147 | | |
| |||
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
149 | | - | |
150 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
151 | 174 | | |
152 | | - | |
153 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
154 | 187 | | |
155 | 188 | | |
156 | 189 | | |
| |||
0 commit comments