blake.blackwell
Posts: 2
Joined: Thu Feb 18, 2010 7:53 pm

Warning 4154

I am getting a "Warning 4154" when trying to create a prerequisite installer. The message is "Required Application prerequisite was not correctly installed. Continue installation of <app>?" I am not sure why my prereq is failing, because I am just adding some dlls to a directory. Is there a way to better trouble shoot this to get to the bottom of this? Thanks!

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

Re: Warning 4154

Hi Blake,

You must make sure your prerequisite install conditions are correct from the conditions tab.
These conditions are evaluated two times:
- first to determine whether the prerequisite should be installed
- a second time, after the prerequisite has been installed, to determine whether the prerequisite install was successful
The reason you are receiving that warning is because the second time your conditions were evaluated, they failed.
You should reevaluate your conditions for the prerequisite whose install was reported to have failed.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
blake.blackwell
Posts: 2
Joined: Thu Feb 18, 2010 7:53 pm

Re: Warning 4154

Thanks a lot! Once I added a valid condition, the issue went away. Thanks a lot for your help!

Blake
shafwan
Posts: 8
Joined: Mon Jan 31, 2011 4:44 am

Re: Warning 4154

Hi,
Can somebody teach me how to make a valid install condition because I'm still new in Advanced Installer.. I don't really understand how the install condition works.. Please help me.. Urgent.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Warning 4154

Hello and welcome to the Advanced Installer Forums,

Since you are new, I highly recommend you read our tutorials for a better understanding of how to use Advanced Installer to efficiently deploy your products.This will also help you better understand support team's suggestions now and in the future.

The Simple and Professional tutorials are especially important and the Professional's Add Prerequisites section can help you understand prerequisite's install conditions.

If you have any trouble understanding the articles and tutorials in the links above please don't hesitate to ask.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shafwan
Posts: 8
Joined: Mon Jan 31, 2011 4:44 am

Re: Warning 4154

Hi,
I already look at the tutorial and there is no problem to create an installer with one prerequisite. But in my case, I have two prerequisites that has to be installed before the main installer. The problem is only one prerequisite installed and the other one having a warning 4154 problem. There's something wrong with the install condition or what? Because the install condition for the second prerequisite is the same with the first one. Any idea?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Warning 4154

Hello,
Because the install condition for the second prerequisite is the same with the first one.
Please note that the install condition represents a key change brought by the prerequisite on the target computer( for example a registry entry ). This is used as a detection criteria when the prerequisite is installed. If the criteria is met, the installer interprets the prerequisite is already installed on the target machine. If not the installer installs the prerequisite. In your case, for two different prerequisites you should have two different install conditions.

All the install conditions are evaluated at startup and a list with the prerequisites that need to be installed is created. The prerequisites are checked for install and installed. After each prerequisite is installed its conditions are gone through again to verify if the prerequisite was correctly installed. This type of error is usually shown when the install condition is not met after the prerequisite is installed.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shafwan
Posts: 8
Joined: Mon Jan 31, 2011 4:44 am

Re: Warning 4154

Hi,
I really don't understand how the install condition works. I have two prerequisites. Both have different install condition. But the warning still happens. I followed the tutorials for install condition, but it just focused on single prerequisite. Can you show me how the install condition work thoroughly for two or more prerequisite?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Warning 4154

Hello,

It is fairly simple for each prerequisite.
You will need to add an install condition search that is false before the prerequisite is installed and true after the prerequisite is installed. If the install condition search is not true after the prerequisite is installed, then the warning will be shown.

The logic is that the file version or registry value in the search must be included in the prerequisite somehow. If the prerequisite is already installed, the package will acknowledge the search is true and it won't attempt another installation on the target machine.

You can test several of our global predefined prerequisites and see their install conditions.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shafwan
Posts: 8
Joined: Mon Jan 31, 2011 4:44 am

Re: Warning 4154

add an install condition search that is false before the prerequisite is installed and true after the prerequisite is installed.
what do you mean by that? Do you mean that I have to add two install condition?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Warning 4154

Hello,

No, just one install condition.
For example a registry value search. This registry value search will return true if the prerequisite is installed and false if the prerequisite is not installed. If the prerequisite is already installed( the search is successful ), its install will be skipped by your package. If the prerequisite is not installed( the search fails ), it will be installed by your package. As a result of its install, the prerequisite will update or create the registry value so the search will be successful when performed again, thus the prerequisite install skipped.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shafwan
Posts: 8
Joined: Mon Jan 31, 2011 4:44 am

Re: Warning 4154

hi,
Okay I tried it with two prerequisite and the installer just execute the first prerequisite smoothly and when the first prerequisite is installed, the installer just finish. It skips the second prerequisite. Why?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Warning 4154

Hi,

This is because the second prerequisite's install condition is already met. If it's set correctly it means the prerequisite is already installed on the target machine.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shafwan
Posts: 8
Joined: Mon Jan 31, 2011 4:44 am

Re: Warning 4154

Thank you so much! the issue went away. :)
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Warning 4154

You're welcome, glad to help.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”