Archive: Detecting Flash version in NSIS installation


Detecting Flash version in NSIS installation
My software is coded in Visual Basic and contains Macromedia Flash. When end-user runs my NSIS installer, the installer should detect Flash and to a) upgrade their Flash or b) install the latest Flash

I have found pages:
http://nsis.sourceforge.net/Special:Search?search=flash
http://nsis.sourceforge.net/Get_Macr..._Flash_version

However, they seem like they are placed in your main application and NOT your NSIS file (*.nsi).

In a nutshell, what do I need to do to integrate the ability for my NSIS installation to determine if my user is or is not running latest version of Flash and to install Flash so that users can see my Flash embedded into my Visual Basic application?

Much appreciated and want to extend happy holidays to you.


The pages that you've found contain pure NSIS code. They are examples that you could modify to suit your needs, or not if it's not necessary, it's up to you, thus you could implement them in your own script.
Also, you may search the forum, for instance, here is a result from a quick search.
http://forums.winamp.com/showthread....t=detect+flash


Ok I put the code into my NSIS script but it shows just shows my current flash OCX version. Put simply, what code do I need to put in to download the latest version of Flash player if the user's version isn't current.


Probably the best option is perhaps to include the installer for the latest version of flash in your own installer.

You can then check to see if they have a particular version installed that is required, and if not, then execute the flash installer.

Is the 'latest' version required? It would be hard to know where to retrieve the latest installer from the internet.

My 2 cents worth...


Ok I put the code into my NSIS script but it shows just shows my current flash OCX version.
Also this would detect if flash is installed on the target machine.
Then you should add some code to perform the comparison if the version is current, and if current continue with the installation, if not current, download the last release from adobe server, execute it, and continue with the installation.
Check this plugin http://nsis.sourceforge.net/InetLoad_plug-in for info about downloading.

Hi Daniel,

Sorry just noticed your post a little late but I guess the script attched herewith is what you need.
Feel free to use it as it is or modify as per your requirement.

edit: Watch out for the exact file path of flash installer on line 52 of the attached code.