dpeluso
Posts: 4
Joined: Fri Nov 16, 2012 6:26 am

Installing over existing install.

Hi All,

I have searched this topic and found some helpful info but nothing for exactly what I need.

I am trying to allow an install to run over the top of an existing install with the same version information even if the contents of the install are different. This is something that I was able to do in InstallShield with no issue but from my reading, it seems that this should not be possible. It seems related to the package code but reviewing InstallShield settings seems to indicate that the package code is changing on every build similar to the Advanced Installer package code.

Ideally:

1. I would like to have a product built today with version x.y.z
2. Re-building this again tomorrow with the same version would allow installation over the top of any existing install. (Repair/Modify/etc prompt is expected)

As mentioned, this does work in InstallShield. Was this just a fortunate(for me) bug in IS? This seems like a common need so I would think it should be possible.

Thanks for any advice.

-Dan Peluso
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Installing over existing install.

Hi Dan and welcome to our forums,

This is possible in Advanced Installer too, but only if you launch the setup directly from Advanced Installer, i.e. using Run (F5) command. What it happens is that Advanced Installer automatically removes the old version and than launches the installer for your latest one.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dpeluso
Posts: 4
Joined: Fri Nov 16, 2012 6:26 am

Re: Installing over existing install.

Thanks for the response. The idea of running the installer in design mode could *almost* work.

This is primarily an issue for our internal testing group. They are used to being able to simply run the latest build on top of the previous day's without an uninstall. For our public releases, we always update the version number anyway so I don't expect this to be a problem there.

I am still confused on the difference between your installer and my previous hell-ish experience with IS (ironically which worked how I wanted it for this case).
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Installing over existing install.

For our public releases, we always update the version number anyway so I don't expect this to be a problem there.
This is correct, it will surely not occur.
This is primarily an issue for our internal testing group. They are used to being able to simply run the latest build on top of the previous day's without an uninstall
I understand, let me give you more insight on this, as what you say can be done in certain scenarios. If you create and MSI as output, this cannot be done by simply executing the MSI package, you must launch it from Advanced Installer/InstallShield for the older version to be removed. This I can guarantee that could not be done with an MSI created by InstallShield too.

The only way this could work is if you had created an EXE as output, which is actually a wrapper over the MSI, so the EXE can check if the older version exists and trigger its removal before launching the latest MSI. I am not aware of this feature being in InstallShield, but maybe I missed it. However, this is a very good improvement from which you can benefit so I have added it on our TODO list for a future version.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Igor Markovic
Posts: 17
Joined: Wed Jan 04, 2012 1:44 pm

Re: Installing over existing install.

Yes, this would be a great feature! Just an option like 'debug build' or 'reinstall same version' would be great for testing purposes as we create a new installer every night (and sometimes even multiple on the same day). This will let our testers just start the installer without the need of first uninstalling the "previous" version.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing over existing install.

Hello,

Thank you for suggestion. I have increased the priority of this improvement.

Also, as a workaround you can create a BAT file with two lines:
- First line will uninstall the existing installed package (e.g. msiexec /x {ProductCode})
- Second line will launch the latest build of your package.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing over existing install.

Hello,

This was added in version 10.2 of Advanced Installer released on May 27, 2013.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
User1432
Posts: 2
Joined: Wed Jan 22, 2014 4:33 am

Re: Installing over existing install.

Can you explain how to get this option working? I've got the latest Advanced Installer and I still get that option.

The options I've got selected are:
Package Type: Single EXE setup
Bootstrapper Options->Uninstall a package with the same version (if found): checked
User1432
Posts: 2
Joined: Wed Jan 22, 2014 4:33 am

Re: Installing over existing install.

Never mind, I've tried a couple more things and it worked.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing over existing install.

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm glad you got this working. If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MrSmoofy
Posts: 4
Joined: Mon Jul 11, 2016 10:01 pm

Re: Installing over existing install.

I realize this is an old thread but I'm trying to figure out how to get this to work.

I need the ability to go back and create a install of a previous version number and have it install over the top of where that same version number is already installed. Like a hot fix.

I found the checkbox to uninstall if the same version is installed but it doesn't seem to work and I suspect it is because I need to tell the installer when I'm creating an older version what the product ID was or something.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing over existing install.

Hello and welcome to our forums,

Your assumption is right. The "Uninstall a package with the same version (if found)" option will apply as long as a product with the same identification GUIDs (Upgrade Code, Product Code and Product Version).

So, you can either:
1. create in Advanced Installer a setup project with the same GUIDs (UpgradeCode, Product Code and Product Version) as your old installed setup and with the "Uninstall a package with the same version (if found)" option checked
2. or create in Advanced Installer a setup project using the same Upgrade Code, and a different Product Version and different Product Code (major upgrade) and in "Upgrades" page check the "Use original installation path when upgrading" option;

Either way you will have to detect at least the UpgradeCode GUID of your old version.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MrSmoofy
Posts: 4
Joined: Mon Jul 11, 2016 10:01 pm

Re: Installing over existing install.

If I have only the exe and msi of the installer for the older how would I get the information I need to put into advance installer so that when I make the project again it gets the same and detects the same and uninstalls and reinstalls.

Right now every time we build installers we increment the version number and always choose generate new product code.

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing over existing install.

Hello,

As a solution you can import the MSI with Advanced Installer and check the product information in "Product Details" page of the imported project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MrSmoofy
Posts: 4
Joined: Mon Jul 11, 2016 10:01 pm

Re: Installing over existing install.

Excellent that seemed to almost work perfectly.

Now what I'm seeing is that normally when we apply and update the dialog boxes are pre-filled in with the values from the previous install where doing this the dialogs are blank and the end user must re-enter everything.

Return to “Building Installers”