Changeset 137 for smplayer/vendor/current/setup/smplayer.nsi
- Timestamp:
- Dec 3, 2012, 5:29:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/setup/smplayer.nsi
r133 r137 1 ; 2 ; 3 ; 1 ;Installer script for win32/win64 SMPlayer 2 ;Written by redxii (redxii@users.sourceforge.net) 3 ;Tested/Developed with Unicode NSIS 2.46.5 4 4 5 5 !ifndef VER_MAJOR | VER_MINOR | VER_BUILD … … 62 62 BrandingText "SMPlayer for Windows v${SMPLAYER_VERSION}" 63 63 !ifdef WIN64 64 OutFile "output\smplayer-${SMPLAYER_VERSION}-x 86_64.exe"64 OutFile "output\smplayer-${SMPLAYER_VERSION}-x64.exe" 65 65 !else 66 OutFile "output\smplayer-${SMPLAYER_VERSION}- x86.exe"66 OutFile "output\smplayer-${SMPLAYER_VERSION}-win32.exe" 67 67 !endif 68 68 … … 121 121 !define MUI_UNICON "smplayer-orange-uninstaller.ico" 122 122 123 ; 123 ;Misc 124 124 !define MUI_WELCOMEFINISHPAGE_BITMAP "smplayer-orange-wizard.bmp" 125 125 !define MUI_UNWELCOMEFINISHPAGE_BITMAP "smplayer-orange-wizard-un.bmp" 126 126 !define MUI_ABORTWARNING 127 127 128 ; License page 128 ;Welcome page 129 !define MUI_WELCOMEPAGE_TITLE $(WelcomePage_Title) 130 !define MUI_WELCOMEPAGE_TEXT $(WelcomePage_Text) 131 132 ;License page 129 133 !define MUI_LICENSEPAGE_RADIOBUTTONS 130 134 131 ; 135 ;Components page 132 136 !define MUI_COMPONENTSPAGE_SMALLDESC 133 137 134 ; 138 ;Finish page 135 139 !define MUI_FINISHPAGE_LINK "http://smplayer.sourceforge.net" 136 140 !define MUI_FINISHPAGE_LINK_LOCATION "http://smplayer.sourceforge.net" … … 173 177 174 178 ;Install pages 179 #Welcome 175 180 !insertmacro MUI_PAGE_WELCOME 176 !insertmacro MUI_PAGE_LICENSE "${SMPLAYER_BUILD_DIR}\Copying.txt" 181 182 #License 183 !insertmacro MUI_PAGE_LICENSE "license.txt" 177 184 178 185 #Upgrade/Reinstall … … 198 205 !insertmacro MUI_UNPAGE_CONFIRM 199 206 !insertmacro MUI_UNPAGE_INSTFILES 200 !define MUI_PAGE_CUSTOMFUNCTION_PRE un.FinishPagePre201 207 !insertmacro MUI_UNPAGE_FINISH 202 208 … … 229 235 !insertmacro MUI_LANGUAGE "TradChinese" 230 236 231 ; 237 ;Custom translations for setup 232 238 233 239 !insertmacro LANGFILE_INCLUDE "translations\english.nsh" … … 413 419 done: 414 420 415 421 SectionEnd 416 422 417 423 SectionGroupEnd … … 448 454 ;Allows user to use 'start smplayer.exe' 449 455 WriteRegStr HKLM "${SMPLAYER_APP_PATHS_KEY}" "" "$INSTDIR\smplayer.exe" 456 WriteRegStr HKLM "${SMPLAYER_APP_PATHS_KEY}" "Path" "$INSTDIR" 450 457 451 458 ;Default Programs Registration (Vista & later) … … 610 617 611 618 retry_runcheck: 612 613 614 615 619 FindProcDLL::FindProc "smplayer.exe" 620 IntCmp $R0 1 0 +3 621 MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(SMPlayer_Is_Running) /SD IDCANCEL IDRETRY retry_runcheck 622 Abort 616 623 617 624 FunctionEnd … … 628 635 MessageBox MB_YESNO|MB_ICONSTOP $(OS_Not_Supported) /SD IDNO IDYES installonoldwindows 629 636 Abort 630 637 installonoldwindows: 631 638 ${EndIf} 632 639 … … 644 651 MessageBox MB_OK|MB_ICONSTOP $(Existing_32bitInst) 645 652 Abort 646 653 647 654 SetRegView 64 648 655 !else … … 655 662 MessageBox MB_OK|MB_ICONSTOP $(Existing_64bitInst) 656 663 Abort 657 664 658 665 SetRegView 32 659 666 ${EndIf} … … 669 676 670 677 ;Check if SMPlayer is running 671 Call RunCheck 678 ;Allow skipping check using /NORUNCHECK 679 ${GetParameters} $R0 680 ${GetOptions} $R0 "/NORUNCHECK" $R1 681 IfErrors 0 +2 682 Call RunCheck 672 683 673 684 ;Check for admin on < Vista … … 959 970 960 971 ;Check if SMPlayer is running 961 Call un.RunCheck 972 ;Allow skipping check using /NORUNCHECK 973 ${un.GetParameters} $R0 974 ${un.GetOptions} $R0 "/NORUNCHECK" $R1 975 IfErrors 0 +2 976 Call un.RunCheck 962 977 963 978 ;Gets start menu folder name … … 979 994 980 995 FunctionEnd 981 982 Function un.FinishPagePre983 984 ${un.GetParameters} $R0985 986 ${un.GetOptionsS} $R0 "/X" $R1987 ${Unless} ${Errors}988 Abort989 ${EndUnless}990 991 FunctionEnd
Note:
See TracChangeset
for help on using the changeset viewer.