Ignore:
Timestamp:
Feb 21, 2014, 5:26:03 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update trunk to 0.8.6

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/setup/smplayer.nsi

    r142 r156  
    9797  Var Reinstall_OverwriteButton
    9898  Var Reinstall_OverwriteButton_State
     99  Var Reinstall_RemoveSettings
     100  Var Reinstall_RemoveSettings_State
    99101  Var Reinstall_Uninstall
    100102  Var Reinstall_UninstallButton
     
    361363
    362364    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
    364371
    365372    WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_MPlayer 0x1
     
    368375
    369376  Section /o $(Section_MPlayerCodecs) SecCodecs
     377
     378!ifdef WIN64
     379    SectionIn RO
     380!endif
    370381
    371382    AddSize 22931
     
    442453${MementoSectionEnd}
    443454
     455Section /o $(Reinstall_Msg5) SecResetSettings
     456
     457    NsExec::Exec '"$INSTDIR\smplayer.exe" -delete-config'
     458
     459SectionEnd
     460
    444461;--------------------------------
    445462;Install/Uninstall information
     
    492509  !insertmacro MUI_DESCRIPTION_TEXT ${SecThemes} $(Section_IconThemes_Desc)
    493510  !insertmacro MUI_DESCRIPTION_TEXT ${SecTranslations} $(Section_Translations_Desc)
     511  !insertmacro MUI_DESCRIPTION_TEXT ${SecResetSettings} $(Section_ResetSettings_Desc)
    494512!insertmacro MUI_FUNCTION_DESCRIPTION_END
    495513
     
    642660Function .onInit
    643661
    644 /*
    645662  ${Unless} ${AtLeastWinXP}
    646663    MessageBox MB_YESNO|MB_ICONSTOP $(OS_Not_Supported) /SD IDNO IDYES installonoldwindows
     
    648665  installonoldwindows:
    649666  ${EndIf}
    650 */
    651667
    652668!ifdef WIN64
     
    719735  ${MementoSectionSave}
    720736
    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*/
    722742
    723743FunctionEnd
     
    736756FunctionEnd
    737757
    738 Function un.onUninstSuccess
     758/* Function un.onUninstSuccess
    739759
    740760  ;Don't launch uninstall page if reinstalling
     
    745765  ExecShell "open" "http://smplayer.sourceforge.net/uninstall.php?version=${SMPLAYER_VERSION}"
    746766
    747 FunctionEnd
     767FunctionEnd */
    748768
    749769Function CheckPreviousVersion
     
    794814
    795815  ;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
    800825
    801826  ;Gets start menu folder name
     
    834859  Pop $Reinstall_ChgSettings
    835860
    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
    837865  Pop $Reinstall_Message
    838866
     
    844872  ${Endif}
    845873
     874  ${If} $Reinstall_RemoveSettings_State == 1
     875    SendMessage $Reinstall_RemoveSettings ${BM_SETCHECK} 1 0
     876  ${Endif}
     877
    846878  ${NSD_OnClick} $Reinstall_OverwriteButton PageReinstallUpdate
    847879  ${NSD_OnClick} $Reinstall_UninstallButton PageReinstallUpdate
     
    859891  ${NSD_GetState} $Reinstall_UninstallButton $Reinstall_UninstallButton_State
    860892  ${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}
    861898
    862899FunctionEnd
     
    871908
    872909    EnableWindow $Reinstall_ChgSettings 1
     910    EnableWindow $Reinstall_RemoveSettings 1
    873911
    874912    GetDlgItem $R0 $HWNDPARENT 1
     
    886924    ${NSD_SetState} $Reinstall_ChgSettings 0
    887925
     926    EnableWindow $Reinstall_RemoveSettings 0
     927    ${NSD_SetState} $Reinstall_RemoveSettings 0
     928
    888929    GetDlgItem $R0 $HWNDPARENT 1
    889930    SendMessage $R0 ${WM_SETTEXT} 0 "STR:$(^UninstallBtn)"
Note: See TracChangeset for help on using the changeset viewer.