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

Unified Diff: dev_install.cmd

Issue 11254007: Installation with registry keys
Patch Set: Created July 25, 2013, 9:57 p.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
« no previous file with comments | « adblockplus.gyp ('k') | dev_query.cmd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dev_install.cmd
===================================================================
--- a/dev_install.cmd
+++ b/dev_install.cmd
@@ -41,14 +41,21 @@
set OUTDIR=%~dp1
set SOURCEDIR=%~2%..\..\
+:: Adjust SOURCEDIR to eliminate relative directory specification. Something in the code doesn't like it.
+pushd %SOURCEDIR%
+:: This hack substitutes for backtick-execution in Unix-like shells.
+for /f "delims=" %%i in ('cd') do set SOURCEDIR=%%i\
+popd
+set ENGINE=%OUTDIR%AdblockPlusEngine.exe
echo DLL=%DLL%
echo REG=%REG%
echo SOURCEDIR=%SOURCEDIR%
echo OUTDIR=%OUTDIR%
+echo ENGINE=%ENGINE%
%REG% add HKCU\Software\Classes\CLSID\{FFCB3198-32F3-4E8B-9539-4324694ED664} /ve /d "Adblock Plus for IE Browser Helper Object" /f >nul
%REG% add HKCU\Software\Classes\CLSID\{FFCB3198-32F3-4E8B-9539-4324694ED664}\InprocServer32 /ve /d %DLL% /f >nul
%REG% add HKCU\Software\Classes\CLSID\{FFCB3198-32F3-4E8B-9539-4324694ED664}\InprocServer32 /v ThreadingModel /d "Both" /f >nul
-copy "%SOURCEDIR%files\settings.ini" "%OUTDIR%settings.ini" >nul
-xcopy /s /I /y /D "%SOURCEDIR%html\*" "%OUTDIR%html" >nul
-xcopy /s /I /y /D "%SOURCEDIR%locales\*" "%OUTDIR%locales" >nul
+%REG% add "HKCU\Software\Adblock Plus for IE" /v engine /d "%ENGINE%" /f >nul
+%REG% add "HKCU\Software\Adblock Plus for IE" /v html_dir /d "%SOURCEDIR%html\\" /f >nul
+%REG% add "HKCU\Software\Adblock Plus for IE" /v locales_dir /d "%SOURCEDIR%locales\\" /f >nul
echo Done
« no previous file with comments | « adblockplus.gyp ('k') | dev_query.cmd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld