Skip to content

build: version not accepted by cargo-wix #136

Description

@ReenigneArcher

Describe the Bug

Run cargo bin cargo-wix `
  cargo bin cargo-wix `
    --toolset modern `
    --target x86_64-pc-windows-msvc `
    --no-build `
    --target-bin-dir "D:\a\Koko\Koko\target\x86_64-pc-windows-msvc\release" `
    --package koko `
    --output "artifacts\koko-x86_64-pc-windows-msvc-installer.msi" `
    --nocapture `
    crates/server/Cargo.toml
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    CARGO_TERM_COLOR: always
    INPUT_AZURE_SIGNING_ACCOUNT: lizardbyte-signing
    INPUT_AZURE_SIGNING_CERT_PROFILE: lizardbyte-profile
    INPUT_AZURE_SIGNING_ENDPOINT: https://eus.codesigning.azure.net/
    INPUT_PUBLISH_RELEASE: true
    INPUT_RELEASE_VERSION: 2026.622.124200
    WIX_EXTENSION_VERSION: 7.0.0
    WIX_TOOL_PATH: D:\a\Koko\Koko\.wix
    WIX_VERSION: 7.0.0
    CARGO_INCREMENTAL: 0
    CARGO_PROFILE_DEV_DEBUG: 0
    RUST_BACKTRACE: short
    RUSTFLAGS: -D warnings
    CARGO_UNSTABLE_SPARSE_REGISTRY: true
    CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
    CACHE_ON_FAILURE: false
    DOTNET_ROOT: C:\Program Files\dotnet
Error[2] (Generic): The app's major version 2026 can't be greater than 255 for an msi

Error: Process completed with exit code 1.

Similar to LizardByte/libvirtualhid#20, but this is failing because the first part of the version is too large.

Expected Behavior

Workaround cargo-wix limitation, or use wix directly and avoid this altogether. Need the 4 part versioning either way though.

Additional Context

https://stackoverflow.com/questions/9312221/msi-version-numbers

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions