Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer: Multiple versions of Lua handling in PATH #5

Open
RussellHaley opened this issue Jan 21, 2018 · 0 comments
Open

Installer: Multiple versions of Lua handling in PATH #5

RussellHaley opened this issue Jan 21, 2018 · 0 comments
Labels
enhancement New feature or request Installer Lua

Comments

@RussellHaley
Copy link
Collaborator

Issue

When more than one version of Lua is used, the interpreter that is used in DOS or Powershell is dependent on the order of the entries in PATH.
There are multiple ways to handle this. The logic should be something like this:

Possible solution

Find all WinLua paths and order them by arch/version:
x86/5.3; x64/5.3; x86/5.1; x64/5.1;

I think 32 bit first because the casual command line use of "lua" doesn't really require 64 bits?

This should be done as a custom WIX event that uses whatever newly installed instance of lua we have.

Outstanding

The proposed solution does not help with calling the correct version of Lua from the command line that you'd expect. I propose adding a new folder to the WinLua directory that contains links named like in FreeBSD (modified):

  • lua53 = Lua 5.3 32 Bit
  • lua53_64 = Lua 5.3 64 Bit
  • lua51 = Lua 5.1 32 Bit
  • lua51_64 = Lua 5.3 64 Bit

If this folder were added before all the others, then users could select their version from the command line, edit the links to their preference, or simply call "lua and fall back to the PATH, which is ordered by version

@RussellHaley RussellHaley changed the title Installer - Multiple versions of Lua handling in PATH Installer: Multiple versions of Lua handling in PATH Feb 21, 2020
@RussellHaley RussellHaley added enhancement New feature or request Installer Lua labels Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Installer Lua
Projects
None yet
Development

No branches or pull requests

1 participant