Skip to content

Commit a1ed940

Browse files
cfsmp3claude
andcommitted
fix(build): Use -arch x64 flag for WiX build instead of Package attribute
The Platform attribute is not valid in WiX v4+. Instead, specify the target architecture at build time using the -arch x64 flag. Changes: - Remove invalid Platform="x64" attribute from Package element - Add -arch x64 to wix build command in release workflow - Keep ProgramFiles64Folder for explicit 64-bit installation path This ensures the MSI is built as a proper 64-bit package that installs to "Program Files" instead of "Program Files (x86)". 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent e437420 commit a1ed940

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
run: Compress-Archive -Path ./installer/* -DestinationPath ./CCExtractor.${{ steps.get_version.outputs.DISPLAY_VERSION }}_win_portable.zip
110110
working-directory: ./windows
111111
- name: Build installer
112-
run: wix build -ext WixToolset.UI.wixext -d "AppVersion=${{ steps.get_version.outputs.VERSION }}" -o CCExtractor.${{ steps.get_version.outputs.DISPLAY_VERSION }}.msi installer.wxs CustomUI.wxs
112+
run: wix build -arch x64 -ext WixToolset.UI.wixext -d "AppVersion=${{ steps.get_version.outputs.VERSION }}" -o CCExtractor.${{ steps.get_version.outputs.DISPLAY_VERSION }}.msi installer.wxs CustomUI.wxs
113113
working-directory: ./windows
114114
- name: Upload as asset
115115
uses: AButler/[email protected]

windows/installer.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
2-
<Package Name="CCExtractor" Language="1033" Version="$(AppVersion)" Manufacturer="CCExtractor development" UpgradeCode="e70dbe37-bb04-4c39-bedc-966a6b073bcf" InstallerVersion="500" Scope="perMachine" Platform="x64">
2+
<Package Name="CCExtractor" Language="1033" Version="$(AppVersion)" Manufacturer="CCExtractor development" UpgradeCode="e70dbe37-bb04-4c39-bedc-966a6b073bcf" InstallerVersion="500" Scope="perMachine">
33
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed."/>
44
<MediaTemplate EmbedCab="yes"/>
55
<Feature Id="CCX" Title="CCExtractor Setup" Level="1">

0 commit comments

Comments
 (0)