Changeset 186 for smplayer/vendor/current/setup/smplayer.nsi
- Timestamp:
- Jan 24, 2017, 12:24:46 PM (9 years ago)
- File:
-
- 1 edited
-
smplayer/vendor/current/setup/smplayer.nsi (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/setup/smplayer.nsi
r179 r186 1 1 ;Installer script for win32/win64 SMPlayer 2 2 ;Written by redxii ([email protected]) 3 ;Tested/Developed with Unicode NSIS 2.46.5/3.0rc1 3 ;Tested/Developed with Unicode NSIS 2.46.5/3.01 4 5 ; See http://nsis.sourceforge.net/Check_if_a_file_exists_at_compile_time for documentation 6 !macro !defineifexist _VAR_NAME _FILE_NAME 7 !tempfile _TEMPFILE 8 !ifdef NSIS_WIN32_MAKENSIS 9 ; Windows - cmd.exe 10 !system 'if exist "${_FILE_NAME}" echo !define ${_VAR_NAME} > "${_TEMPFILE}"' 11 !else 12 ; Posix - sh 13 !system 'if [ -e "${_FILE_NAME}" ]; then echo "!define ${_VAR_NAME}" > "${_TEMPFILE}"; fi' 14 !endif 15 !include '${_TEMPFILE}' 16 !delfile '${_TEMPFILE}' 17 !undef _TEMPFILE 18 !macroend 19 !define !defineifexist "!insertmacro !defineifexist" 4 20 5 21 !ifndef VER_MAJOR | VER_MINOR | VER_BUILD … … 52 68 !define SMPLAYER_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\SMPlayer" 53 69 70 71 72 73 54 74 ; Not the same as Qt, check file properties of the webkit dll if unsure 55 75 !ifndef QT_WEBKIT_VERSION 56 !define QT_WEBKIT_VERSION "5.6.1.0" 57 !endif 58 59 !define STATUS_DLL_NOT_FOUND "-1073741515" 76 !ifdef COMPILED_WITH_QT4 77 ; Qt Webkit version in 4.8.7 78 !define QT_WEBKIT_VERSION "4.9.4.0" 79 !else 80 !define QT_WEBKIT_VERSION "5.6.1.0" 81 !endif 82 !endif 60 83 61 84 ;-------------------------------- … … 66 89 BrandingText "SMPlayer for Windows v${SMPLAYER_VERSION}" 67 90 !ifdef WIN64 68 OutFile "output\smplayer-${SMPLAYER_VERSION}-x64.exe" 91 !ifdef COMPILED_WITH_QT4 92 OutFile "output\smplayer-${SMPLAYER_VERSION}-x64-Qt4.exe" 93 !else 94 OutFile "output\smplayer-${SMPLAYER_VERSION}-x64.exe" 95 !endif 69 96 !else 70 OutFile "output\smplayer-${SMPLAYER_VERSION}-win32.exe" 97 !ifdef COMPILED_WITH_QT4 98 OutFile "output\smplayer-${SMPLAYER_VERSION}-win32-Qt4.exe" 99 !else 100 OutFile "output\smplayer-${SMPLAYER_VERSION}-win32.exe" 101 !endif 71 102 !endif 72 103 … … 375 406 376 407 ;Qt platforms (Qt 5+) 408 377 409 SetOutPath "$INSTDIR\platforms" 378 410 File /nonfatal /r "${SMPLAYER_BUILD_DIR}\platforms\*.*" 411 379 412 380 413 ;SMPlayer key shortcuts … … 437 470 File /oname=mpv.com "${SMPLAYER_BUILD_DIR}\mpv\mpv64.com" 438 471 !else 439 File /r /x mpv64.exe /x mpv64.com "${SMPLAYER_BUILD_DIR}\mpv\*.*"472 File /r /x mpv64.exe /x mpv64.com "${SMPLAYER_BUILD_DIR}\mpv\*.*" 440 473 !endif 441 474 … … 501 534 CopyFiles /SILENT "$PLUGINSDIR\smtubebak\docs\smtube\*" "$INSTDIR\docs\smtube" 502 535 CopyFiles /SILENT "$PLUGINSDIR\smtubebak\translations\*" "$INSTDIR\translations" 536 537 538 503 539 CopyFiles /SILENT "$PLUGINSDIR\smtubebak\icuin*.dll" "$INSTDIR" 504 540 CopyFiles /SILENT "$PLUGINSDIR\smtubebak\icuuc*.dll" "$INSTDIR" … … 516 552 CopyFiles /SILENT "$PLUGINSDIR\smtubebak\Qt5PrintSupport.dll" "$INSTDIR" 517 553 CopyFiles /SILENT "$PLUGINSDIR\smtubebak\Qt5MultimediaWidgets.dll" "$INSTDIR" 554 518 555 ${EndIf} 519 556 … … 549 586 ;Registry Uninstall information 550 587 !ifdef WIN64 551 WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name) (x64)" 588 !ifdef COMPILED_WITH_QT4 589 WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name) (x64) (Qt4)" 590 !else 591 WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name) (x64)" 592 !endif 552 593 !else 553 WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name)" 594 !ifdef COMPILED_WITH_QT4 595 WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name) (Qt4)" 596 !else 597 WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name)" 598 !endif 554 599 !endif 555 600 WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayIcon" "$INSTDIR\smplayer.exe" … … 720 765 Delete "$INSTDIR\smtube.exe" 721 766 Delete "$INSTDIR\dxlist.exe" 767 722 768 Delete "$INSTDIR\icudt*.dll" 723 769 Delete "$INSTDIR\icuin*.dll" … … 773 819 Function .onInit 774 820 821 822 823 824 775 825 !ifdef WIN64 776 826 ${Unless} ${AtLeastWinVista} … … 961 1011 CopyFiles /SILENT "$SMPlayer_Path\docs\smtube\*" "$PLUGINSDIR\smtubebak\docs\smtube" 962 1012 CopyFiles /SILENT "$SMPlayer_Path\translations\smtube*.qm" "$PLUGINSDIR\smtubebak\translations" 1013 1014 1015 963 1016 CopyFiles /SILENT "$SMPlayer_Path\icuin*.dll" "$PLUGINSDIR\smtubebak" 964 1017 CopyFiles /SILENT "$SMPlayer_Path\icuuc*.dll" "$PLUGINSDIR\smtubebak" … … 976 1029 CopyFiles /SILENT "$SMPlayer_Path\Qt5PrintSupport.dll" "$PLUGINSDIR\smtubebak" 977 1030 CopyFiles /SILENT "$SMPlayer_Path\Qt5MultimediaWidgets.dll" "$PLUGINSDIR\smtubebak" 1031 978 1032 StrCpy $Restore_SMTube 1 979 1033 Return 980 1034 QtVerMismatch: 981 1035 DetailPrint $(SMTube_Incompatible_Msg1) 982 DetailPrint $(SMTube_Incompatible_Msg2)983 Sleep 50001036 DetailPrint $(SMTube_Incompatible_Msg2) 1037 Sleep 5000 984 1038 NoBackup: 985 1039 StrCpy $Restore_SMTube 0 … … 1145 1199 ; Get version of Qt5Core.dll from the build sources (smplayer-build/smplayer-build64) 1146 1200 ClearErrors 1201 1202 1203 1147 1204 GetDLLVersionLocal ${SMPLAYER_BUILD_DIR}\Qt5Core.dll $R0 $R1 1205 1148 1206 IntOp $R2 $R0 / 0x00010000 1149 1207 IntOp $R3 $R0 & 0x0000FFFF
Note:
See TracChangeset
for help on using the changeset viewer.
