Sunday, October 7, 2007

Updates for Pidgin

When I wrote a batch for making Pidgin into a portable install for your USB drive/device, I didn't write in any lines for Aspell. Well its about time I did wouldn't you agree?

The original:
::First things first. I'm in UR Echo, dumping my excludes.
Echo \perlmod\ >Exclude1
Echo \locale\ >Exclude2
Echo pidgin-uninst.exe >Exclude3
mkdir Programs
::base dirs
MKDIR Programs\Pidgin\
MKDIR Programs\GTK\
::Pidgin Lines
MKDIR Programs\Pidgin\sounds\
MKDIR Programs\Pidgin\pixmaps\
:: Went with XCOPY instead :p
XCOPY "C:\Program Files\Pidgin\*.*" "Programs\Pidgin\" /E /H /G /EXCLUDE:Exclude1+Exclude2+Exclude3
DEL Programs\Pidgin\plugins\perl.dll
DEL Programs\Pidgin\plugins\tcl.dll
REN Programs\Pidgin\Pidgin.exe Pidgin-portable.exe
:: /Pidgin lines

:: GTK lines "C:\Program Files\Common Files\GTK\2.0"
MKDIR Programs\GTK\
MKDIR Programs\GTK\bin\
MKDIR Programs\GTK\etc\
MKDIR Programs\GTK\lib\
MKDIR Programs\GTK\share\
XCOPY "C:\Program Files\Common Files\GTK\2.0\bin\*.*" "Programs\GTK\bin\" /E /H /G
XCOPY "C:\Program Files\Common Files\GTK\2.0\etc\*.*" "Programs\GTK\etc\" /E /H /G
XCOPY "C:\Program Files\Common Files\GTK\2.0\lib\*.*" "Programs\GTK\lib\" /E /H /G /EXCLUDE:Exclude2
XCOPY "C:\Program Files\Common Files\GTK\2.0\share\*.*" "Programs\GTK\share\" /E /H /G
::/GTK lines
Del Exclude1
Del Exclude2
Del Exclude3

Plus Aspell:

::Aspell lines
mkdir \Programs\Aspell\bin
xcopy "C:\Program Files\Aspell\bin\Aspell-15.dll" "Programs\Aspell\bin\" /E /H /G
xcopy "C:\Program Files\Aspell\data\*.*" "Programs\Aspell\data\" /E /H /G
xcopy "C:\Program Files\Aspell\dict\*.*" "Programs\Aspell\dict\" /E /H /G
::/Aspell lines

And if you want to import your current existing profile(optional):

Xcopy "%appdata%\.purple\*.*" "\programs\.purple\"

Now you have a complete install that is ready for your USB drive, just that simple.