Skip to content

AnythingLLM suggestion #53

@flatlinebb

Description

@flatlinebb

The AnythingLLM installer uses the NSIS installer package, which comes with the following options for Windows installation:

  • /S runs the installer or uninstaller silently. See section 4.12 for more information.
  • /D sets the default installation directory ($INSTDIR), overriding InstallDir and InstallDirRegKey. It must be the last parameter used in the command line and must not contain any quotes, even if the path contains spaces. Only absolute paths are supported.

So, to make other's life easier, you could script the automated install script, for Windows at least, with the following options:

"$USB_Drive\Portable-AI-USB\installer_data\AnythingLLMDesktop.exe" /S /D "$USB_Drive\Portable-AI-USB\anythingllm"

Looks like you are already capturing the path of the USB drive earlier in the script, so you can reuse that variable. Also, if someone wants to install this whole project in a subfolder, like me, you can use this PowerShell expression to find the subfolder from where the "install.bat" or the "install-core.ps1" scripts are executed from:

# One option for getting the installer script path:
$ScriptDir = $PSScriptRoot
# Or alternatively:
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
# Then use the path variable to launch the AnytingLLM installer with the correct switches and destination path:
"$ScriptDir\installer_data\AnythingLLMDesktop.exe" /S /D "$ScriptDir\anythingllm"

This would greatly simplify the installation for Windows users.

I'm pretty use that the author is using AI to write these scripts, so just tell your AI agent to do this for you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions