From 74ae27f017386c04f6b17f4cf43158f37167d602 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 29 Mar 2006 07:52:47 +0000 Subject: [PATCH] Add video stuff. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2569 --- scripts/dosbox-installer.nsi | 39 +++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/scripts/dosbox-installer.nsi b/scripts/dosbox-installer.nsi index 957453c6..c11a94a4 100644 --- a/scripts/dosbox-installer.nsi +++ b/scripts/dosbox-installer.nsi @@ -1,11 +1,11 @@ !define VER_MAYOR 0 -!define VER_MINOR 63 +!define VER_MINOR 65 ; The name of the installer Name "DOSBox ${VER_MAYOR}.${VER_MINOR} Installer" ; The file to write -OutFile "Dosbox${VER_MAYOR}.${VER_MINOR}-win32-installer.exe" +OutFile "DOSBox${VER_MAYOR}.${VER_MINOR}-win32-installer.exe" ; The default installation directory InstallDir "$PROGRAMFILES\DOSBox-${VER_MAYOR}.${VER_MINOR}" @@ -23,6 +23,8 @@ Section "ThisNameIsIgnoredSoWhyBother?" SetOutPath $INSTDIR ; Put file there + CreateDirectory "$INSTDIR\capture" + CreateDirectory "$INSTDIR\zmbv" File /oname=README.txt README File /oname=COPYING.txt COPYING File /oname=THANKS.txt THANKS @@ -33,18 +35,22 @@ Section "ThisNameIsIgnoredSoWhyBother?" File dosbox.conf File SDL.dll File SDL_net.dll + File /oname=zmbv\zmbv.dll zmbv.dll + File /oname=zmbv\zmbv.inf zmbv.inf + File /oname=zmbv\README.txt README.video ; File libpng12.dll - File libogg-0.dll - File libvorbis-0.dll - File libvorbisfile-3.dll - - CreateDirectory "$INSTDIR\capture" +; File libogg-0.dll +; File libvorbis-0.dll +; File libvorbisfile-3.dll + CreateDirectory "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}" + CreateDirectory "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Video" CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\DOSBox.lnk" "$INSTDIR\DOSBox.exe" "-conf $\"$INSTDIR\dosbox.conf$\"" CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\README.lnk" "$INSTDIR\README.txt" CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\DOSBox.conf.lnk" "notepad.exe" "$INSTDIR\dosbox.conf" - + CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Video\Video instructions.lnk" "$INSTDIR\zmbv\README.txt" + CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Video\Install movie codec.lnk" "rundll32" "syssetup,SetupInfObjectInstallAction DefaultInstall 128 $INSTDIR\zmbv\zmbv.inf" WriteUninstaller "uninstall.exe" SectionEnd ; end the section @@ -64,11 +70,13 @@ Section "Uninstall" Delete $INSTDIR\dosbox.conf Delete $INSTDIR\SDL.dll Delete $INSTDIR\SDL_net.dll -; Delete $INSTDIR\libpng12.dll - Delete $INSTDIR\libogg-0.dll - Delete $INSTDIR\libvorbis-0.dll - Delete $INSTDIR\libvorbisfile-3.dll - + Delete $INSTDIR\zmbv\zmbv.dll + Delete $INSTDIR\zmbv\zmbv.inf + Delete $INSTDIR\zmbv\README.txt +; Delete $INSTDIR\libpng12.dll +; Delete $INSTDIR\libogg-0.dll +; Delete $INSTDIR\libvorbis-0.dll +; Delete $INSTDIR\libvorbisfile-3.dll ;Files left by sdl taking over the console Delete $INSTDIR\stdout.txt Delete $INSTDIR\stderr.txt @@ -81,10 +89,13 @@ Section "Uninstall" Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\README.lnk" Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\DOSBox.lnk" Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\DOSBox.conf.lnk" - + Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Video\Install movie codec.lnk" + Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Video\Video instructions.lnk" ; remove directories used. + RMDir "$INSTDIR\zmbv" RMDir "$INSTDIR\capture" RMDir "$INSTDIR" + RMDir "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Video" RMDir "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}" SectionEnd