Chain prerequisite - Advanced Installer Community
hadas
Posts: 43
Joined: Mon Jan 06, 2014 10:53 am

Chain prerequisite

Hi,

In my installation I need to install third-party software. When we installed this before we used a bat file calling setup.exe in minimal UI mode. The bat file also copied the licence files as part of the installation.
1. When exactly the chain prerequisite is being called? I've used the MSI but nothing seem to happen.
2. I've tried calling the setup.exe from the pre-install. when I use full UI it works but at the end of the installation I get an error message saying "After launching all packages some required prerequisite are still missing...." That was the only prerequisite I have.
3. When and how I can copy the licence file to the ProgramData folder?

Thanks,
Hadas
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Chain prerequisite

Hello Hadas,
In my installation I need to install third-party software.
You can add a prerequisite to your installation package in the Prerequisites page. You can also take a look on the Add Prerequisite article which may help you.
If the related is not in our predefined list the you can add it using:
- [ New Package Prerequisite ] toolbar button to create a new prerequisite using files from disk.
- [ New URL Prerequisite ] toolbar button and add the download URL of the prerequisite.

Please keep in mind that this type of prerequisite is created with default settings, so you need to configure it manually. The best way to see what install conditions you should use is to install the prerequisites on a clean machine and see what changes take place.

Usually the easiest way is to see changes that affect the registry hive, HKCU or HKLM. You can also see if certain files are installed on the machine, for example a specific DLL file or EXE and search for them in the Install Conditions tab, Searches group.
When exactly the chain prerequisite is being called? I've used the MSI but nothing seem to happen.
In the InstallExecuteSequence Table from the Table Editor page you can see the lists actions that are executed.

If you want to create a chained installation, you can take a look on the How do I create a chained installation article.
2. I've tried calling the setup.exe from the pre-install. when I use full UI it works but at the end of the installation I get an error message saying "After launching all packages some required prerequisite are still missing...." That was the only prerequisite I have. 
This is usually caused by a wrong "Install Detection" criteria. The "Install Detection" criteria is used first to decide if the prerequisite needs to be installed, after that it's evaluated again to see if the prerequisite was installed correctly. So please verify the "Install Detection" criteria you use for your prerequisites in the Install Conditions tab.
3. When and how I can copy the licence file to the ProgramData folder?
The folders from Files and Folders page use predefined and custom installer properties which store their paths.

Please let me know if that helped, otherwise give us more details.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”