PDA

View Full Version : Check for Flash


jimscharff
08-28-2004, 02:52 AM
I wanted to allow users to install Flash from my CD if they do not have the file present (ie Flash 6). I wanted to avoid using the dependency checker (and forcing users to go to the internet). I have included the Flash 6 installer on my CD in the DOCS directory.

It works fine - and I have included the code below since I can see from this forum that others have been trying to do the same (unsuccessfully).

In the pre-load action of Page 1 put :

getflash = File.DoesExist(_WindowsFolder.. "/system32/macromed/flash/flash.OCX");
Page.Jump("Intro");
end

On page 1 put the Flash installer button (and maybe a link to the Macromedia web site in case user's do not trust installing a file from a CD).

I have included this code only since it is important (for some odd reason) that the slash strokes are forward facing in order to find a file below the root directory. This might have tripped a few of you up (it caused me some time to track down).


I hope this helps. Shared knowledge is good thing!




Jim

itamar
08-28-2004, 03:55 AM
I ran a search in the fourms looking for "macromedia flash" and found a lot of Threads about it.

check this one http://www.indigorose.com/forums/showthread.php?t=7611&highlight=macromedia+flash

By the way, you should go to Macromedia homepage and learn more about distrbuting their flash player in your CD, you'll need to fill a form or something like that.

Itamar.

jimscharff
08-28-2004, 04:46 AM
I appreciate the links to the other Flash related topics. Thanks.
I am licenced to distribute the Macromedia Flash Player (but you are right to point out that authorisation must be obtained from Macromedia).

I note that WORM has also pointed out that to have a backslash working in a string, it is important to "double-up", such that the following would have worked :

getflash = File.DoesExist(_WindowsFolder.. "\\system32\\macromed\\flash\\flash.OCX");


Isn't ignorance a pain!?


Thanks again. I am wiser for the help.




Jim