Changeset 156 for smplayer/trunk/setup/smplayer.nsi
- Timestamp:
- Feb 21, 2014, 5:26:03 PM (11 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 154
- Property svn:mergeinfo changed
-
smplayer/trunk/setup/smplayer.nsi
r142 r156 97 97 Var Reinstall_OverwriteButton 98 98 Var Reinstall_OverwriteButton_State 99 Var Reinstall_RemoveSettings 100 Var Reinstall_RemoveSettings_State 99 101 Var Reinstall_Uninstall 100 102 Var Reinstall_UninstallButton … … 361 363 362 364 SetOutPath "$INSTDIR\mplayer" 363 File /r /x mencoder.exe "${SMPLAYER_BUILD_DIR}\mplayer\*.*" 365 File /r /x mplayer.exe /x mencoder.exe /x mplayer64.exe /x mencoder64.exe "${SMPLAYER_BUILD_DIR}\mplayer\*.*" 366 !ifdef WIN64 367 File /oname=mplayer.exe "${SMPLAYER_BUILD_DIR}\mplayer\mplayer64.exe" 368 !else 369 File "${SMPLAYER_BUILD_DIR}\mplayer\mplayer.exe" 370 !endif 364 371 365 372 WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_MPlayer 0x1 … … 368 375 369 376 Section /o $(Section_MPlayerCodecs) SecCodecs 377 378 !ifdef WIN64 379 SectionIn RO 380 !endif 370 381 371 382 AddSize 22931 … … 442 453 ${MementoSectionEnd} 443 454 455 Section /o $(Reinstall_Msg5) SecResetSettings 456 457 NsExec::Exec '"$INSTDIR\smplayer.exe" -delete-config' 458 459 SectionEnd 460 444 461 ;-------------------------------- 445 462 ;Install/Uninstall information … … 492 509 !insertmacro MUI_DESCRIPTION_TEXT ${SecThemes} $(Section_IconThemes_Desc) 493 510 !insertmacro MUI_DESCRIPTION_TEXT ${SecTranslations} $(Section_Translations_Desc) 511 !insertmacro MUI_DESCRIPTION_TEXT ${SecResetSettings} $(Section_ResetSettings_Desc) 494 512 !insertmacro MUI_FUNCTION_DESCRIPTION_END 495 513 … … 642 660 Function .onInit 643 661 644 /*645 662 ${Unless} ${AtLeastWinXP} 646 663 MessageBox MB_YESNO|MB_ICONSTOP $(OS_Not_Supported) /SD IDNO IDYES installonoldwindows … … 648 665 installonoldwindows: 649 666 ${EndIf} 650 */651 667 652 668 !ifdef WIN64 … … 719 735 ${MementoSectionSave} 720 736 721 ExecShell "open" "http://smplayer.sourceforge.net/thank-you.php?version=${SMPLAYER_VERSION}" 737 /* 738 ${Unless} $Reinstall_Uninstall == 1 739 ExecShell "open" "http://smplayer.sourceforge.net/thank-you.php?version=${SMPLAYER_VERSION}" 740 ${EndIf} 741 */ 722 742 723 743 FunctionEnd … … 736 756 FunctionEnd 737 757 738 Function un.onUninstSuccess758 /* Function un.onUninstSuccess 739 759 740 760 ;Don't launch uninstall page if reinstalling … … 745 765 ExecShell "open" "http://smplayer.sourceforge.net/uninstall.php?version=${SMPLAYER_VERSION}" 746 766 747 FunctionEnd 767 FunctionEnd */ 748 768 749 769 Function CheckPreviousVersion … … 794 814 795 815 ;MPlayer codecs section doesn't use Memento so we need to restore it manually 796 ReadRegDWORD $R0 HKLM "${SMPLAYER_REG_KEY}" "Installed_Codecs" 797 ${If} $R0 == 1 798 !insertmacro SelectSection ${SecCodecs} 799 ${EndIf} 816 ;32-bit only 817 !ifdef WIN64 818 !insertmacro UnSelectSection ${SecCodecs} 819 !else 820 ReadRegDWORD $R0 HKLM "${SMPLAYER_REG_KEY}" "Installed_Codecs" 821 ${If} $R0 == 1 822 !insertmacro SelectSection ${SecCodecs} 823 ${EndIf} 824 !endif 800 825 801 826 ;Gets start menu folder name … … 834 859 Pop $Reinstall_ChgSettings 835 860 836 ${NSD_CreateLabel} 0 115u 100% 16u 861 ${NSD_CreateCheckBox} 0 102u 100% 8u $(Reinstall_Msg5) 862 Pop $Reinstall_RemoveSettings 863 864 ${NSD_CreateLabel} 0 121u 100% 16u 837 865 Pop $Reinstall_Message 838 866 … … 844 872 ${Endif} 845 873 874 ${If} $Reinstall_RemoveSettings_State == 1 875 SendMessage $Reinstall_RemoveSettings ${BM_SETCHECK} 1 0 876 ${Endif} 877 846 878 ${NSD_OnClick} $Reinstall_OverwriteButton PageReinstallUpdate 847 879 ${NSD_OnClick} $Reinstall_UninstallButton PageReinstallUpdate … … 859 891 ${NSD_GetState} $Reinstall_UninstallButton $Reinstall_UninstallButton_State 860 892 ${NSD_GetState} $Reinstall_ChgSettings $Reinstall_ChgSettings_State 893 ${NSD_GetState} $Reinstall_RemoveSettings $Reinstall_RemoveSettings_State 894 895 ${If} $Reinstall_RemoveSettings_State == 1 896 !insertmacro SelectSection ${SecResetSettings} 897 ${EndIf} 861 898 862 899 FunctionEnd … … 871 908 872 909 EnableWindow $Reinstall_ChgSettings 1 910 EnableWindow $Reinstall_RemoveSettings 1 873 911 874 912 GetDlgItem $R0 $HWNDPARENT 1 … … 886 924 ${NSD_SetState} $Reinstall_ChgSettings 0 887 925 926 EnableWindow $Reinstall_RemoveSettings 0 927 ${NSD_SetState} $Reinstall_RemoveSettings 0 928 888 929 GetDlgItem $R0 $HWNDPARENT 1 889 930 SendMessage $R0 ${WM_SETTEXT} 0 "STR:$(^UninstallBtn)"
Note:
See TracChangeset
for help on using the changeset viewer.