Remove legacy Windows installer.

This is not really supported anymore, and the Docker-based
methods for installing on Windows are relatively mature at
this point.
This commit is contained in:
Daniel Petti
2025-08-29 09:31:41 -04:00
parent b8ba209416
commit 495a905de5
6 changed files with 0 additions and 199 deletions

View File

@@ -1,52 +0,0 @@
@echo off
echo Creating Windows installer for Local Deep Research
echo.
set PYTHON_VERSION=3.12.2
set INSTALLER_DIR=installer
echo Setting up build environment...
if not exist %INSTALLER_DIR% mkdir %INSTALLER_DIR%
echo Downloading Python installer...
if not exist python-%PYTHON_VERSION%-amd64.exe (
echo Downloading Python installer...
powershell -Command "Invoke-WebRequest -Uri https://www.python.org/ftp/python/%PYTHON_VERSION%/python-%PYTHON_VERSION%-amd64.exe -OutFile python-%PYTHON_VERSION%-amd64.exe"
)
echo Downloading LICENSE file if needed...
if not exist LICENSE (
echo Downloading LICENSE...
powershell -Command "Invoke-WebRequest -Uri https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/LICENSE -OutFile LICENSE"
)
echo Downloading README if needed...
if not exist README.md (
echo Downloading README...
powershell -Command "Invoke-WebRequest -Uri https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/README.md -OutFile README.md"
)
echo Downloading icon if needed...
if not exist icon.ico (
echo Creating a default icon...
powershell -Command "$bytes = [System.IO.File]::ReadAllBytes('C:\Windows\System32\shell32.dll'); [System.IO.File]::WriteAllBytes('icon.ico', $bytes)"
)
echo @echo off > launch_cli.bat
echo color 0a >> launch_cli.bat
echo cls >> launch_cli.bat
echo echo ============================================== >> launch_cli.bat
echo echo Local Deep Research Command Line >> launch_cli.bat
echo echo ============================================== >> launch_cli.bat
echo echo. >> launch_cli.bat
echo echo Starting the application... >> launch_cli.bat
echo echo. >> launch_cli.bat
echo python -m local_deep_research.main >> launch_cli.bat
echo pause >> launch_cli.bat
echo Building installer with Inno Setup...
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /O%INSTALLER_DIR% ldr_setup.iss
echo Done! Installer created in %INSTALLER_DIR% folder.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

View File

@@ -1,17 +0,0 @@
@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!

View File

@@ -1,11 +0,0 @@
@echo off
color 0a
cls
echo ==============================================
echo Local Deep Research Command Line
echo ==============================================
echo.
echo Starting the application...
echo.
python -m local_deep_research.main
pause

View File

@@ -1,29 +0,0 @@
@echo off
echo Starting Local Deep Research Web Interface...
echo The application will open in your browser automatically
echo.
echo This window must remain open while using the application.
echo Press Ctrl+C to exit when you're done.
echo.
REM Set up user data directory
set USER_DATA_DIR=%USERPROFILE%\Documents\LearningCircuit\local-deep-research
set DB_DIR=%USER_DATA_DIR%\database
REM Create directories if they don't exist
if not exist "%USER_DATA_DIR%" mkdir "%USER_DATA_DIR%"
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_PATH%" -m local_deep_research.web.app
echo.
echo The application has closed unexpectedly.
echo Press any key to exit...
pause

View File

@@ -1,90 +0,0 @@
#define MyAppName "Local Deep Research"
#define MyAppVersion "1.0.0"
#define MyAppPublisher "LearningCircuit"
#define MyAppURL "https://github.com/LearningCircuit/local-deep-research"
[Setup]
AppId={{C3FA4D71-8BDC-4B21-AE4A-2548A2F1C25B}
AppName={#MyAppName}
AppVersion={#MyAppVersion} ; Add this line
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName={#MyAppName}
LicenseFile=LICENSE
OutputDir=installer
OutputBaseFilename=LocalDeepResearch_Setup
Compression=lzma
SolidCompression=yes
WizardStyle=modern
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
; Python installer
Source: "python-3.12.2-amd64.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
; 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"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\launch_web.bat"; IconFilename: "{app}\icon.ico"
[Run]
; 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
[UninstallRun]
; Uninstall package using system's python
Filename: "cmd.exe"; Parameters: "/c python -m pip uninstall -y local-deep-research"; Flags: runhidden
[Code]
// Any existing code functions...
// 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;