1 ;NSIS Script For FFmpeg
3 ;Title Of Your Application
5 CompletedText "FFmpeg install completed! Enjoy your meal!"
11 OutFile "FFinstall.exe"
13 ; license page introduction
14 LicenseText "You must agree to this license before installing."
17 LicenseData ".\COPYING"
19 ; the default installation directory
20 InstallDir "$PROGRAMFILES\FFmpeg"
22 ;The text to prompt the user to enter a directory
23 DirText "Please select the folder below"
37 SetOutPath $INSTDIR\doc
39 File ".\doc\ffmpeg-doc.html"
40 File ".\doc\ffplay-doc.html"
42 ; Write the uninstall keys for Windows
43 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\FFmpeg" "DisplayName" "FFmpeg (remove only)"
44 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\FFmpeg" "UninstallString" "$INSTDIR\Uninst.exe"
45 WriteUninstaller "Uninst.exe"
52 UninstallText "This will uninstall FFmpeg from your system"
56 Delete "$INSTDIR\ffmpeg.exe"
57 Delete "$INSTDIR\SDL.dll"
58 Delete "$INSTDIR\ffplay.exe"
59 Delete "$INSTDIR\COPYING"
60 Delete "$INSTDIR\CREDITS"
62 ; delete documentation
63 Delete "$INSTDIR\doc\faq.html"
64 Delete "$INSTDIR\ffmpeg-doc.html"
65 Delete "$INSTDIR\doc\ffplay-doc.html"
69 ; delete uninstaller and unistall registry entries
70 Delete "$INSTDIR\Uninst.exe"
71 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\FFmpeg"
72 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FFmpeg"