-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathINSTALL.cmd
More file actions
50 lines (46 loc) · 1.77 KB
/
Copy pathINSTALL.cmd
File metadata and controls
50 lines (46 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
:: ============================================================================
:: Flowkey - double-click installer (run from source).
::
:: No .exe build, no Inno Setup, no code-signing cert. This sets the app up to
:: run directly from this unzipped folder:
:: 1. Python 3.11+ (via winget if missing)
:: 2. a private venv at scripts\.venv
:: 3. AutoHotkey v2 (bundled, else downloaded)
:: 4. FastFlowLM (downloaded + installed - one UAC prompt)
:: 5. logon autostart
:: 6. launches the app + first-run wizard
::
:: Keep this folder somewhere writable (Downloads / Desktop), NOT Program Files.
:: ============================================================================
cd /d "%~dp0"
echo.
echo === Flowkey install (run from source) ===
echo.
echo This will set up Python, AutoHotkey, and FastFlowLM, then launch the app.
echo FastFlowLM will raise ONE Windows UAC prompt - that is expected; accept it.
echo.
echo First run downloads a model and can take several minutes.
echo.
pause
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0installer\install.ps1" %*
set EXITCODE=%ERRORLEVEL%
echo.
if "%EXITCODE%"=="0" (
echo === INSTALL SUCCEEDED ===
echo.
echo Flowkey is running. Look for the tray icon near the clock.
echo The first-run wizard walks you through the NPU check, model, and hotkeys.
echo.
echo To remove it later: installer\install.ps1 -Uninstall
) else (
echo === INSTALL FAILED (exit %EXITCODE%) ===
echo.
echo Scroll up to see the error. Common fixes:
echo * Make sure you are on Windows 10 1809+ or Windows 11 (winget needed)
echo * Unzip this folder somewhere writable, not Program Files
echo * Open a new terminal after Python installs, then re-run
)
echo.
pause
exit /b %EXITCODE%