janisito
Posts: 78
Joined: Thu Apr 09, 2015 6:28 am

Always install prerequisite doesn't work

Hi,

Thank you for an awesome install product!

My feature based prerequisite (SQL Server Express 2017) installs fine when "Install prerequisite based on condition" is selected. When I switch to use "Always install prerequisite" AI does not even try to install the prereq. It seems to be a bug. Would be nice if this feature worked.
Always install prerequisite
Always install prerequisite
Always install prerequisite.png (52.06 KiB) Viewed 5306 times
Regards
Jan
janisito
Posts: 78
Joined: Thu Apr 09, 2015 6:28 am

Re: Always install prerequisite doesn't work

Adding to this question. What I want to achieve is installing SQL Server Express 2017 (as a prerequisite) each time the user selects to create a new instance of the SQL Server in the installer dialog. I don't want the installer to evaluate a registry key to check if SQL Server Express 2017 is installed or not since a user can have many instances of the SQL Server installed at the same time, and let my installer properties decide if the prerequisite should be installed or not. How can I accomplish this now that this "Always install prerequisite" doesn't seem to work?

Regards
Jan
janisito
Posts: 78
Joined: Thu Apr 09, 2015 6:28 am

Re: Always install prerequisite doesn't work

I have been struggling with this.

I think my approach is incorrect. Instead of trying to install SQL Server 2017 Express as a prerequisite, maybe I should install it using a custom action each time the user selects to create a new instance from the installer dialogs (since it should be possible to install more than one time). At what stage in the installation sequence would I execute this custom action? This custom action should be triggered by an install parameter from my dialogs.

Regards
Jan
janisito
Posts: 78
Joined: Thu Apr 09, 2015 6:28 am

Re: Always install prerequisite doesn't work

I ended up changing it to be a custom action (LaunchFileFromProperty) that is triggered by the Install button, instead of being a pure prerequisite. It worked out in the end.
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: Always install prerequisite doesn't work

Hello Jan,

First of all, I apologize for the delayed reply.
Thank you for an awesome install product!
Thank you for your feedback.
My feature based prerequisite (SQL Server Express 2017) installs fine when "Install prerequisite based on condition" is selected. When I switch to use "Always install prerequisite" AI does not even try to install the prereq. It seems to be a bug. Would be nice if this feature worked.
I am not sure why this happens. Could you please send me a copy of your .AIP file and also a download link for the setup build using the .AIP by e-mail at support at advancedinstaller dot com so I can test this on our end (you can simply strip down your project to a basic size [for example, you can leave only the prerequisite, if that is enough to reproduce this]).
Adding to this question. What I want to achieve is installing SQL Server Express 2017 (as a prerequisite) each time the user selects to create a new instance of the SQL Server in the installer dialog. I don't want the installer to evaluate a registry key to check if SQL Server Express 2017 is installed or not since a user can have many instances of the SQL Server installed at the same time, and let my installer properties decide if the prerequisite should be installed or not. How can I accomplish this now that this "Always install prerequisite" doesn't seem to work?
This should normally be accomplished by using the "Always install prerequisite" plus a condition in the "Organization" page on the feature that is assigned to your prerequisite (as you may already know, a "Feature-Based" prerequisite creates a new feature in the "Organization" page).
I think my approach is incorrect. Instead of trying to install SQL Server 2017 Express as a prerequisite, maybe I should install it using a custom action each time the user selects to create a new instance from the installer dialogs (since it should be possible to install more than one time). At what stage in the installation sequence would I execute this custom action? This custom action should be triggered by an install parameter from my dialogs.
Yes, it is possible to use a custom action approach as well. The custom action should be added without sequence in the "Custom Actions" page (simply press the "Add custom action without sequence" button).
I ended up changing it to be a custom action (LaunchFileFromProperty) that is triggered by the Install button, instead of being a pure prerequisite. It worked out in the end.
I am glad you sorted things out, Jan. It would still be useful if you could help me further investigate this by sending me a copy of the project and a download link for the setup (as I have earlier mentioned, if only the prerequisite is enough to reproduce this, you can simply remove all the files from the project).

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
janisito
Posts: 78
Joined: Thu Apr 09, 2015 6:28 am

Re: Always install prerequisite doesn't work

Hi Catalin,

Ok. It will take some time to get you the stripped down AI-file that you can use to reproduce the error. I'll try having it for you by the end of the week.

Regards
Jan
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: Always install prerequisite doesn't work

Thank you for your followup on this, Jan.

I am looking forward to hearing from you.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
janisito
Posts: 78
Joined: Thu Apr 09, 2015 6:28 am

Re: Always install prerequisite doesn't work

Hi,

I need to retract from my previous statement that it doesn't seem to work. When forcing the installation the actual prereq installer itself is the one that detects that a newer version already is installed and hence aborts the installation of a lower version. So it's outside of AI. I'll let you know if I find anything else.

Thanks,

Regards
Jan
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: Always install prerequisite doesn't work

Hello Jan,

Thank you for your followup on this. I am glad you found the culprit in your situation.
I'll let you know if I find anything else.
Sure, just let me know if there is anything else I could help you with.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”