Commit ca194833 authored by Sam Hocevar's avatar Sam Hocevar

  * Added Oct's NSIS installer script. It will probably not work for you,
    but I need it to build the Win32 auto installer.
parent 043b5c89
......@@ -347,6 +347,35 @@ snapshot-nocss: snapshot-common
# Clean up
rm -Rf tmp
package-win32:
# XXX: this rule is probably only useful to you if you have exactly
# the same setup as me. Contact sam@zoy.org if you need to use it.
#
# Check that tmp isn't in the way
@if test -e tmp; then \
echo "Error: please remove ./tmp, it is in the way"; false; \
else \
echo "OK."; mkdir tmp; \
fi
# Create installation script
sed -e 's#@VERSION@#'${VLC_QUICKVERSION}'#' < install-win32 > tmp/nsi
# Copy relevant files
cp vlc.exe plugins/directx.so plugins/gtk.so plugins/sdl.so tmp/
cp INSTALL-win32.txt AUTHORS COPYING ChangeLog ChangeLog.libdvdcss \
README README.libdvdcss FAQ TODO tmp/
for file in gtk-1.3.dll gdk-1.3.dll glib-1.3.dll gmodule-1.3.dll \
gnu-intl.dll SDL.dll README-SDL.txt ; \
do cp ../vlc-win32/$$file tmp/ ; done
mkdir tmp/share
for file in default8x16.psf default8x9.psf ; \
do cp share/$$file tmp/share/ ; done
# Create package
wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe /CD tmp/nsi
mv tmp/vlc-${VLC_QUICKVERSION}.exe \
vlc-${VLC_QUICKVERSION}-win32-installer.exe
# Clean up
rm -Rf tmp
libdvdcss-snapshot: snapshot-common
# Remove vlc sources and icons, doc, debian directory...
rm -Rf tmp/vlc/src tmp/vlc/share tmp/vlc/plugins tmp/vlc/doc
......
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; NSIS installer script for vlc ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; written by Pierre Baillet <oct@zoy.org> 29/7/01 v0.2
; modifications by Samuel Hocevar <sam@zoy.org> 12/11/01
;;;;;;;;;;;;;
; CHANGELOG ;
;;;;;;;;;;;;;
; . removed version information.
; . lists all installed files so as to prevent installer.nsi to be included
; in the release.
; . really remove the shortcuts.
; . added an exec command to display the program file folder. (grOovy)
OutFile vlc-@VERSION@.exe
Name "the VideoLAN Client"
Caption "vlc @VERSION@ for Win32 Setup"
;Icon ../share/gvlc_win32.ico
CRCCheck on
InstallDir $PROGRAMFILES\vlc
; check if the program has already been installed, if so, take this dir
; as install dir
InstallDirRegKey HKLM SOFTWARE\VideoLAN\VLC "Install_Dir"
DirText "Choose a directory to install in to:"
AutoCloseWindow false
ShowInstDetails show
; uninstall stuff
UninstallText "This will uninstall the VideoLAN Client. Hit next to continue."
UninstallExeName "vlc-uninst.exe"
SetOverwrite ifnewer
SetDatablockOptimize on
SetDateSave off
SetCompress auto
Section "Install"
SetOutPath $INSTDIR
File vlc.exe
File directx.so
File gtk.so
File sdl.so
File INSTALL-win32.txt
File AUTHORS
File COPYING
File ChangeLog
File ChangeLog.libdvdcss
File README
File README.libdvdcss
File FAQ
File TODO
File SDL.dll
File gtk-1.3.dll
File gdk-1.3.dll
File glib-1.3.dll
File gmodule-1.3.dll
File gnu-intl.dll
;File README-GTK.txt
File README-SDL.txt
File /r share
CreateDirectory "$SMPROGRAMS\VideoLAN"
CreateShortCut "$SMPROGRAMS\VideoLAN\vlc_@VERSION@.lnk" "$INSTDIR\vlc.exe"
CreateShortCut "$SMPROGRAMS\VideoLAN\Uninstall VLC.lnk" "$INSTDIR\vlc-uninst.exe"
WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR
WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "@VERSION@"
Exec "explorer $SMPROGRAMS\VideoLAN\"
SectionEnd
Section "Uninstall"
Delete $SMPROGRAMS\VideoLAN\*
RMDir $SMPROGRAMS\VideoLAN
Delete $INSTDIR\share\*
RMDir $INSTDIR\share
Delete $INSTDIR\*
RMDir $INSTDIR
DeleteRegKey HKLM SOFTWARE\VideoLAN
SectionEnd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment