Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding WMP plugin to windows builds

Applies to #75
  • Loading branch information...
commit 39caf833612aac4d2412929dd84bfab774e10f1d 1 parent 640e119
@kwood1138 kwood1138 authored
View
10 tools/build/win32/installer/kylo-install.nsh
@@ -104,6 +104,7 @@ Section "$(SectNameMain)" SecBrowser
; Icon file
File /oname=${ICO_NAME} ${MUI_ICON}
+ call WMP_DoInstall
call MSVC_DoInstall
SectionEnd
@@ -327,6 +328,15 @@ Function MSVC_DoInstall
${EndIf}
FunctionEnd
+Function WMP_DoInstall
+ ${IfNot} ${FileExists} $INSTDIR\Plugins
+ CreateDirectory "$INSTDIR\Plugins"
+ ${EndIf}
+ SetOutPath $INSTDIR\Plugins
+
+ File /nonfatal /r ${WMP_PLUGIN_DIR}\*.*
+FunctionEnd
+
Function FlashInstallerPage
File /nonfatal /oname=$PLUGINSDIR\${FLASH_PLUGIN} ${REDIST_DIR}\${FLASH_PLUGIN}
${IfNot} ${FileExists} $PLUGINSDIR\${FLASH_PLUGIN}
View
1  tools/build/win32/installer/kylo-uninstall.nsh
@@ -47,6 +47,7 @@ Section -un.main
RMDir /r $INSTDIR\components
RMDir /r $INSTDIR\defaults
RMDir /r $INSTDIR\extensions
+ RMDir /r $INSTDIR\Plugins
RMDir /r $INSTDIR\xulrunner
Delete $INSTDIR\application.ini
Delete $INSTDIR\chrome.manifest
View
1  tools/build/win32/installer/kylo.nsi
@@ -76,6 +76,7 @@
!define ICO_NAME "Kylo.ico"
!define FLASH_PLUGIN "install_flash_player_11_plugin.exe"
+!define WMP_PLUGIN_DIR "${REDIST_DIR}\wmp"
!define MSVC_REDIST "vcredist_x86.exe"
!define S_DEFINSTDIR_USER "$LOCALAPPDATA\${DEFAULT_INSTALL_DIR}"
Please sign in to comment.
Something went wrong with that request. Please try again.