Un msi simple créé en utilisant WiX. Essayer d'installer un produit. Sur certains ordinateurs, il échouera, sans erreur, et le journal d'installation contiendra ces lignes:Windows Installer n'installe pas de fonction et ne signale aucune erreur. (Demande: Null)
PROPERTY CHANGE: Adding WIX_UPGRADE_DETECTED property. Its value is '{7C9...0A0}'
PROPERTY CHANGE: Adding MIGRATE property. Its value is '{7C9...0A0}'
Product Code from property table after transforms: '{68F...FAE}'
Product not registered: beginning first-time install
Doing action: INSTALL
Doing action: InstallValidate
Feature: ProductFeature; Installed: Absent; Request: Null; Action: Null
MIGRATE = {7C9...0A0};{A9B...BCE}
Installation completed successfully.
D'une certaine façon, décide Windows Installer qu'il n'y a rien à faire (demande: Null), même si elle reconnaît que cette est la première fois installer. Cet ordinateur avait une version précédente du produit installée. Comment forcer l'installation du programme d'installation?
Voici le code WiX concerné:
<Product Id="*"
Name="..."
Language="1033"
Version="..."
Manufacturer="..."
UpgradeCode="8D8...196">
<Package Id="*"
InstallerVersion="200"
Compressed="yes"
InstallScope="perMachine"
InstallPrivileges="elevated"
Platform="$(var.Platform)" />
<Property Id="REINSTALLMODE" Value="amus" />
<MajorUpgrade AllowDowngrades="yes" IgnoreRemoveFailure="yes" AllowSameVersionUpgrades="no"/>
<Feature Id="ProductFeature" Title="..." Level="1" Absent="disallow" AllowAdvertise="no" InstallDefault="local" TypicalDefault="install">
<Condition Level="1">True</Condition>
journal d'installation complète: https://www.dropbox.com/s/abnryavh203a82w/acme_installer_log.txt?dl=0
Salut, pouvez-vous ajouter un peu de votre code pertinent s'il vous plaît? Tout ce qui concerne la logique de mise à niveau serait utile. –
Probablement en rapport avec qui est par défaut. Cela ne permettra pas l'installation de nouvelles fonctionnalités qui ne faisaient pas partie de l'installation précédente (je pense). Plus d'infos sur MigrateFeatureStates https://msdn.microsoft.com/en-us/library/windows/desktop/aa370034(v=vs.85).aspx –
Ajout du code WiX. Merci. –