Avidemux Forum

Avidemux => Windows => Topic started by: makos on August 31, 2021, 07:41:22 AM

Title: Silent install and uninstall of VC++ version
Post by: makos on August 31, 2021, 07:41:22 AM
Hello

How to run a silent install and uninstall for Avidemux VC++ version?

Avidemux_2.7.8VC++64bits.exe

C:\Program Files\Avidemux 2.7 VC++ 64bits\Uninstall Avidemux VC++ 64bits.exe
Title: Re: Silent install and uninstall of VC++ version
Post by: eumagga0x2a on August 31, 2021, 02:29:35 PM
I guess you would need to create a custom installer for that (what purpose should it serve?). Why not just extract the installer once (or run the installer and package the program directory without the uninstaller and the install log) and distribute the archive? Avidemux doesn't really need an installer, it is always a portable app. Windows expects some registry entries (https://avidemux.org/smif/index.php/topic,18954.0.html) for specific desktop integration features, but Avidemux doesn't require any to work.
Title: Re: Silent install and uninstall of VC++ version
Post by: makos on September 01, 2021, 06:57:44 AM
I would like to deploy Avidemux by using Microsoft Intune.

I did a test installation by using silent-install.bat
xcopy /H /S /Y "Program Files - Avidemux 2.7 VC++ 64bits" "C:\Program Files\Avidemux 2.7 VC++ 64bits\"
xcopy /H /S /Y "Start Menu - Avidemux 2.7 VC++ 64bits" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Avidemux 2.7 VC++ 64bits\"
xcopy /H /Y "Start Menu - Avidemux 2.7 VC++ 64bits\avidemux.lnk" "C:\Users\Public\Desktop\"

One problem is that there's no an uninstall entry in Add and Remove Programs so users can't easily uninstall Avidemux if they want to.

Another problem is that the installer Avidemux_2.7.8VC++64bits.exe creates shortcuts to the users private folder C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Avidemux 2.7 VC++ 64bits and not to the public folder C:\ProgramData\Microsoft\Windows\Start Menu\Programs\. So running the uninstaller only removes shortcuts from the private folder

Title: Re: Silent install and uninstall of VC++ version
Post by: oceanpure on April 01, 2025, 09:04:33 AM
Since VC++ build (https://avidemux.org/nightly/vsWin64/)s are not available in ZIP packages, I had to do a lot of trial and error to get the installer EXE to silently install in a folder of my choice on the command line. I finally discovered the right arguments.

The following example command silently installs Avidemux VC++ in the D:\AvidemuxVC folder. If want to see the installation report messages, remove the > nul at the end.

"Avidemux_2.8.2 VC++ 64bits 250109.exe" install --root "D:\AviDemuxVC" --accept-licenses --accept-messages --confirm-command > nul
Note: The "VC++ 64bits 250109" build missing some video and audio codecs (x264, AAC-FDK). It's known problem (https://avidemux.org/smif/index.php?msg=97653).