PDA

View Full Version : Detecting and installing Flash Player


gonzalogomez
01-23-2004, 09:27 AM
How to do that?

Adam
01-23-2004, 01:45 PM
Hello,

First you would have to gain access to the Flash Player install file and make sure that you have the proper permissions to distribute it. The detection would require looking in the registry and finding a key that is set when this technology is installed. Once you have found this you can set up a script like this:

%RegVar% = ReadFromRegistry(.......your path here.....);
IF (%RegVar% = "somevalue")
Execute(........)
END IF

As far as the install file you would probably want to make it a primer file and access it that way. There is information in the users guide on using primer files.

Please feel free to post back here if you have any further questions.

Adam Kapilik

Elp
02-11-2004, 06:27 AM
Hi,

You can get a free license for the flash player on the macromedia web site. This will allow you to download the installer. You can then embed the installer as a primer file as Adam said or, if you are distributing your installer on a CD, you can add it directly to the CD. You can also download it from the web during the install proccess with the HTTP download action.

There's also a page on the macromedia web site that explains how to detect if flash is installed and which version is installed. As opposed as most other software, it doesn't involve checking the registry.

If you are looking for Flash 6 or higher, you have to check if the file %SysDir%\Macromed\Flash\Flash.ocx is present (you can get the flash version by checking the version of this file). For older versions, the file is called swflash.ocx (not sure about the name, check their web site).

Adam
02-11-2004, 04:41 PM
Elp,

Thanks for the tips. I will keep this in mind for future questions about detecting Flash.

Adam Kapilik