summaryrefslogtreecommitdiff
path: root/ffinstall.nsi
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-09-11 22:49:35 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-09-11 22:49:35 +0000
commitd35ff76b794281956cfb75430abee75227fd0378 (patch)
tree47b78c681d736ef6c68a164f9c830a60c024eb29 /ffinstall.nsi
parent258207b7fcb3505c7a5d0185b984f1eef8aca847 (diff)
windows installer
Originally committed as revision 2263 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffinstall.nsi')
-rw-r--r--ffinstall.nsi75
1 files changed, 75 insertions, 0 deletions
diff --git a/ffinstall.nsi b/ffinstall.nsi
new file mode 100644
index 0000000000..6082bb056b
--- /dev/null
+++ b/ffinstall.nsi
@@ -0,0 +1,75 @@
+;NSIS Script For FFmpeg
+
+;Title Of Your Application
+Name "FFmpeg"
+CompletedText "FFmpeg install completed! Enjoy your meal!"
+
+; do a CRC check
+CRCCheck On
+
+; output file name
+OutFile "FFinstall.exe"
+
+; license page introduction
+LicenseText "You must agree to this license before installing."
+
+; license data
+LicenseData ".\COPYING"
+
+; the default installation directory
+InstallDir "$PROGRAMFILES\FFmpeg"
+
+;The text to prompt the user to enter a directory
+DirText "Please select the folder below"
+
+Section "Install"
+ ;Install Files
+ SetOutPath $INSTDIR
+ SetCompress Auto
+ SetOverwrite IfNewer
+ File "C:\Program Files\FFmpeg\bin\ffmpeg.exe"
+ File "C:\Program Files\FFmpeg\bin\SDL.dll"
+ File "C:\Program Files\FFmpeg\bin\ffplay.exe"
+ File ".\COPYING"
+ File ".\CREDITS"
+
+ ; documentation
+ SetOutPath $INSTDIR\doc
+ File ".\doc\faq.html"
+ File ".\doc\ffmpeg-doc.html"
+ File ".\doc\ffplay-doc.html"
+
+ ; Write the uninstall keys for Windows
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\FFmpeg" "DisplayName" "FFmpeg (remove only)"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\FFmpeg" "UninstallString" "$INSTDIR\Uninst.exe"
+WriteUninstaller "Uninst.exe"
+SectionEnd
+
+Section "Shortcuts"
+ ;Add Shortcuts
+SectionEnd
+
+UninstallText "This will uninstall FFmpeg from your system"
+
+Section Uninstall
+ ; delete files
+ Delete "$INSTDIR\ffmpeg.exe"
+ Delete "$INSTDIR\SDL.dll"
+ Delete "$INSTDIR\ffplay.exe"
+ Delete "$INSTDIR\COPYING"
+ Delete "$INSTDIR\CREDITS"
+
+ ; delete documentation
+ Delete "$INSTDIR\doc\faq.html"
+ Delete "$INSTDIR\ffmpeg-doc.html"
+ Delete "$INSTDIR\doc\ffplay-doc.html"
+
+ RMDir /r $INSTDIR\doc
+
+ ; delete uninstaller and unistall registry entries
+ Delete "$INSTDIR\Uninst.exe"
+ DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\FFmpeg"
+ DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FFmpeg"
+ RMDir "$INSTDIR"
+SectionEnd
+