DioxusLabs/dioxus · error · anyhow::Error
Version component {part} exceeds maximum value of 65535
Error message
Version component {part} exceeds maximum value of 65535 What it means
Range guard in wix_version: one of the last two version components (patch or build) parsed as a number greater than 65535, exceeding the u16 limit MSI imposes on those positions of ProductVersion. The input at fault is the specific patch/build component named in the message.
Source
Thrown at packages/cli/src/bundler/windows.rs:952
let parts: Vec<&str> = version.split('.').collect();
if parts.len() < 2 || parts.len() > 4 {
bail!(
"Invalid version for MSI: '{}'. Expected format: major.minor.patch[.build]",
version
);
}
for (i, part) in parts.iter().enumerate() {
let num: u64 = part
.parse()
.with_context(|| format!("Invalid version component: '{part}'"))?;
match i {
0 | 1 if num > 255 => {
bail!("Version component {part} exceeds maximum value of 255");
}
2 | 3 if num > 65535 => {
bail!("Version component {part} exceeds maximum value of 65535");
}
_ => {}
}
}
let version_str = if parts.len() == 2 {
format!("{}.{}.0", parts[0], parts[1])
} else {
parts.join(".")
};
Ok(version_str)
}
/// The embedded WiX template.
const WIX_TEMPLATE: &str = r#"<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<ProductView on GitHub (pinned to 24f6a829df)
Solutions
- MSI version components are too large: keep major, minor, and patch at 65535 or below.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/cli/src/bundler/windows.rs:952 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of DioxusLabs/dioxus@24f6a829df (2026-08-23).
Data as JSON: /api/errors/443dcae2fc2f58d2.
Report an issue: GitHub.