The toolset available here aids in the process to download, build and install Lua versions on Windows, downloading Lua source code directly from https://lua.org.
Tip
Among all the possible versions of Visual Studio, Visual Studio Community edition or Visual Studio Build Tools are the preferred choices for individuals.
-
Visit https://visualstudio.microsoft.com, download and install the most recent Microsoft Visual Studio C/C++ Build Tools for native desktop development (MSVC), together with the most recent Windows SDK for your operating system:
- Step 1: In the startup screen of the latest
Visual Studio Installer, switch toIndividual componentstab in the top;
- Step 2: Search for
Windows SDK; - Step 3: Select the most recent;
- Step 4: Search for
latest MSVC Build Tools; - Step 5: Select the
latestMSVC build tools available;
In the image below, the latest x86/x64 build tools was chosen because I am running a vanilla x64 Windows. If you are running 64-bit Windows on ARM, then tick the ARM64/ARM64EC build tools option.- Step 6: In the right panel, verify that the
Individual componentsselection shows the latest Build Tools and Windows SDK; - Step 7: Hit
Installbutton and await the installation.
- Step 1: In the startup screen of the latest
-
Download and extract the latest
LuaInstaller.EndUsers-*.zipfrom the Releases page anywhere on your computer;
- Run the app
LuaInstaller.exe
Important
- If you want to install Lua on system-wide directories like
C:\Program Files\LuaorC:\Program Files(x86)\Lua, close the program and openLuaInstaller.exeagain as administrator (Run as Administrator); - To set environment variables, you are also required to have admin privileges (Run as Administrator).
- If everything was configured correctly, you should see each dropdown with at least one choice available:
Note
Only native builds of Lua are possible (no cross-compilation). This means that you are required to be running a 64-bit Windows on ARM to build Lua targeting the ARM64 architecture.
- Make your choices and hit
Install; - Verify that you can find
lua.exeatFOLDER > bin, where FOLDER means the destination directory for Lua installation.
-
Are you looking for CI / CD content? check our CI examples here.
-
Do you want to integrate it on your project? Read the docs.
-
Download and extract the latest
LuaInstaller.Console-*.zipthat suits better your operating system from the Releases page anywhere on your computer; -
Open a command prompt (
cmd) and change directory to the folder ofLuaInstaller.Console; -
Install a required Lua version
LuaInstaller.Console.exe install "version=5.4.8" "dest-dir=C:\Lua-5.4.8"
Important
- If you want to install Lua on system-wide directories like
C:\Program Files\LuaorC:\Program Files(x86)\Lua, close the command prompt and opencmdagain as administrator (Run as Administrator); - To set environment variables, you are also required to have admin privileges on
cmd(Run as Administrator).
- Enjoy!
Special thanks goes to warlockx for valuable suggestions and bug hunting in the beginning of this project.


