]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blob - ffinstall.nsi
Grammar nits
[frescor/ffmpeg.git] / ffinstall.nsi
1 ;NSIS Script For FFmpeg
2
3 ;Title Of Your Application
4 Name "FFmpeg"
5 CompletedText "FFmpeg install completed! Enjoy your meal!"
6
7 ; do a CRC check
8 CRCCheck On
9
10 ; output file name
11 OutFile "FFinstall.exe"
12
13 ; license page introduction
14 LicenseText "You must agree to this license before installing."
15
16 ; license data
17 LicenseData ".\COPYING"
18
19 ; the default installation directory
20 InstallDir "$PROGRAMFILES\FFmpeg"
21
22 ;The text to prompt the user to enter a directory
23 DirText "Please select the folder below"
24
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"
35
36   ; documentation
37   SetOutPath $INSTDIR\doc
38   File ".\doc\faq.html"
39   File ".\doc\ffmpeg-doc.html"
40   File ".\doc\ffplay-doc.html"
41
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
47
48 Section "Shortcuts"
49   ;Add Shortcuts
50 SectionEnd
51
52 UninstallText "This will uninstall FFmpeg from your system"
53
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"
61
62   ; delete documentation
63   Delete "$INSTDIR\doc\faq.html"
64   Delete "$INSTDIR\ffmpeg-doc.html"
65   Delete "$INSTDIR\doc\ffplay-doc.html"
66
67   RMDir /r $INSTDIR\doc
68
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
75