Hi Andrey,
1. Please give me some clue. Why does my installer allows installation of Old product, when New one is already installed?
When trying to install same installation package with a lower version you will be prompted by the Windows Installer with the following error:
A more recent version of your application is already installed on this computer
Since you are using the
Per-machine if user is administrator, per-user otherwise option for the installation type, you may get this behaviour when installing
Per-User first time and then you try to install a lower version. By default, a
Per-machine installation type is selected and this is why you are allowed to install a lower version.
Please keep in mind that a per-user installation cannot upgrade a per-machine installation and a per-machine installation cannot upgrade a per-user installation. Please take a look on the
Different Installation Type article which may be useful to you.
2. Not related question. I have Installer which installs per-machine if user is administrator and per-user otherwise. And it is possible to install both types in parallel. I.e. I can install msi version 1.0 for current user and then install version 2.0 for local machine. But i cannot install version 1.0 both for current and local machine. Is it possible to override this behavior, and allow "parallel" installation of the same version per-user and per-machine?
Since it is a Per-Machine installation, why would you need a Per-User installation? Can you please give me more details about your scenario?
Best regards,
Dan