@ECHO OFF

REM File handle registration script for Apo7x
REM (c) 2012 G.Kiehne / Xyrus-Worx.org

ECHO Registering file type ".flame"...
REG ADD HKCR\.flame /f 1>NUL
REG ADD HKCR\apoflame /f 1>NUL
REG ADD HKCR\apoflame\DefaultIcon /f 1>NUL
REG ADD HKCR\apoflame\Shell /f 1>NUL
REG ADD HKCR\apoflame\Shell\Open /f 1>NUL
REG ADD HKCR\apoflame\Shell\Open\Command /f 1>NUL
REG ADD HKCR\apoflame /f /d "Apophysis Fractal Flame Batch" 1>NUL
REG ADD HKCR\apoflame\DefaultIcon /f /d "%~d0%~p0Resources\flame.ico" 1>NUL
REG ADD HKCR\apoflame\Shell\Open\Command /f /d "\"%~d0%~p0Apophysis7X.exe\" \"%%1\"" 1>NUL
REG ADD HKCR\.flame /f /d "apoflame" 1>NUL

ECHO Registering file types ".asc" and ".aposcript"...
REG ADD HKCR\.asc /f 1>NUL
REG ADD HKCR\.aposcript /f 1>NUL
REG ADD HKCR\aposcript /f 1>NUL
REG ADD HKCR\aposcript\DefaultIcon /f 1>NUL
REG ADD HKCR\aposcript\Shell /f 1>NUL
REG ADD HKCR\aposcript\Shell\Open /f 1>NUL
REG ADD HKCR\aposcript\Shell\Open\Command /f 1>NUL
REG ADD HKCR\aposcript /f /d "Apophysis Script" 1>NUL
REG ADD HKCR\aposcript\DefaultIcon /f /d "%~d0%~p0Resources\script.ico" 1>NUL
REG ADD HKCR\aposcript\Shell\Open\Command /f /d "\"%~d0%~p0Apophysis7X.exe\" \"%%1\"" 1>NUL
REG ADD HKCR\.asc /f /d "aposcript" 1>NUL
REG ADD HKCR\.aposcript /f /d "aposcript" 1>NUL

ECHO Registering file type ".template"...
REG ADD HKCR\.template /f 1>NUL
REG ADD HKCR\apotemplate /f 1>NUL
REG ADD HKCR\apotemplate\DefaultIcon /f 1>NUL
REG ADD HKCR\apotemplate\Shell /f 1>NUL
REG ADD HKCR\apotemplate\Shell\Open /f 1>NUL
REG ADD HKCR\apotemplate\Shell\Open\Command /f 1>NUL
REG ADD HKCR\apotemplate /f /d "Apophysis Template" 1>NUL
REG ADD HKCR\apotemplate\DefaultIcon /f /d "%~d0%~p0Resources\template.ico" 1>NUL
REG ADD HKCR\apotemplate\Shell\Open\Command /f /d "\"%~d0%~p0resinstall.exe\" template \"%%1\"" 1>NUL
REG ADD HKCR\.template /f /d "apotemplate" 1>NUL

ECHO.
ECHO Press any key to continue . . .
PAUSE > NUL