Replies: 1 comment
-
I feel like there is already an issue opened on this about WixUI_Advanced. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hello,
I’m encountering an issue with major upgrades in per-user installations using WiX Toolset v6.0.1.
I have a fairly simple MSI project built with the WixUI_Advanced template. This allows the user to choose between per-user or per-machine installation scopes and to select the target installation directory.
Everything works as expected—except when performing a major upgrade in per-user mode.
Problem Description
When version 1.0.0 is installed using per-user scope, and then version 1.0.1 is installed also with per-user scope, both versions appear in the “Installed Apps” list (Add/Remove Programs). This does not happen when using per-machine installs—the upgrade behaves as expected there.
Investigation So Far
My investigation points to the
FindRelatedProducts
andAppSearch
actions executing too early in the installation sequence.From what I can tell:
• The default value of
ALLUSERS
is 1 or 2 before theInstallScopeDlg
is displayed.• Because of this, the upgrade detection logic is run before the actual user selection of the installation scope is known.
• As a result, when upgrading in per-user mode, the installed product is not found, and a new one is added instead of replacing the old version.
Questions
FindRelatedProducts
action until after theInstallScopeDlg
runs and the actualALLUSERS
value is known?WixUI_Advanced
behavior?Additional Context
• WiX Toolset version: 6.0.1
• UI Template:
WixUI_Advanced
• Install scope switch: enabled via
InstallScopeDlg
• Major upgrade setup: Standard approach using
UpgradeCode
,FindRelatedProducts
, andRemoveExistingProducts
.Any insights, workarounds, or guidance would be greatly appreciated!
Open Source Maintenance Fee
wixtoolset
project because I support the maintainers.Beta Was this translation helpful? Give feedback.
All reactions