How to install a Prerequisite (Always) - 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!

QfG
Posts: 10
Joined: Wed Jun 08, 2011 6:45 am

How to install a Prerequisite (Always)

Hello,

what can i do that a Prerequisite always installing. I mean a older DirectX9.0c Version. My Application needs this Version of DirectX9.

The Problem is, the defined Prerequisite DirectX9 type me by testing "Succes", so the Prerequisite will not install.
If i use a fake Setting (for Example Search Product Code (000000-000000-000000-000000) the Prerequisite starts the install,
but i become a "Error Message" by the Installer and cannot Install the Main Package. (only by using the /silent Switch)
In another Thread in this Forum i read this doing if the Bootstrapper or the MSI Installer becoms a "Failed" testing
after installing the prerequisite.

How can i correctly install a Prerequisite, that exists on my System ?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to install a Prerequisite (Always)

Hello,

Unfortunately, there is no predefined support for this functionality in Advanced Installer yet. However, we already have it on our TODO list and it will be available in a future release. Until then, you can implement it from within your own custom action.

Depending on the prerequisite's type, here a couple of articles to get you started:
http://www.advancedinstaller.com/user-g ... r-exe.html
http://www.advancedinstaller.com/user-g ... r-msi.html

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
QfG
Posts: 10
Joined: Wed Jun 08, 2011 6:45 am

Re: How to install a Prerequisite (Always)

Thank you for your Help. With the custom Actions i found it is very.... hard to use :D

I have found a easy solution for my Problem:

I have use a fake Test (Search for Program ID and then 0000-0000-0000-0000) now i have the wanted "Failed" by testing.
Then i have checked the button "Chain Prerequisite installation after Main package". The Prerequisites now installing at the End of the Setup, without any Errors.

Why ? I don't know but it works :D

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

Re: How to install a Prerequisite (Always)

Hi Tim,

If the prerequisite is installed after the main package, it's not checked anymore. This is the normal behavior.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
QfG
Posts: 10
Joined: Wed Jun 08, 2011 6:45 am

Re: How to install a Prerequisite (Always)

Thank you Cosmin, this is the solution for some kind of problems.

There is a little Bug on Advanced Installer. If i will install the Prerequisite after the Main Package and building a Multi-Volume DVD, Advanced Installer copied the Prerequisites in the Folder from DVD1, but the Prerequisite must be in the Folder of the Last DVD. I copied the Files manually to the Folder from the last DVD, this works fine. It is only a little Bug maybe that fixes it so the next version.

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

Re: How to install a Prerequisite (Always)

Hi,

We will improve this in a future Advanced Installer version. Thank you for your suggestion.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”