Prerequisites removal - Advanced Installer Community
DJM2305
Posts: 5
Joined: Mon Sep 09, 2013 1:39 am

Prerequisites removal

I am evaluating the 'Pro' version and have a small issue with the prerequisite configuration.

I have a number of packages to create, install and periodically update for our own internal company use. (they wont be made public)
Most will be auto-installed but there may be a few cases where some need to be downloaded and installed by the end user. (ie laptops)

Each package will contain a sub set of document templates, each grouped according to function.
There is also one package which contains files that are common to all the packages.

eg:
P1.msi contains document templates on buying a car.
P2.msi contains document templates on buying a house.
P3.msi contains document templates on buying a train.
P4.msi contains document templates on buying a plane.
PBase.msi contains document templates which are used by all these packages, eg like a list of phone numbers.

Any of the files in P1-P4 and PBase could be updated at each update cycle. (ie PBase does not contain only static files, they may change)

I tried adding PBase as a prerequisite on P1 and P2 and P3 and P4. When I test installed P1, it also installed PBase successfully. When installed P2, it did not install PBase again. Same with P3 and P4. All good.

However, and here is the issue, if I uninstall P3, it removes PBase as well, even though P1 and P2 and P4 are still installed, thus breaking the whole installation.

Is there a switch/option/etc to tell the un-installer to not remove the prerequisite file installation?
Or some counter that does not remove the prerequisite file if any of the parent package are still installed. ?

In my case, I don't care if the prerequisite packages are left behind and not removed at all. I just want to stop them being uninstalled.

I considered making PBase a separate download, but that would require the end user to download and install it as well as P1 (or P2 or p3 or P4) which adds another step that could go wrong, be ignored, or overlooked.

Cheers,
Darryl
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Prerequisites removal

Hello Darryl and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure why you encountered this behavior. Can you please send us the .AIP (project file) to support at advancedinstaller dot comso we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DJM2305
Posts: 5
Joined: Mon Sep 09, 2013 1:39 am

Re: Prerequisites removal

Hi Dan,

Unfortunately, I've been called away to work on another project for the rest of this week, so I will create a dummy test project early next week and send you the results.

Its pretty much as described, 4 packages with another package as a prerequisite for all of them, install all 4, remove any one and the prerequisite package is also removed.

Using Advanced Installer v10.3.

Cheers,
Darryl
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Prerequisites removal

Hello Darryl,

Until you make the dummy test project, can you please tell us how your prerequisite is added(as a Pre-install one, Feature-based one etc.)?
If your prerequisite is a "Feature-based" one, please make sure you don't have the command line argument for "Uninstall" in the "Maintenance Command Lines" panel from the Setup Files tab of the related prerequisite.

You can also take a look on the Add prerequisites tutorial which may help you.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DJM2305
Posts: 5
Joined: Mon Sep 09, 2013 1:39 am

Re: Prerequisites removal

A follow up to my original post.

I did create a set of dummy packages with one or two files in each and made one a prerequisite of the others. When I tested it, it all worked properly and the prerequisite was installed as it should, and not removed.

I went back to my original set of files, but as I had already updated to V 10.5.2, the older files were converted to the 10.5.2 format. However they would not build and kept throwing up an error.

So I started over again and recreated the original packages in V 10.5.2 and I have not seen the error since.

Regards,
Darryl
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites removal

Hi Darryl,

So, the problem with the prerequisite removal is not encountered anymore?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”