Hello Daniel and welcome to our forums,
PROBLEM ONE:
I have been trying to install my few prerequisites based on checkbox conditions in my app, however everytime, I give them "/qn or /qb" in "Install Command Lines" to install in silent mode, they gave me a "Warning 4154".
When I remove that(/qn or /qb ), they can be installed normally, but You need to click those unnecessary dialogs to install them. What should I do?
This is quite strange, as I have never heard of such case that the prerequisite would "fail" if you run it silently.
If possible, could you please let me know which prerequisite you are trying to install so I can run some tests on my end? It would really help if you could also give me the entire command line used for it and its version so I can download the correct one.
Usually the error 4154 is a warning that is related to your install conditions. These conditions are evaluated as it follows:
- before the installation -> here, the conditions must be false, meaning that the prerequisite is not installed, resulting in the prerequisite being installed
- after the installation -> here, the conditions must be true, meaning that the prerequisite was correctly installed
Warning 4154 is displayed in case the condition is
false after the installation.
We can avoid this by checking the
"Continue with main installation even if the prerequisite is not installed" option from the prerequisite's
"Properties" tab.
PROBLEM TWO:
Also there is another problem which is connected to this. If I'm trying to uninstall whole app, with prerequisites. Prerequisites stay and I need to uninstall them separately. I have tried
https://www.advancedinstaller.com/user- ... l-msi.html, but it does not helped.
I'm getting this message, if I'm trying to uninstall it.
Which means - This action is valid only at products, which are installed at the moment.
If after the installation of your main product, you go to
"Control Panel", are the prerequisites still there?
The message you are encountering would indicate that the prerequisites are not installed on the machine when you try to execute the custom action.
Best regards,
Catalin