Difference between revisions of "Audacity"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Separate LAME from Audacity)
(Simplified using architecture variables)
 
Line 17: Line 17:
 
revision="%version%"
 
revision="%version%"
 
priority="1">
 
priority="1">
 +
 +
<variable architecture="x86" name="PROGFILES" value="%PROGRAMFILES%" />
 +
<!-- This is a 32-bit program -->
 +
<variable architecture="x64" name="PROGFILES" value="%PROGRAMFILES(X86)%" />
  
 
         <variable name="version" value="2.0.3" />
 
         <variable name="version" value="2.0.3" />
Line 28: Line 32:
 
         <upgrade cmd='%SOFTWARE%\audacity\audacity-win-%version%.exe /sp- /verysilent /norestart' />
 
         <upgrade cmd='%SOFTWARE%\audacity\audacity-win-%version%.exe /sp- /verysilent /norestart' />
  
         <remove timeout="300" architecture="x86" cmd='%PROGRAMFILES%\Audacity\unins000.exe /verysilent' />
+
         <remove timeout="300" cmd='%PROGFILES%\Audacity\unins000.exe /verysilent' />
 
+
        <remove timeout="300" architecture="x64" cmd='%PROGRAMFILES(x86)%\Audacity\unins000.exe /verysilent' />
+
 
</package>
 
</package>
 
</packages>
 
</packages>
Line 48: Line 50:
 
revision="%version%"
 
revision="%version%"
 
priority="1">
 
priority="1">
 +
 +
<variable architecture="x86" name="PROGFILES" value="%PROGRAMFILES%" />
 +
<!-- This is a 32-bit program -->
 +
<variable architecture="x64" name="PROGFILES" value="%PROGRAMFILES(X86)%" />
  
 
         <variable name="lame_version" value="3.99.3" />
 
         <variable name="lame_version" value="3.99.3" />
Line 57: Line 63:
 
         <upgrade cmd='%SOFTWARE%\lame\Lame_v%lame_version%_for_Windows.exe /sp- /verysilent /norestart' />
 
         <upgrade cmd='%SOFTWARE%\lame\Lame_v%lame_version%_for_Windows.exe /sp- /verysilent /norestart' />
  
         <remove timeout="300" architecture="x86" cmd='%PROGRAMFILES%\Lame for Audacity\unins000.exe /verysilent' />
+
         <remove timeout="300" cmd='%PROGFILES%\Lame for Audacity\unins000.exe /verysilent' />
 
+
        <remove timeout="300" architecture="x64" cmd='%PROGRAMFILES(x86)%\Lame for Audacity\unins000.exe /verysilent' />
+
 
</package>
 
</package>
 
</packages>
 
</packages>

Latest revision as of 19:56, 16 January 2014

This is a silent installer and uninstaller for Audacity, a free software audio editor available from http://audacity.sourceforge.net/. Audacity is free software and cross-platform.

Audacity needs Visual Cpp Redistributable 2008 to be installed.

Packaging For Audacity 2.0 series

The 2.x is the earliest release at this time. The below wpkg allows to install both Audacity and latest Lame plugin.


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

<packages>

<package
	id="audacity"
	name="audacity"
	revision="%version%"
	priority="1">

	<variable architecture="x86" name="PROGFILES" value="%PROGRAMFILES%" />
	<!-- This is a 32-bit program -->
	<variable architecture="x64" name="PROGFILES" value="%PROGRAMFILES(X86)%" />

        <variable name="version" value="2.0.3" />
 
        <depends package-id="vc-runtime-2008" />

        <check type="uninstall" condition="exists" path="Audacity %version%" />

        <install cmd='%SOFTWARE%\audacity\audacity-win-%version%.exe /sp- /verysilent /norestart' />

        <upgrade cmd='%SOFTWARE%\audacity\audacity-win-%version%.exe /sp- /verysilent /norestart' />

        <remove timeout="300" cmd='%PROGFILES%\Audacity\unins000.exe /verysilent' />
</package>
</packages>


LAME

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

<packages>

<package
	id="lame"
	name="lame"
	revision="%version%"
	priority="1">

	<variable architecture="x86" name="PROGFILES" value="%PROGRAMFILES%" />
	<!-- This is a 32-bit program -->
	<variable architecture="x64" name="PROGFILES" value="%PROGRAMFILES(X86)%" />

        <variable name="lame_version" value="3.99.3" />
 
        <check type="uninstall" condition="exists" path="LAME v%lame_version%.*" />

        <install cmd='%SOFTWARE%\lame\Lame_v%lame_version%_for_Windows.exe /sp- /verysilent /norestart' />

        <upgrade cmd='%SOFTWARE%\lame\Lame_v%lame_version%_for_Windows.exe /sp- /verysilent /norestart' />

        <remove timeout="300" cmd='%PROGFILES%\Lame for Audacity\unins000.exe /verysilent' />
</package>
</packages>