Install With Vanilla Launcher¶

Important
To install OptiFine for a version, that same Vanilla version must be installed and ran beforehand. If the version is not installed, or if it has not been played before, OptiFine will not install.
Follow the instructions at Downloading.
Run the downloaded
.jar
file.Follow the instructions and click "Install".
Open the Minecraft launcher and select the OptiFine profile, and click "Play".

The OptiFine installer¶
Assumes latest OptiFine version.
Updated to commit 8ed2130d.
Open source at https://gitlab.com/whoatemybutter/optifinedocs.