Registry issue when upgrading

前端 未结 2 1395
猫巷女王i
猫巷女王i 2021-01-17 04:21

The old version of the setup was created with InstallScope=\"PerMachine\". The new version is intended to have InstallScope=\"PerUser\"; it also needs to u

2条回答
  •  隐瞒了意图╮
    2021-01-17 04:49

    You should define what kind of upgrade you are doing, and if it's a major upgrade then where is it sequenced in your major upgrade element, although...

    Probably the main issue is that cross context major upgrades aren't supported by Windows Installer, so if you are doing a major upgrade you will end up with both products installed. That's not an upgrade, that's most likely just a collision. So assuming that you want only one of them to be installed at the end of all this, you will need to uninstall the older per-machine installation and then install the per-user. As to why the uninstall of the per-machine product doesn't remove the registry keys, there are many possible reasons, such as they were created by the app not the MSI, or the component was marked permanent, or the component has another client product on the system - a log of the uninstall might show what's going on.

提交回复
热议问题