Avidemux
From WPKG | Open Source Software Deployment and Distribution
Avidemux is a non-linear video editor for Windows, Linux and OS X.
The Avedemux web site is at http://www.avidemux.org and it is licenced under the GNU GPL.
Avidemux 2.5
<package id="avidemux" name="Avidemux" revision="2.5.3">
<check type="uninstall" condition="versiongreaterorequal" path="Avidemux 2\.5" value="2.5.3.0"/>
<install cmd="%SOFTWARE%\avidemux\avidemux_2.5.3_win32.exe /S"/>
<upgrade cmd="%SOFTWARE%\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%\avidemux\avidemux_2.4.4_win32.exe" /S' />
<upgrade cmd='"%PROGRAMFILES%\avidemux 2.4\uninstall.exe" /S' />
<upgrade cmd='"%SOFTWARE%\avidemux\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 the specified directory
Repackaging
Unfortunately the installer creates all shortcuts in the current user's profile, rather than in All Users. Furthermore, when run in silent mode, it creates shortcuts for the GTK version, and for avsproxy, even though neither 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" name="Avidemux" revision="3" reboot="false" priority="3">
<check type="uninstall" condition="exists" path="Avidemux 2.4.4" />
<install cmd='msiexec /qn /i "%SOFTWARE%\avidemux\avidemux244.msi"' />
<upgrade cmd='msiexec /qn /i "%SOFTWARE%\avidemux\avidemux244.msi"' />
<remove cmd='msiexec /qn /x "%SOFTWARE%\avidemux\avidemux244.msi"' />
</package>