From 2512846dab2096d20224045dc2d4e43cf9e99e68 Mon Sep 17 00:00:00 2001
From: Damien Fouilleul <damienf@videolan.org>
Date: Tue, 22 Feb 2005 11:13:11 +0000
Subject: [PATCH] added ActiveX control to the VLC installer

---
 vlc.win32.nsi | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/vlc.win32.nsi b/vlc.win32.nsi
index fa41aaa720..0aa9f39412 100644
--- a/vlc.win32.nsi
+++ b/vlc.win32.nsi
@@ -188,14 +188,21 @@ SectionEnd
 
 Section /o "Mozilla plugin" SEC03
   SectionIn 2 3
-  File  /r mozilla
+  File /r mozilla
 
   WriteRegStr HKLM \
     SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION} \
     "Path" '"$INSTDIR\mozilla\npvlc.dll"'
 SectionEnd
 
-SubSection "File type associations" SEC04
+Section /o "ActiveX plugin" SEC04
+  SectionIn 2 3
+  SetOutPath $SYSDIR
+  File activex\axvlc.dll
+  RegDLL $SYSDIR\axvlc.dll
+SectionEnd
+
+SubSection "File type associations" SEC05
   ; Make sure we have the same list in uninstall
   !insertmacro RegisterExtensionSection ".a52"
   !insertmacro RegisterExtensionSection ".aac"
@@ -264,6 +271,8 @@ SectionEnd
   !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} \
     "The VLC mozilla plugin"
   !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} \
+    "The VLC ActiveX plugin"
+  !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} \
     "Sets VLC media player as the default application for the specified file type"
 !insertmacro MUI_FUNCTION_DESCRIPTION_END
 
-- 
2.25.4