| Index: dev_uninstall.cmd |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/dev_uninstall.cmd |
| @@ -0,0 +1,30 @@ |
| +@echo off |
| +setlocal |
| +set argc=0 |
| +for %%x in (%*) do set /a argc+=1 |
| +if %argc% geq 2 goto regbegin |
| +:: Not enough arguments. Print help text. |
| +echo usage: |
| +echo dev_uninstall.cmd ^<reg.exe 32 directory^> ^<reg.exe 64 directory^> |
| +echo( |
| +echo Uninstall Adblock Plus for IE in the developer mode |
| +echo * Delete the registration the DLL as a per-user COM object with CSLID of the Adblock Plus for IE BHO |
| +echo( |
| +echo arguments: |
| +echo ^<reg.exe 32 directory^> ^| The directory for reg.exe to write into for 32 (resp. 64) bit registry |
| +echo ^<reg.exe 64 directory^> ^| One of "system32", "SysWOW64", or "sysnative" |
| +exit /b 0 |
| + |
| +:regbegin |
| +:: Set REG. It's based on either the third or fourth argument. |
| +:: We test against "x86" because there are two possible 64-bit values. |
| +if /i %PROCESSOR_ARCHITECTURE% equ x86 (set R=%1) else set R=%2 |
| +set REG="%WINDIR%\%R%\reg.exe" |
| +if exist %REG% goto regend |
| +echo File %REG% not found. Aborting. |
| +exit /b 1 |
| +:regend |
| + |
| +echo REG=%REG% |
| +%REG% delete HKCU\Software\Classes\CLSID\{FFCB3198-32F3-4E8B-9539-4324694ED664} /f >nul |
| +echo Done |