Ignore:
Timestamp:
Dec 3, 2012, 5:29:00 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: updated vendor to 0.8.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/setup/smplayer.nsi

    r133 r137  
    1 ; Installer script for win32/win64 SMPlayer
    2 ; Written by redxii (redxii@users.sourceforge.net)
    3 ; Tested/Developed with Unicode NSIS 2.46.5
     1;Installer script for win32/win64 SMPlayer
     2;Written by redxii (redxii@users.sourceforge.net)
     3;Tested/Developed with Unicode NSIS 2.46.5
    44
    55!ifndef VER_MAJOR | VER_MINOR | VER_BUILD
     
    6262  BrandingText "SMPlayer for Windows v${SMPLAYER_VERSION}"
    6363!ifdef WIN64
    64   OutFile "output\smplayer-${SMPLAYER_VERSION}-x86_64.exe"
     64  OutFile "output\smplayer-${SMPLAYER_VERSION}-x64.exe"
    6565!else
    66   OutFile "output\smplayer-${SMPLAYER_VERSION}-x86.exe"
     66  OutFile "output\smplayer-${SMPLAYER_VERSION}-win32.exe"
    6767!endif
    6868
     
    121121  !define MUI_UNICON "smplayer-orange-uninstaller.ico"
    122122
    123   ; Misc
     123  ;Misc
    124124  !define MUI_WELCOMEFINISHPAGE_BITMAP "smplayer-orange-wizard.bmp"
    125125  !define MUI_UNWELCOMEFINISHPAGE_BITMAP "smplayer-orange-wizard-un.bmp"
    126126  !define MUI_ABORTWARNING
    127127
    128   ; License page
     128  ;Welcome page
     129  !define MUI_WELCOMEPAGE_TITLE $(WelcomePage_Title)
     130  !define MUI_WELCOMEPAGE_TEXT $(WelcomePage_Text)
     131
     132  ;License page
    129133  !define MUI_LICENSEPAGE_RADIOBUTTONS
    130134
    131   ; Components page
     135  ;Components page
    132136  !define MUI_COMPONENTSPAGE_SMALLDESC
    133137
    134   ; Finish page
     138  ;Finish page
    135139  !define MUI_FINISHPAGE_LINK "http://smplayer.sourceforge.net"
    136140  !define MUI_FINISHPAGE_LINK_LOCATION "http://smplayer.sourceforge.net"
     
    173177
    174178  ;Install pages
     179  #Welcome
    175180  !insertmacro MUI_PAGE_WELCOME
    176   !insertmacro MUI_PAGE_LICENSE "${SMPLAYER_BUILD_DIR}\Copying.txt"
     181
     182  #License
     183  !insertmacro MUI_PAGE_LICENSE "license.txt"
    177184
    178185  #Upgrade/Reinstall
     
    198205  !insertmacro MUI_UNPAGE_CONFIRM
    199206  !insertmacro MUI_UNPAGE_INSTFILES
    200   !define MUI_PAGE_CUSTOMFUNCTION_PRE un.FinishPagePre
    201207  !insertmacro MUI_UNPAGE_FINISH
    202208
     
    229235  !insertmacro MUI_LANGUAGE "TradChinese"
    230236
    231 ; Custom translations for setup
     237;Custom translations for setup
    232238
    233239  !insertmacro LANGFILE_INCLUDE "translations\english.nsh"
     
    413419    done:
    414420
    415         SectionEnd
     421  SectionEnd
    416422
    417423SectionGroupEnd
     
    448454  ;Allows user to use 'start smplayer.exe'
    449455  WriteRegStr HKLM "${SMPLAYER_APP_PATHS_KEY}" "" "$INSTDIR\smplayer.exe"
     456  WriteRegStr HKLM "${SMPLAYER_APP_PATHS_KEY}" "Path" "$INSTDIR"
    450457
    451458  ;Default Programs Registration (Vista & later)
     
    610617
    611618  retry_runcheck:
    612         FindProcDLL::FindProc "smplayer.exe"
    613         IntCmp $R0 1 0 +3
    614                 MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(SMPlayer_Is_Running) /SD IDCANCEL IDRETRY retry_runcheck
    615                 Abort
     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
    616623
    617624FunctionEnd
     
    628635    MessageBox MB_YESNO|MB_ICONSTOP $(OS_Not_Supported) /SD IDNO IDYES installonoldwindows
    629636    Abort
    630         installonoldwindows:
     637  installonoldwindows:
    631638  ${EndIf}
    632639
     
    644651    MessageBox MB_OK|MB_ICONSTOP $(Existing_32bitInst)
    645652    Abort
    646  
     653
    647654  SetRegView 64
    648655!else
     
    655662      MessageBox MB_OK|MB_ICONSTOP $(Existing_64bitInst)
    656663      Abort
    657    
     664
    658665    SetRegView 32
    659666  ${EndIf}
     
    669676
    670677  ;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
    672683
    673684  ;Check for admin on < Vista
     
    959970
    960971  ;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
    962977
    963978  ;Gets start menu folder name
     
    979994
    980995FunctionEnd
    981 
    982 Function un.FinishPagePre
    983 
    984   ${un.GetParameters} $R0
    985 
    986   ${un.GetOptionsS} $R0 "/X" $R1
    987   ${Unless} ${Errors}
    988     Abort
    989   ${EndUnless}
    990 
    991 FunctionEnd
Note: See TracChangeset for help on using the changeset viewer.