Archive: associating files


associating files
i want to associate a flash file with internet explorer so that i can can run the file via a command such as:

Exec "$INSTDIR/flash.swf"

and it will automatically open it with Internet Explorer.

I know this isnt hard, i just don't know how to do it.


>> $INSTDIR/flash.swf

this is not possible...

its always eg. '"iexplore.exe" flash.swf'

in some cases "start file" will work - this was target of many questions starting html-pages from cdrom w/o having 3rd party browsers on this cd.
atomicegg was one of the first who had a solution.

but in most cases you have to determine the rigth applikation from registry and start it with parameter.


so look HKCR\.swf
HKEY_CLASSES_ROOT\.swf\OpenWithList\IExplore.exe

then
HKEY_CLASSES_ROOT\Applications\iexplore.exe\shell\open\command
(strip the %1 there)
and start the file.

or here
HKEY_CLASSES_ROOT\ShockwaveFlash.ShockwaveFlash\shell\open\command
(strip the %1 there)
and start the file.