srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Software Prerequisites

Hello,

I am setting software prerequisites to my package by adding those packages in the 'Software Prerequisites' tab of the 'Prerequisites' section. So I go on pressing 'New' and select a file. In the dialog that follows, in the 'Set File' section and in the 'Location' field the installer displays 'File in Package'. This gives me the impression that the final MSI is going to include the Prerequisite installers and going to call them just before installing my package. But this does not seem to be the case. What happens is the installer just copies those installers to the folder where my MSI is created. Is this how it is supposed to work? If so what is the purpose of this software prerequisite? Moreover I tried my MSI without the ones copied to the my MSI folder. My installer runs without any complaints about those prerequisite installers. Am I missing something here? I just have started using the Advanced Installer.

Please help.

Thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Software Prerequisites

Hello,

Please note that the Prerequisite function is not directly supported by an msi. Thus Advanced Installer creates an .exe. This is the file that needs to be launched in order for any check for prerequisites to take place and subsequent installs of the missing prerequisites. By default, the msi and prerequisites are left outside the exe. In order for the .exe to also include the .msi and the prerequisites, you will have to go to Media Page->Bootstrapper tab and select "Include install files in EXE". You will thus only need to distribute the .exe.

For more details you can check the Add Prerequisites section. Nonetheless you should check out all tutorials there to help you get started with using Advanced Installer.

Thank you for your interest in Advanced Installer.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Software Prerequisites

Hi Gabriel,

Thanks for your response. It makes sense to enable the "Include install files in EXE". It worked.

But what did not work is the 'actual' installation. So, I started the installation; it installed all the prerequisites and after all of them were installed it displayed an error as follows:

"After launching all the packages some required prerequisites are still missing. Press Back to return to the prerequisites list."

But the status (displayed above this error message) says that all of them were "Installed". If I press Back and next again, it starts installing the packages again and displays the above error again. Any idea?

Thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Software Prerequisites

Hello,

Please note that each prerequisite has an "Install Condition". This condition is evaluated both before and after the prerequisite installed. If it does not pass the check, the error you are referring to is displayed. This is to ensure both that a prerequisite installer does not launch if the prerequisite is already installed, and to make sure the prerequisite installed successfully. Please make sure you are using a correct condition.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Software Prerequisites

Hi Gabriel,

That's a great help. I have got this solved now. Thanks for your help.
kwinx
Posts: 3
Joined: Wed Oct 28, 2009 7:25 am

Re: Software Prerequisites

Hi Srini,

I also encountered the same error. I have set the conditions but still I got the same error. I would like to ask if what were the Launch Conditions you have set. Maybe from there I could get some ideas what I was missing.

Thanks in advance.

Kwinx
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Software Prerequisites

Hello,

Please describe in detail the nature of your problem. Also note that the conditions Srini set were specific to his own prerequisites.
Our guide on Adding prerequisites explains the process of adding a prerequisite to your package.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
kwinx
Posts: 3
Joined: Wed Oct 28, 2009 7:25 am

Re: Software Prerequisites

Hi Gabriel,

I have included MySQL Server 5 installer as a prerequisite together with my Java application in my installer package. I followed the tutorial on adding prerequisites. I used the conditions that are specified on the tutorial.

I used the installer and got MySQL installed in my system but I got this error: "After launching all the packages some required prerequisites are still missing. Press Back to return to the prerequisites list."

By the way, I am using an evaluation copy of Advanced Installer.
jtroyan
Posts: 20
Joined: Mon Oct 19, 2009 9:41 pm

Re: Software Prerequisites

If you have MySql installed on the machine where AI is installed, you can click the 'Test' button on your install condition to validate the rule is working.

The rule can be a file version test, using the path C:\Program Files\MySQL\MySQL Server 5.0\bin\MySQLd.exe or something similar (depending on where your install of MySQL is). Min Version set as 5.0. Hope that helps. :)
kwinx
Posts: 3
Joined: Wed Oct 28, 2009 7:25 am

Re: Software Prerequisites

Hi Jtroyan,

I'll try this one out.

Thanks,
Kwinx
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Software Prerequisites

Hi Kwinx,

Sorry for no replying. Just back to this forum after some time. Please let us know how you are getting on with your problem.

Srini

Return to “Common Problems”