Skip to content

Add Windows install script and setup.exe builder - #4

Open
TomHolzknecht wants to merge 2 commits into
winidi:mainfrom
TomHolzknecht:windows-installer
Open

TomHolzknecht wants to merge 2 commits into
winidi:mainfrom
TomHolzknecht:windows-installer

Conversation

@TomHolzknecht

@TomHolzknecht TomHolzknecht commented Oct 8, 2026 •

Copy link
Copy Markdown

Adds two ways to install Dictate on Windows. Both install for the current user and need no admin rights.

A. install.ps1: finds Python 3.10+ (installs 3.12 with winget if missing), creates a venv in %LOCALAPPDATA%\Programs\Dictate, installs requirements-windows.txt, checks that all modules import, adds a Start Menu shortcut, and registers an uninstall entry. At the end it asks whether to download the ~640 MB offline model now and shows a progress bar. Options: -Autostart, -DownloadModel (yes without the question), -NoModel (no), -Proxy, -InstallDir, -NoPythonInstall. uninstall.ps1 removes it again (-RemoveUserData also deletes settings and the model).

B. setup.exe: build-setup.ps1 packs the files with IExpress (ships with Windows, no extra tools) into setup.exe and zips it. Users unzip and double-click. It runs install.ps1 with the defaults.

Also adds requirements-windows.txt, a "Windows install" section in the README, and dist/ in .gitignore.

Needs #1 to start the GUI. gui.py imports fcntl and does not start on Windows without that fix. This PR does not touch gui.py.

Tested on Windows 11 with Windows PowerShell 5.1: direct install, setup.exe install into a test folder, uninstall, and the model question with answers yes (model already present), no, and -NoModel.

Not tested: the real model download with the progress bar, the winget Python install on a machine without Python, creating the shortcuts on a clean machine, and a double-click of setup.exe without a test command. setup.exe is not code-signed, so SmartScreen can warn.

🤖 Generated with Claude Code

TomHolzknecht and others added 2 commits October 8, 2026 22:33
install.ps1 installs Dictate for the current user: finds or installs
Python 3.10+, creates a venv, installs requirements-windows.txt, adds a
Start Menu shortcut (optional autostart), and registers an uninstall entry.
uninstall.ps1 removes it again.

build-setup.ps1 packs the files with IExpress (ships with Windows) into
setup.exe and zips it, so users unzip and double-click.

The GUI needs the fcntl fix from PR #1 to start on Windows.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
At the end the script asks whether to download the ~640 MB local model now
and shows the huggingface_hub progress bars. -DownloadModel answers yes
without the question, -NoModel answers no. Without console input the
script skips the download. An installed model is detected and not asked for.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant