Looking at some of the older posts, it looks like a lot of the devs figure that vlc.win32.nsi should not be distributed with the zip file, as less then 1% of people who download it will use it.
It is available in the source code - the file is vlc-2.0.5.tar.xz
The path within that compressed file is vlc-2.0.5\vlc-2.0.5\extras\package\win32\vlc.win32.nsi.in
Here are my notes:
===Prerequisites===
NSIS (Nullsoft)
http://nsis.sourceforge.net/Download
NSIS UAC Plugin
http://nsis.sourceforge.net/UAC_plug-in
http://nsis.sourceforge.net/How_can_I_install_a_plugin
===VLC===
Download the 7zip VLC File. Unzip. Also download the .tar.xz file.
Unzip both.
From the .tar.xz file, copy the whole of the vlc-2.0.5\vlc-2.0.5\extras\package\win32 folder into the unzipped 7zip file.
Rename to remove the vlc.win32.nsi.in to vlc.win32.nsi
Look for, then open in a text editor, the following file: vlc.win32.nsi
Change:
Lines 9 & 10
Code: Select all
!define VERSION 2.0.5
!define PRODUCT_VERSION 2.0.5
Lines 31-33
Code: Select all
OutFile ..\vlc-${VERSION}-win32.exe
; OutFile ..\vlc-${VERSION}-win64.exe
InstallDir "$PROGRAMFILES\VideoLAN\VLC"
Lines 538-540
Code: Select all
!insertmacro InstallFolder osdmenu
!insertmacro InstallFolder skins
!insertmacro InstallFolder lua
Lines 609 & 610
Code: Select all
; CreateShortCut "$DESKTOP\VLC media player.lnk" \
; "$INSTDIR\vlc.exe" ""
Lines 779-790
Code: Select all
;@HAVE_WIN64_TRUE@ !include "x64.nsh"
;@HAVE_WIN64_TRUE@ ${If} ${RunningX64}
;@HAVE_WIN64_TRUE@ ${Else}
;
;@HAVE_WIN64_TRUE@ MessageBox MB_OK|MB_ICONSTOP "This version of VLC only runs on 64bits operating systems.$\nYour operating system is 32bits.$\n$\nPlease get the 32 BITS version."
;@HAVE_WIN64_TRUE@ Quit
;@HAVE_WIN64_TRUE@ ${Endif}
;
;
;
;@HAVE_WIN64_TRUE@ SetRegView 64
Line 793
Code: Select all
StrCpy $INSTDIR "$PROGRAMFILES\VideoLAN\VLC"
Line 975
Line 977
Languages - in 2.0.5 many languages were missing. Comment out relevant lines. (look in the languages subfolder, and comment out things that are missing)
Right click on nsi file, select "Compile"