!define PRODUCT_UNINST_ROOT_KEY "HKLM"\r
!define PRODUCT_ID "{ea92ef52-afe4-4212-bacb-dfe9fca94cd6}"\r
\r
+@FILE_LIBVLC_DLL@\r
+\r
;;;;;;;;;;;;;;;;;;;;;;;;;\r
; General configuration ;\r
;;;;;;;;;;;;;;;;;;;;;;;;;\r
SetOverwrite ifnewer\r
CRCCheck on\r
\r
-InstType "Normal"\r
+InstType "Minimum"\r
InstType "Full"\r
+InstType "Recommended"\r
\r
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
; NSIS Modern User Interface configuration ;\r
Var UninstallLog\r
\r
!macro OpenUninstallLog\r
- FileOpen $UninstallLog "$INSTDIR\uninstall.log" w\r
+ FileOpen $UninstallLog "$INSTDIR\uninstall.log" a\r
FileSeek $UninstallLog 0 END\r
!macroend\r
\r
\r
!insertmacro InstallFile vlc.exe\r
!insertmacro InstallFile vlc.exe.manifest\r
- @FILE_LIBVLC_DLL@\r
+ !ifdef LIBVLC_DLL\r
+ !insertmacro InstallFile ${LIBVLC_DLL}\r
+ !endif\r
!insertmacro InstallFile *.txt\r
\r
!insertmacro InstallFolder plugins\r
Section "Desktop Shortcut" SEC02b\r
SectionIn 1 2 3\r
CreateShortCut "$DESKTOP\VLC media player.lnk" \\r
- "$INSTDIR\vlc.exe" "--intf wx"\r
+ "$INSTDIR\vlc.exe" ""\r
SectionEnd\r
\r
Section /o "Mozilla plugin" SEC03\r
StrCmp $R2 "" "${Index}-Loop" ""\r
\r
CopyFiles "$INSTDIR\mozilla\*" "$R2"\r
+ !ifdef LIBVLC_DLL\r
+ CopyFiles ${LIBVLC_DLL} "$R2"\r
+ !endif\r
Goto "${Index}-Loop"\r
\r
"${Index}-End:"\r
\r
SectionEnd\r
\r
-Section "ActiveX plugin" SEC04\r
+Section /o "ActiveX plugin" SEC04\r
SectionIn 2 3\r
SetOutPath "$INSTDIR"\r
!insertmacro OpenUninstallLog\r
RegDLL "$INSTDIR\axvlc.dll"\r
SectionEnd\r
\r
-Section "Context Menus" SEC05\r
+Section /o "Context Menus" SEC05\r
SectionIn 2\r
!insertmacro MacroAllExtensions AddContextMenu\r
!insertmacro AddContextMenu "Directory"\r
SectionEnd\r
\r
Section /o "un.Delete preferences and cache" SEC92\r
- SectionIn 2 3 RO\r
+ SectionIn 2 3\r
!insertmacro delprefs\r
SectionEnd\r
\r