Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

updated installer

LearningCircuitf4f79bfb85c8
diff --git a/src/local_deep_research/installers/windows/install_packages.bat b/src/local_deep_research/installers/windows/install_packages.bat
new file mode 100644
index 0000000000..dced88fbee
--- /dev/null
+++ b/src/local_deep_research/installers/windows/install_packages.bat
@@ -0,0 +1,17 @@
+@echo off
+echo Installing Local Deep Research...
+set PYTHON_PATH=C:\Program Files\Python312\python.exe
+set PIP_PATH=C:\Program Files\Python312\Scripts\pip.exe
+
+echo Installing with Python at: %PYTHON_PATH%
+
+"%PYTHON_PATH%" -m pip install --upgrade local-deep-research
+if %ERRORLEVEL% NEQ 0 (
+ echo Failed to install package with pip module, trying direct pip...
+ "%PIP_PATH%" install --upgrade local-deep-research
+)
+
+echo Installing browser automation tools...
+"%PYTHON_PATH%" -m playwright install
+
+echo Installation complete!
diff --git a/src/local_deep_research/installers/windows/launch_web.bat b/src/local_deep_research/installers/windows/launch_web.bat
index 09ff630e98..954b854a50 100644
--- a/src/local_deep_research/installers/windows/launch_web.bat
+++ b/src/local_deep_research/installers/windows/launch_web.bat
@@ -17,8 +17,11 @@ if not exist "%DB_DIR%" mkdir "%DB_DIR%"
REM Change to the database directory so the DB file is created there
cd /d "%DB_DIR%"
+REM Use the specific Python path
+set PYTHON_PATH=C:\Program Files\Python312\python.exe
+
start "" http://localhost:5000
-python -m local_deep_research.web.app
+"%PYTHON_PATH%" -m local_deep_research.web.app
echo.
echo The application has closed unexpectedly.
diff --git a/src/local_deep_research/installers/windows/ldr_setup.iss b/src/local_deep_research/installers/windows/ldr_setup.iss
index 54110a3451..9d6e2dc697 100644
--- a/src/local_deep_research/installers/windows/ldr_setup.iss
+++ b/src/local_deep_research/installers/windows/ldr_setup.iss
@@ -27,15 +27,16 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
; Python installer
Source: "python-3.12.2-amd64.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
-; Launcher scripts
+; Launcher scripts
Source: "launch_web.bat"; DestDir: "{app}"; Flags: ignoreversion
Source: "launch_cli.bat"; DestDir: "{app}"; Flags: ignoreversion
+; Installation script
+Source: "install_packages.bat"; DestDir: "{app}"; Flags: ignoreversion
; README and LICENSE
Source: "README.md"; DestDir: "{app}"; Flags: ignoreversion
Source: "LICENSE"; DestDir: "{app}"; Flags: ignoreversion
; Icon
Source: "icon.ico"; DestDir: "{app}"; Flags: ignoreversion
-
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\launch_web.bat"; IconFilename: "{app}\icon.ico"
Name: "{group}\{#MyAppName} Command Line"; Filename: "{app}\launch_cli.bat"; IconFilename: "{app}\icon.ico"
@@ -43,14 +44,47 @@ Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\launch_web.bat"; IconFilename: "{app}\icon.ico"
[Run]
-; Install Python - show window
+; Install Python
Filename: "{tmp}\python-3.12.2-amd64.exe"; Parameters: "/quiet InstallAllUsers=1 PrependPath=1 Include_test=0"; Description: "Installing Python..."; Flags: shellexec waituntilterminated
+; Run the installation script
+Filename: "{app}\install_packages.bat"; Description: "Installing packages..."; Flags: shellexec waituntilterminated
+; Option to launch after installation
+Filename: "{app}\launch_web.bat"; Description: "Launch Local Deep Research"; Flags: nowait postinstall skipifsilent
-; Install Latest Local Deep Research - show window with uninstall first
-Filename: "cmd.exe"; Parameters: "/k pip uninstall -y local-deep-research && pip install --upgrade local-deep-research && echo Installation complete. && exit"; Description: "Installing Latest Local Deep Research..."; Flags: shellexec waituntilterminated
+[UninstallRun]
+; Uninstall package using system's python
+Filename: "cmd.exe"; Parameters: "/c python -m pip uninstall -y local-deep-research"; Flags: runhidden
-; Install Playwright dependencies - show window
-Filename: "cmd.exe"; Parameters: "/k python -m playwright install && echo Playwright installation complete. && exit"; Description: "Installing browser automation tools..."; Flags: shellexec waituntilterminated
+[Code]
+// Any existing code functions...
-; Option to launch after installation
-Filename: "{app}\launch_web.bat"; Description: "Launch Local Deep Research"; Flags: nowait postinstall skipifsilent
+// Ask about data removal during uninstallation
+procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
+var
+ DataPath: string;
+ RemoveData: Boolean;
+begin
+ if CurUninstallStep = usUninstall then
+ begin
+ DataPath := ExpandConstant('{%USERPROFILE}\Documents\LearningCircuit\local-deep-research');
+
+ if DirExists(DataPath) then
+ begin
+ RemoveData := MsgBox('Do you want to remove all user data for Local Deep Research?' + #13#10 +
+ 'This includes your configuration files, database, and research history.' + #13#10#13#10 +
+ 'Click Yes to remove all data or No to keep your data.',
+ mbConfirmation, MB_YESNO) = IDYES;
+
+ if RemoveData then
+ begin
+ // Log what we're about to do
+ Log('Removing user data directory: ' + DataPath);
+
+ // Use DelTree to recursively remove the directory
+ DelTree(DataPath, True, True, True);
+ end
+ else
+ Log('User chose to keep data directory: ' + DataPath);
+ end;
+ end;
+end;
\ No newline at end of file