LMMS

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

LMMS (Linux MultiMedia Studio) is a software to produce music (like FL Studio). Installer use NSIS.

<?xml version="1.0" encoding="UTF-8"?>
<packages:packages
        xmlns:packages="http://www.wpkg.org/packages" xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.wpkg.org/packages ../../xsd/packages.xsd" >

  <package id="lmms"
    name="Linux MultiMedia Studio"
    revision="%VERSION%"
    reboot="false"
    priority="20">

    <variable name="VERSION" value="0.4.13" />
    <variable name="PKG_DESTINATION"    value="%ProgramFiles%\LMMS"     architecture="x86"/>
    <variable name="PKG_DESTINATION"    value="%ProgramFiles(x86)%\"    architecture="x64"/>
    <variable name="ARCH"    value="win32"    architecture="x86"/>
    <variable name="ARCH"    value="win64"    architecture="x64"/>
    <variable name="PKG_INSTALL_SWITCH" value="/S"/>
    <variable name="PKG_REMOVE_SWITCH"  value="/S _?=%PKG_DESTINATION%"/>

    <check type="uninstall" condition="exists" path="LMMS %VERSION%" />

    <install cmd='"%SOFTWARE%\lmms-%VERSION%-%ARCH%.exe" %PKG_INSTALL_SWITCH%' />
    <upgrade include="install" />

    <remove cmd='"%PKG_DESTINATION%\Uninstall.exe" %PKG_REMOVE_SWITCH%' />
    <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%" rmdir /S /Q "%PKG_DESTINATION%"' />
  </package>
</packages:packages>