Difference between revisions of "Avidemux"
From WPKG | Open Source Software Deployment and Distribution
m |
|||
Line 3: | Line 3: | ||
The Avidemux website is at http://www.avidemux.org. | The Avidemux website is at http://www.avidemux.org. | ||
− | == | + | ==Avidemux 2.5== |
+ | |||
+ | <source lang="xml"> | ||
+ | <package id="media/avidemux" name="Avidemux" revision="2.5.3"> | ||
+ | <check type="uninstall" condition="versiongreaterorequal" path="Avidemux 2\.5" value="2.5.3.0"/> | ||
+ | <install cmd="%SOFTWARE%\media\avidemux\avidemux_2.5.3_win32.exe /S"/> | ||
+ | <upgrade cmd="%SOFTWARE%\media\avidemux\avidemux_2.5.3_win32.exe /S"/> | ||
+ | <remove cmd=""%ProgramFiles%\Avidemux 2.5\uninstall.exe" /S"/> | ||
+ | </package> | ||
+ | </source> | ||
+ | |||
+ | This version installs shortcuts for all users, so there's no longer a need to fix them up unless you want to get rid of the desktop shortcut. | ||
+ | |||
+ | ==Avidemux 2.4== | ||
<source lang="xml"> | <source lang="xml"> |
Revision as of 10:25, 5 August 2010
Avidemux is a GPL Video editor for Linux, Windows and OSX.
The Avidemux website is at http://www.avidemux.org.
Avidemux 2.5
<package id="media/avidemux" name="Avidemux" revision="2.5.3">
<check type="uninstall" condition="versiongreaterorequal" path="Avidemux 2\.5" value="2.5.3.0"/>
<install cmd="%SOFTWARE%\media\avidemux\avidemux_2.5.3_win32.exe /S"/>
<upgrade cmd="%SOFTWARE%\media\avidemux\avidemux_2.5.3_win32.exe /S"/>
<remove cmd=""%ProgramFiles%\Avidemux 2.5\uninstall.exe" /S"/>
</package>
This version installs shortcuts for all users, so there's no longer a need to fix them up unless you want to get rid of the desktop shortcut.
Avidemux 2.4
<package id="avidemux" name="Avidemux" revision="1" reboot="false" priority="3">
<check type="uninstall" condition="exists" path="Avidemux 2.4" />
<install cmd='"%SOFTWARE%\video_tools\avidemux_2.4.4_win32.exe" /S' />
<upgrade cmd='"%PROGRAMFILES%\avidemux 2.4\uninstall.exe" /S' />
<upgrade cmd='"%SOFTWARE%\video_tools\avidemux_2.4.4_win32.exe" /S' />
<remove cmd='"%PROGRAMFILES%\avidemux 2.4\uninstall.exe" /S' />
</package>
Installer Command-line Switches
/S - silent install /D=<directory> - install into a different directory
Repackaging
Unfortunately the installer creates all shortcuts in the current user's profile, rather than for all users. Furthermore, when run in silent mode it creates shortcuts for the GTK version, and for avsproxy, even though neither of these are installed.
Repackaging Avidemux is easy enough, since it appears all files are located in the Program directory. Here's how I did it:
- Download and install Installer2Go free version.
- Install Avidemux from standard installer.
- Start a new Installer2Go project using Product name "Avidemux 2.4.4"
- Add all files from Avidemux directory, except the uninstaller.
- Create shortcuts as required on the "Shortcuts" tab in i2g.
- On "Setup Settings" tab in i2g make sure shortcuts are to be created for all users.
- On "Create Setup" tab uncheck "Create Self-Extracting Executable...", and give your MSI file a meaningful name.
- Build.
Now you can use something like the following...
<package id="avidemux_qt" name="Avidemux" revision="3" reboot="false" priority="3">
<check type="uninstall" condition="exists" path="Avidemux 2.4.4" />
<install cmd='msiexec /qn /i "%SOFTWARE%\video_tools\avidemux244.msi"' />
<upgrade cmd='msiexec /qn /i "%SOFTWARE%\video_tools\avidemux244.msi"' />
<remove cmd='msiexec /qn /x "%SOFTWARE%\video_tools\avidemux244.msi"' />
</package>