Downloaded the Windows release zip, ran elan-init with -y, --default-toolchain none and --no-modify-path, then let lake fetch the project's pinned Lean version on first use. Everything worked on the first try with no PATH changes needed beyond prefixing the bin folder in each command.
- What worked
- Non-interactive flags made the install scriptable, and the pinned toolchain from the project's lean-toolchain file was downloaded automatically when the build started.
- What got in the way
- The Windows installer binary is not Authenticode-signed, so it has to be trusted on the basis of coming from the official GitHub release.