Am 15.05.2017 um 06:55 schröbte Russell Haley: > Hi LuaRocks community,
Hi! > > I am looking at creating a Windows MSI installer for a click-and-go > PUC-Lua package and I wanted to include LuaRocks. I looked at the > installer (wonderful work by the way) and it seems to do some registry > stuffs but LuaRocks was NOT in the list of installed software on the > computer (i.e. Add Remove Programs). > > My first question: Is the install.bat for Windows installation > supposed to register the application with the system? I can't answer that because it's been a long time since I looked at the official Windows installer, and it has changed a lot since then, but ... > > If the answer is no then it looks like I will need to create a full > MSI package for LuaRocks. Because I will be installing Lua myself, > many of the checks are redundant because I know the answers ahead of > time. So if "Answer 1" was NO, it looks like I will need to: > > - Copy the correct files to the correct locations (including tools) > and create the rockspec folders. This can be gleaned from the > install.bat file at the end I think? ... for that you can use the install script here[1] for inspiration, which basically does what you need, just with a different installer tool. The `CustomizeConfig` hook just replaces @@DIR@@ in the templates with the path to the installation directory. The hard part will be to find/configure the compiler that LuaRocks is supposed to use. > - Create the registry entries as per the luarocks.reg.template. Those are nice to have, but optional. They create some entries in the context menu for rockspec files. > - Modify and install a config file that includes paths and interpreter > information. > - Update the system path variables. > > > Thanks in advance, > > Russ Philipp [1]: https://github.com/siffiejoe/prg-lr4win/blob/master/lr4win.iss#L58-L75 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers