activate the new icons

This commit is contained in:
Mario Fetka
2013-05-08 18:49:41 +02:00
parent af58d8c462
commit 5e8e00644b
2 changed files with 3 additions and 4 deletions

View File

@@ -120,14 +120,13 @@ If exist "%System%\defaultassociations.xml" (copy "%System%\defaultassociations.
SET Prog=$ProgExe$
SET Prog=%Prog:~0,-4%
SET SC=HKLM\Software\Classes
rem SET Extn=$ImageTypesExt$
SET Extn=bmp-55 dds-60 gif-65 jpg-70 jpeg-70 pcx-75 png-80 psd-85 tga-90 tif-95 tiff-95
SET Extn=$ImageTypesExt$
FOR %%j IN (%Extn%) DO (
FOR /F "tokens=1,2 delims=-" %%A IN ("%%j") DO (
REG ADD %SC%\.%%A /VE /D "Imagine.%%A" /F
REG ADD %SC%\Imagine.%%A /VE /D "%%A Image" /F
REG ADD %SC%\Imagine.%%A\DefaultIcon /VE /D "$InstallDir$\%Prog%.dll,%%B" /F
REG ADD %SC%\Imagine.%%A\DefaultIcon /VE /D "$InstallDir$\Icons\%%B.ico" /F
REG ADD %SC%\Imagine.%%A\shell\open\command /VE /D "\"$InstallDir$\%Prog%.exe\" \"%%1\"" /F
copy "$LogDir$\defaultassociations.xml" "$LogDir$\defaultassociations.xml.old"
xml ed -d /DefaultAssociations/Association[@Identifier='.%%A'] "$LogDir$\defaultassociations.xml.old"> "$LogDir$\defaultassociations.xml"