Replies: 2 comments
-
I have a simular question. How corretly check installed version, and show ActionResult.UserExit for this case?
|
Beta Was this translation helpful? Give feedback.
-
@Fiinleyyy, by default upgrading is disabled. If you want to implement Major Upgrade concept then you need to set project.MajorUpgrade = new MajorUpgrade
{
Schedule = UpgradeSchedule.afterInstallInitialize,
DowngradeErrorMessage = "A later version of [ProductName] is already installed. Setup will now exit."
}; If you do not set I just retested the simplest sample Install_Files and it does work as expected. I suggest you establish the baseline of a working solution and then see what difference in your code is causing the problem. You can do this by simply creating a simple project from the VS template without any modification of the code. Then building and testing it: |
Beta Was this translation helpful? Give feedback.
-
I was so sure that in the past I wasn't able to install the same msi installer twice. But right now if I install the first time everything works as expected. But as soon as try to install the second time with the product already being installed the wizard won't open but instead will install the product again but in silent mode.
That behaviour is very weird - is the a way to enable upgrades but disable multiple installations of the same product?
Beta Was this translation helpful? Give feedback.
All reactions