Changes

Firefox ext install downloads

365 bytes added, 15:36, 6 December 2011
install-extensions updated for 32/64 bit
:mozextn
if exist "%ProgramFiles%\Mozilla Firefox\firefox.exe" goto :nurXPif not exist "%ProgramFiles(x86)%\Mozilla Firefox\firefox.exe" %return%:nur32set extnroot=%CommonProgramFiles(x86)%\Mozilla Shared\Extensions
if not exist "%extnroot%" mkdir "%extnroot%"
if errorlevel 1 %return%
set key=HKLM\Software\Wow6432Node\Mozilla\%1\Extensions
goto nextall
:nurXP
set extnroot=%CommonProgramFiles%\Mozilla Shared\Extensions
if not exist "%extnroot%" mkdir "%extnroot%"
if errorlevel 1 %return%
set key=HKLM\Software\Mozilla\%1\Extensions
:nextall
set extndir=%extnroot%\%2
if exist "%extndir%" %rmdir% "%extndir%"
if exist "%olddir%" %rmdir% "%olddir%"
set key=HKLM\Software\Mozilla\%1\Extensions
for /f "skip=4 tokens=2*" %%A in ('reg query "%key%" /v "%id%"') do set olddir=%%B
if not "%olddir%"=="%extndir%" if exist "%olddir%" %rmdir% "%olddir%"
66
edits