Add more riff id's to support remuxing
[FFMpeg-mirror/ordered_chapters.git] / ffinstall.nsi
blobd3198a04eb941a185de13cca9469f5678c3d2f32
1 ;NSIS Script For FFmpeg
3 ;Title Of Your Application
4 Name "FFmpeg"
5 CompletedText "FFmpeg install completed! Enjoy your meal!"
7 ; do a CRC check
8 CRCCheck On
10 ; output file name
11 OutFile "FFinstall.exe"
13 ; license page introduction
14 LicenseText "You must agree to this license before installing."
16 ; license data
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"
25 Section "Install"
26 ;Install Files
27 SetOutPath $INSTDIR
28 SetCompress Auto
29 SetOverwrite IfNewer
30 File ".\ffmpeg.exe"
31 File ".\SDL.dll"
32 File ".\ffplay.exe"
33 File ".\COPYING"
34 File ".\CREDITS"
36 ; documentation
37 SetOutPath $INSTDIR\doc
38 File ".\doc\faq.html"
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"
46 SectionEnd
48 Section "Shortcuts"
49 ;Add Shortcuts
50 SectionEnd
52 UninstallText "This will uninstall FFmpeg from your system"
54 Section Uninstall
55 ; delete files
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"
67 RMDir /r $INSTDIR\doc
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"
73 RMDir "$INSTDIR"
74 SectionEnd