Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28385 Discussions

How to determine if run time libraries are installed

Brian_Murphy
New Contributor II
318 Views

Is there any possibility to determine whether the redistributables are already installed before running the .msi installer file?   I am using INNO setup to install a console application.

This question went unanswered in an earlier thread.  So I am asking it again in hopes someone can provide some help.

0 Kudos
3 Replies
Steve_Lionel
Honored Contributor III
318 Views

You could call LoadLibrary on libifcorert.dll and see if it succeeds. If it did, I'd use the Windows API calls to get its version and make sure it's at least as high as what you support. That doesn't guarantee that all of the redistributables are installed, but if you check for each of the ones you care about, that should work. But most installs I see automatically install redistributables anyway - it does no harm if they're already there.

0 Kudos
Brian_Murphy
New Contributor II
318 Views

Thanks, Steve.

I will go with always running the .msi installer.  I am new to INNO setup, and I will try to figure out how to pass command line flags to spare the end user from dealing with the .msi's own GUI wizard.

0 Kudos
IanH
Honored Contributor II
318 Views

I have always just used the merge modules as part of my msi, then the gui is under my control. The merge modules only install the runtime stuff if it is missing or out of date.

0 Kudos
Reply