From 79d112ca7bf1b8fe61d2c3ecce985cbbacb68716 Mon Sep 17 00:00:00 2001 From: JeLuF Date: Wed, 18 Jan 2023 00:11:23 +0100 Subject: [PATCH] Warn when running installer from git checkout --- scripts/Start Stable Diffusion UI.cmd | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/scripts/Start Stable Diffusion UI.cmd b/scripts/Start Stable Diffusion UI.cmd index 76af7a35..34629051 100644 --- a/scripts/Start Stable Diffusion UI.cmd +++ b/scripts/Start Stable Diffusion UI.cmd @@ -1,8 +1,29 @@ @echo off cd /d %~dp0 +echo Install dir: %~dp0 + set PATH=C:\Windows\System32;%PATH% +if exist "on_sd_start.bat" ( + echo ================================================================================ + echo. + echo !!!! WARNING !!!! + echo. + echo It looks like you're trying to run the installation script from a source code + echo download. This will not work. + echo. + echo Recommended: Please close this window and download the installer from + echo https://stable-diffusion-ui.github.io/docs/installation/ + echo. + echo ================================================================================ + echo. + echo Not Recommended: If you're sure that you want to run the installer from this + echo directory, please press any key to continue. + echo. + pause +) + @rem set legacy installer's PATH, if it exists if exist "installer" set PATH=%cd%\installer;%cd%\installer\Library\bin;%cd%\installer\Scripts;%cd%\installer\Library\usr\bin;%PATH%