Hi all,
I am distributing a web site on CD for some users who need to use it in environment where they do not have internet access.
The protection mode in Internet Explorer prevents it from accessing local flash files, so I can't allow the user to open the site off the CD in Explorer as it simply won't work.
Thus, I plan to distribute Firefox Portable on the CD. I've been able to configure it such that Firefox Portable starts up and loads the local html file when the CD is inserted, but of course because I am distributing on CD, it is necessary for the user to wait while Firefox portable copies over to the temp directory of their internal hard drive.
For users who already have Firefox installed, this may be frustrating, as it happens even if they already have FireFox open when they insert the CD.
Is there any way of using the .ini config file to get Firefox Portable to check for the availability of an existing Firefox installation, and if it finds one, to use that instead?
Any help appreciated,
loyalwhite
I'm thinking you would have to write some sort of script to check for the existance of a local firefox, and if it does not exist, launch the portable. Then your autorun.inf file would launch this script, rather than an executable
The developer formerly known as ZGitRDun8705
Thanks Zach. If this essentially means writing and compiling an exe file to do this, then I don't have the skills or software required. I think I am correct in saying that it would have to be an exe file in order to be called from the autorun.inf file.
If anyone else has any other suggestions they'd be gratefully received.
AutoHotkey is one of the easiest to learn scripting languages out there, it's free and open source, and comes with a script to exe tool. Their help file is extremely well written, contains at the very least a detailed explanation of each function, and 9 times out of 10 an example too.
EDIT: Here's your script, you'll have to update the PathToYourFirefoxPortable to be a relative path to the location of this script, and add the path to your html file to the end of both Run commands. If you download the autohotkey package, once you edited the script, you can compile it to an exe
The developer formerly known as ZGitRDun8705