Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: dev_uninstall.cmd

Issue 11058028: Developer installation, gyp version
Patch Set: Created July 2, 2013, 3:13 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« adblockplus.gyp ('K') | « dev_query.cmd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« adblockplus.gyp ('K') | « dev_query.cmd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld