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 |