Closed brian6932 closed 2 years ago
Not sure how helpful this may be, but scoop's package doesn't exhibit this issue, they just append a .old
to the ffmpeg.exe
file:
"post_install": "Rename-Item $dir\\ffmpeg.exe $dir\\ffmpeg.exe.old",
Terminal logs:
Admin C:\Windows\System32
❯ scoop install imagemagick
Installing '7zip' (19.00) [64bit]
7z1900-x64.msi (1.7 MB) [==============================================================================] 100%
Checking hash of 7z1900-x64.msi ... ok.
install-context.reg (764 B) [==========================================================================] 100%
Checking hash of install-context.reg ... ok.
uninstall-context.reg (498 B) [========================================================================] 100%
Checking hash of uninstall-context.reg ... ok.
Extracting 7z1900-x64.msi ... done.
Running pre-install script...
Linking ~\scoop\apps\7zip\current => ~\scoop\apps\7zip\19.00
Creating shim for '7z'.
Creating shortcut for 7-Zip (7zFM.exe)
Persisting Codecs
Persisting Formats
'7zip' (19.00) was installed successfully!
Notes
-----
Add 7-Zip as a context menu option by running: "C:\Users\username\scoop\apps\7zip\current\install-context.reg"
Installing 'innounp' (0.50) [64bit]
innounp050.rar (138.3 KB) [============================================================================] 100%
Checking hash of innounp050.rar ... ok.
Extracting innounp050.rar ... done.
Linking ~\scoop\apps\innounp\current => ~\scoop\apps\innounp\0.50
Creating shim for 'innounp'.
'innounp' (0.50) was installed successfully!
Installing 'imagemagick' (7.1.0-13) [64bit]
ImageMagick-7.1.0-13-Q16-HDRI-x64-dll.exe (36.2 MB) [==================================================] 100%
Checking hash of ImageMagick-7.1.0-13-Q16-HDRI-x64-dll.exe ... ok.
Extracting ImageMagick-7.1.0-13-Q16-HDRI-x64-dll.exe ... done.
Linking ~\scoop\apps\imagemagick\current => ~\scoop\apps\imagemagick\7.1.0-13
Running post-install script...
'imagemagick' (7.1.0-13) was installed successfully!
Notes
-----
- The bundled ffmpeg has been renamed to 'ffmpeg.exe.old' to prevent conflict with a standalone ffmpeg
installation - if you need it for ImageMagick tools, rename it back to 'ffmpeg.exe'.
- 'convert.exe' is deprecated in v7 (it also conflicts with the builtin Windows 'convert' utility). Use 'magick
convert ...' instead.
The Scoop install procedure merely renames the file after installation.
The task responsible for installing ImageMagick's outdated FFmpeg 4.2.3 is named "install_FFmpeg". https://github.com/ImageMagick/VisualMagick/blob/main/installer/inc/tasks-install-ffmpeg.isx
https://github.com/bdukes/Chocolatey-Packages/blob/master/automatic/imagemagick.app/tools/chocolateyInstall.ps1 This part of the choco package shows how it uses PackageParameters to append arguments to the installer command line,
Taking both of those into account, this disables the install_FFmpeg task.
I'm working on a Pull Request now.
Apparently this was fixed in the installer, but not the choco package: https://github.com/ImageMagick/ImageMagick/issues/422
I would say that ideally this should be off by default, and have an argument to turn it on, but I would understand not wanting to do that, at the very least an argument would be good
Terminal logs: