VirtualBox

source: vbox/trunk/src/libs/ffmpeg-20060710/ffinstall.nsi@ 9337

Last change on this file since 9337 was 5776, checked in by vboxsync, 17 years ago

ffmpeg: exported to OSE

File size: 1.8 KB
Line 
1;NSIS Script For FFmpeg
2
3;Title Of Your Application
4Name "FFmpeg"
5CompletedText "FFmpeg install completed! Enjoy your meal!"
6
7; do a CRC check
8CRCCheck On
9
10; output file name
11OutFile "FFinstall.exe"
12
13; license page introduction
14LicenseText "You must agree to this license before installing."
15
16; license data
17LicenseData ".\COPYING"
18
19; the default installation directory
20InstallDir "$PROGRAMFILES\FFmpeg"
21
22;The text to prompt the user to enter a directory
23DirText "Please select the folder below"
24
25Section "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"
45WriteUninstaller "Uninst.exe"
46SectionEnd
47
48Section "Shortcuts"
49 ;Add Shortcuts
50SectionEnd
51
52UninstallText "This will uninstall FFmpeg from your system"
53
54Section 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"
74SectionEnd
75
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette