Abiword

abiword.bat

:: OPTIONAL: Install Abiword Word Processor
::
:: HOME: <http://www.abiword.com/>

:: URL|All|http://www.abiword.com/downloads/abiword/2.4.6/Windows/abiword-setup-2.4.6.exe|packages/abiword/abiword-setup-2.4.6.exe
:: URL|All|http://www.abiword.com/downloads/abiword/2.4.6/Windows/abiword-plugins-impexp-2.4.6.exe|packages/abiword/abiword-plugins-impexp-2.4.6.exe
:: URL|All|http://www.abiword.com/downloads/abiword/2.4.6/Windows/abiword-plugins-tools-2.4.6.exe|packages/abiword/abiword-plugins-tools-2.4.6.exe

:: URL|All|http://web.mit.edu/atticus/www/mathml/mit-mathml-fonts-1.0-fc1.msi|packages/abiword/mit-mathml-fonts-1.0-fc1.msi

:: All Dictionaries put in folder packages/abiword/dictionaries will be installed
:: URL|ENU|http://www.abiword.com/downloads/dictionaries/Windows/AbiWord_Dictionary_American.exe|packages/abiword/dictionaries/AbiWord_Dictionary_American.exe
:: URL|ENB|http://www.abiword.com/downloads/dictionaries/Windows/AbiWord_Dictionary_British.exe|packages/abiword/dictionaries/AbiWord_Dictionary_British.exe
:: URL|SVE|http://www.abiword.com/downloads/dictionaries/Windows/AbiWord_Dictionary_Svenska.exe|packages/abiword/dictionaries/AbiWord_Dictionary_Svenska.exe

@ECHO OFF

:: Verify that installation package do exist before we try to run installation
IF NOT EXIST "%Z%\packages\abiword\abiword-setup-2.4.6.exe" GOTO noinstall

:: Verify that configuration script do exist before we try to run script
IF NOT EXIST %Z%\scripts\all\abiword.bat GOTO noconf
todo.pl ".ignore-err 255 %Z%\scripts\all\abiword.bat"
:noconf

:: Install all Dictionaries thas can be found in the \packages\abiword\dictionaries folder
FOR %%i IN (%Z%\packages\abiword\dictionaries\*.exe) DO todo.pl "\"%%i /S\""

:: Verify that MIT Mathml Fonts package do exist before we try to run installation
IF NOT EXIST %Z%\packages\abiword\mit-mathml-fonts-1.0-fc1.msi GOTO nofont
todo.pl "msiexec /qb /l* %SystemDrive%\netinst\logs\mit-mathml.txt /i \"%Z%\packages\abiword\mit-mathml-fonts-1.0-fc1.msi\" REBOOT=ReallySuppress"
:nofont

todo.pl "%Z%\packages\abiword\abiword-plugins-tools-2.4.6.exe /S"
todo.pl "%Z%\packages\abiword\abiword-plugins-impexp-2.4.6.exe /S"
todo.pl "%Z%\packages\abiword\abiword-setup-2.4.6.exe /S"
GOTO done

:noinstall
@ECHO abiword.bat: No Installation File found for Abiword
@ECHO abiword.bat: No Installation File found for Abiword 1>> %SystemDrive%\netinst\logs\not-installed.txt

:done

last edited 2006-11-19 20:15:47 by sturea