Cannot reproduce installer with upgraded AI - Advanced Installer Community
donaddon
Posts: 15
Joined: Wed Apr 30, 2014 6:21 pm

Cannot reproduce installer with upgraded AI

Hi,

I have a built .MSI from an older version of Advanced Installer. I went back to the source (I'm fairly certain the identical source), and I re-built a new .MSI from that source code.

However, if I install from the "old" .MSI, then try to run the "new" .MSI, I get the following error:

"Another version of this product is already installed."

By opening both .MSI files with Advanced Installer, I've verified that the ProductCode & UpgradeCode & Product Version are all the same, so what does it mean that "Another version of this product is already installed."? This is the same version, shouldn't it show the Remove, Upgrade, Repair UI?

I enabled full logging, and the log sequence is quite different. For example, the new package goes through some SOFTWARE RESTRICTION POLICY messages that the old one does not. Is it possible the issue is due to building with a different version of Advanced Installer?

I have attached the installer .log file for the failure.

Thanks!
Attachments
setuplog.txt
(11.61 KiB) Downloaded 292 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Cannot reproduce installer with upgraded AI

Hello,
Another version of this product is already installed.
Usually, this message is showed if you created a package, installed it, modified its contents and then you tried to install it again without uninstalling the original one.
Basically, Windows Installer can upgrade the original package only if the modified one has a higher version and a different Product Code. If you don't want to create a new version of the package, you need to uninstall the original MSI before installing the modified one. However, if you want to create a new version which will upgrade the old one, you can follow the steps explained in the Upgrades article.

Please note that this error can only occur on development machines during the installer's authoring process. You needn't consider preventing it on clients' machines.

Let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
donaddon
Posts: 15
Joined: Wed Apr 30, 2014 6:21 pm

Re: Cannot reproduce installer with upgraded AI

Hi Dan,

Hmmm...not sure I get that. Why doesn't it just behavior as if I just re-created the exact same installer? I'm a bit stuck, what I'm actually trying to fix is this problem:

http://www.advancedinstaller.com/forums ... 724#p74724

I'm trying to fix it by creating an upgrade patch for the two broken installers that can't be uninstalled.

But whenever I create an upgrade patch, and when I build and run it, I get the error "Another version of this product is already installed". Which is why I just tried creating a full upgrade version. And it resulted in the same problem.

I created the patch by bumping the version number by 1, and then when it asked me if it was an Upgrade or a Patch, I chose Patch. Then I build the .MSI, but it is just as big as the previous installer (does that mean it is not actually a patch)?

So...the question is: How do I create a patch for the previously broken installers that I mentioned in the other forum post?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Cannot reproduce installer with upgraded AI

Hello,

Advanced Installer supports two ways of updating an already installed application:
  • -Upgrades
    -Patches
A patch contains only the differences between two version of the product and can be created only between two MSI installation packages. Also, when creating patches you should make sure that all patches rules are fulfilled.

A major upgrade is essentially the removal of an older product which is replaced by a newer product. In Advanced Installer the upgrades can be configured from the UpgradesView.
Basically, the upgrade process performs the following actions:
  • -Detect and completely remove older products.
    -Install the new product.
Also, you can take a look on the Upgrade an older version of the package article which may be useful to you.

If you want to remove a broken installation, you can follow the approach from the How do I remove a broken installation article.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
donaddon
Posts: 15
Joined: Wed Apr 30, 2014 6:21 pm

Re: Cannot reproduce installer with upgraded AI

Hi Dan,

Thanks for those details. I tried creating a patch, an upgrade, and using the steps for upgrading a broken version, but I'm still encountering the uninstall error in each case. I have provided details in the other thread: http://www.advancedinstaller.com/forums ... 071#p75071

Thanks!

Return to “Common Problems”