LuaForWindows

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Lua is a powerful, fast, lightweight, embeddable scripting language.

Get the installer from the project homepage.

!!! This package requires wpkg.js 1.2.1-RC20 or higher !!!

<?xml version="1.0" encoding="UTF-8"?>

<packages
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >

    <package id="LuaForWindows"
            name="Lua for Windows"
            revision="%PKG_VERSION%"
            reboot="false"
            priority="10">

        <variable name="PKG_VERSION"        value="5.1.4.45" />
        <variable name="PKG_EXE_VERSION"    value="5.1.4.0" />
        <variable name="PKG_NAME"           value="LuaForWindows" />
        <variable name="PKG_SOURCE"         value="%SOFTWARE%\LUA for Windows"/>
        <variable name="PKG_DESTINATION"    value="%ProgramFiles%\Lua\5.1"      architecture="x86"/>
        <variable name="PKG_DESTINATION"    value="%ProgramFiles(x86)%\Lua\5.1" architecture="x64"/>
        <variable name="PKG_INSTALL_SWITCH" value="/SP- /VERYSILENT /SUPPRESSMSGBOXES /LOG /NORESTART"/>
        <variable name="PKG_REMOVE_SWITCH"  value="/VERYSILENT /SUPPRESSMSGBOXES /LOG /NORESTART"/>

        <check type="uninstall" condition="versiongreaterorequal" path="Lua for Windows .+"        value="%PKG_VERSION%" />
        <check type="file"      condition="versiongreaterorequal" path="%PKG_DESTINATION%\lua.exe" value="%PKG_EXE_VERSION%" />

        <install cmd='"%PKG_SOURCE%\vcredist_x86.exe" /q ' />
        <install cmd='"%PKG_SOURCE%\LuaForWindows_v5.1.4-45.exe" %PKG_INSTALL_SWITCH% ' />

        <upgrade include="install" />

        <remove cmd='"%PKG_DESTINATION%\uninstall\unins000.exe" %PKG_REMOVE_SWITCH% ' />
    </package>
</packages>