:: Pidgin uninstall cleanup from prior versions that didn't get cleaned up
:: by installing a new version!  Please edit this to meet your needs.
:: There doesn't seem to be a "clean" way to uninstall my package since
:: it's packaged with the free version of WinInstall LE BUT lucky for you
:: MSIZap does a nice job of uninstalling the application except for the
:: all users Pidgin icon which gets deleted with a batch file command ;-)

:: Created by Rafael Wolf
:: RafaelWolf.com
:: Use at your own risk, I pitty the fool that doesn't test this before
:: deploying to users!  :-)

:: Creating a temp directory to log information
mkdir %systemdrive%\Temp

:: You can also do this with prior versions I've supplied.
:: I've included MSIzap in this package, how convenient eh?  :-)
echo %time% Uninstalling Pidgin 2.7.3
echo %time% Uninstalling Pidgin 2.7.3 >> c:\temp\Pidginuninst.log

:: This zaps the installation and deletes it!
\\yourserver\yourshare\msizap T! "\\yourserver\yourshare\whereverPidginfolderis\Pidgin-2.7.msi" >> c:\temp\Pidginuninst.log

:: Delete Start Menu Shortcut!
echo Deleting start menu shortcut!
del /F /Q "%ALLUSERSPROFILE%\Start Menu\Programs\Pidgin.lnk"

echo %time% Uninstall of Pidgin 2.7.3 complete please check the logs
echo %time% Uninstall of Pidgin 2.7.3 complete please check the logs  >> c:\temp\Pidginuninst.log