ordering prerequisites installation order - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

shazan
Posts: 3
Joined: Mon Apr 21, 2008 11:45 pm

ordering prerequisites installation order

Hi,
Im trying to create a installer for a java application that installs mySQL and runs some scripts before actually installing my java application.

The problem i have is that i dont know how to only run one prerequisite after the other has compelted. At the moment it seems to want to run all 4 of my prerequisites at the same time.

Any help within the next two days would greatly be appreciated as i need to get an installer made for a team project that i am doing and needs to be handed in, in 3 days.

Thank you for your help
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ordering prerequisites installation order

Hi,
The problem i have is that i dont know how to only run one prerequisite after the other has compelted.
I'm not sure I understand what you mean. Please note that the prerequisites are launched in the order you specify in the Software Prerequisites tab. Also, Advanced Installer waits until one prerequisite is finished before launching another one.

However, there are some cases in which the prerequisite package returns to soon and still performs some actions after returning a value. If this happens, Advanced Installer will consider that the prerequisite is finished and it will launch the next one. If the prerequisites are created by you then you should make sure that they return a value only after they are completed.

If the prerequisites are third-party, please specify them so we can try to find a way to avoid this behavior.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shazan
Posts: 3
Joined: Mon Apr 21, 2008 11:45 pm

Re: ordering prerequisites installation order

What happens is that the 1st prerequisite begins to run and right after it has begun the second prerequisite begins.

I am trying to install
1. MySQL 1.5 Community edition.
2. A custom patch for MySQL (it is a batch script which i turned into an exe).
3. A custom script that creates my MySQL schema (another batch script converted to an exe).
4. java JRE 1.6_6

The only way 2 and 3 will work is if MySQL is installed. I have used the parent option and told 2 that its parent is 1, 3's parent is 2, etc.

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ordering prerequisites installation order

Hi,

You are encountering this behavior because the MySQL installation package uses an EXE bootstrapper which most likely doesn't wait for the main installation to finish. Please follow these steps:
- launch the installation package of MySQL server
- let it run until it shows the first dialog of the actual installation package
- when this happens, do not close it and go to the Temp folder (usually its "C:\Documents and Settings\<username>\Local Settings\Temp")
- find the "mysql_server.msi" file and copy it to a safe location
- add this MSI file as a prerequisite instead of the "Setup.exe" file

Let me know if this doesn't solve your problem or if you are using a different installation package for MySQL Server.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shazan
Posts: 3
Joined: Mon Apr 21, 2008 11:45 pm

Re: ordering prerequisites installation order

That seems to have fixed it, all of the prerequisites run one after the other now.

Thank you so much for your help.

Return to “Common Problems”