Changeset 128 for smplayer/trunk/setup
- Timestamp:
- Mar 29, 2012, 4:53:15 PM (13 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 127
- Property svn:mergeinfo changed
-
smplayer/trunk/setup/scripts/make_pkgs.cmd
r124 r128 30 30 set OUTPUT_DIR=%TOP_LEVEL_DIR%\output 31 31 set PORTABLE_EXE_DIR=%TOP_LEVEL_DIR%\portable 32 set QT_DIR= C:\Qt\%QTVER%32 set QT_DIR=E:\Buildsys\Qt\%QTVER% 33 33 34 34 :reask … … 44 44 45 45 :portable 46 echo.47 46 echo --- Creating SMPlayer Portable Package --- 48 47 echo. … … 124 123 125 124 :nomplayer 126 echo.127 125 echo --- Creating SMPlayer w/o MPlayer Package --- 128 126 echo. … … 184 182 echo --- Creating Qt DLL Package --- 185 183 echo. 186 7za a -t7z %OUTPUT_DIR%\qt_%QTVER%_dlls.7z %QT_DIR%\%QTVER%\bin\libgcc_s_dw2-1.dll %QT_DIR%\%QTVER%\bin\mingwm10.dll %QT_DIR%\%QTVER%\bin\QtCore4.dll %QT_DIR%\%QTVER%\bin\QtGui4.dll %QT_DIR%\%QTVER%\bin\QtNetwork4.dll %QT_DIR%\%QTVER%\bin\QtXml4.dll -mx9 184 185 mkdir imageformats 186 copy %QT_DIR%\%QTVER%\plugins\imageformats\qjpeg4.dll imageformats 187 7za a -t7z %OUTPUT_DIR%\qt_%QTVER%_dlls.7z %QT_DIR%\%QTVER%\bin\libgcc_s_dw2-1.dll %QT_DIR%\%QTVER%\bin\mingwm10.dll %QT_DIR%\%QTVER%\bin\QtCore4.dll %QT_DIR%\%QTVER%\bin\QtGui4.dll %QT_DIR%\%QTVER%\bin\QtNetwork4.dll %QT_DIR%\%QTVER%\bin\QtXml4.dll imageformats -mx9 188 rd /s /q imageformats 187 189 188 190 goto end -
smplayer/trunk/setup/smplayer.win32.nsi
r124 r128 30 30 !endif 31 31 32 !define SMPLAYER_REG_KEY "Software\SMPlayer" 32 33 !define SMPLAYER_APP_PATHS_KEY "Software\Microsoft\Windows\CurrentVersion\App Paths\smplayer.exe" 33 !define SMPLAYER_ REG_KEY "Software\SMPlayer"34 !define SMPLAYER_DEF_PROGS_KEY "Software\Clients\Media\SMPlayer" 34 35 35 36 !define SMPLAYER_UNINST_EXE "uninst.exe" … … 327 328 SectionGroup $(ShortcutGroupTitle) 328 329 329 ${Memento Section} $(Section_DesktopShortcut) SecDesktopShortcut330 ${MementoUnselectedSection} $(Section_DesktopShortcut) SecDesktopShortcut 330 331 331 332 SetOutPath "$INSTDIR" … … 583 584 584 585 !macro WriteRegStrSupportedTypes EXT 585 WriteRegStr HKLM "${SMPLAYER_ REG_KEY}\Capabilities\FileAssociations" ${EXT} "MPlayerFileVideo"586 WriteRegStr HKLM "${SMPLAYER_DEF_PROGS_KEY}\Capabilities\FileAssociations" ${EXT} "MPlayerFileVideo" 586 587 !macroend 587 588 … … 616 617 Delete "$INSTDIR\mingwm10.dll" 617 618 Delete "$INSTDIR\zlib1.dll" 618 Delete "$INSTDIR\Q *.dll"619 Delete "$INSTDIR\Qt*.dll" 619 620 Delete "$INSTDIR\smplayer.exe" 620 621 Delete "$INSTDIR\smtube.exe" … … 628 629 DeleteRegKey HKLM "${SMPLAYER_REG_KEY}" 629 630 DeleteRegKey HKLM "${SMPLAYER_APP_PATHS_KEY}" 631 DeleteRegKey HKLM "${SMPLAYER_DEF_PROGS_KEY}" 630 632 DeleteRegKey HKLM "${SMPLAYER_UNINST_KEY}" 631 633 DeleteRegKey HKCR "MPlayerFileVideo" … … 637 639 ;-------------------------------- 638 640 ;Shared functions 639 640 !macro CheckUserRightsMacro UN641 Function ${UN}CheckUserRights642 643 ClearErrors644 UserInfo::GetName645 ${If} ${Errors}646 StrCpy $Is_Admin 1647 Return648 ${EndIf}649 650 Pop $UserName651 UserInfo::GetAccountType652 Pop $R0653 ${Switch} $R0654 ${Case} "Admin"655 ${Case} "Power"656 StrCpy $Is_Admin 1657 ${Break}658 ${Default}659 StrCpy $Is_Admin 0660 ${Break}661 ${EndSwitch}662 663 FunctionEnd664 !macroend665 !insertmacro CheckUserRightsMacro ""666 !insertmacro CheckUserRightsMacro "un."667 641 668 642 !macro RunCheckMacro UN … … 700 674 Call RunCheck 701 675 702 ;Check for admin on older OSes703 Call CheckUserRights704 705 ${If} $ Is_Admin == 0676 ;Check for admin on < Vista 677 UserInfo::GetAccountType 678 Pop $R0 679 ${If} $R0 != "admin" 706 680 MessageBox MB_OK|MB_ICONSTOP $(Installer_No_Admin) 707 681 Abort … … 921 895 922 896 ;Modify the list of extensions added in the MacroAllExtensions macro 923 WriteRegStr HKLM "${SMPLAYER_REG_KEY}\Capabilities" "ApplicationDescription" $(Application_Description) 924 WriteRegStr HKLM "${SMPLAYER_REG_KEY}\Capabilities" "ApplicationName" "SMPlayer" 925 WriteRegStr HKLM "Software\RegisteredApplications" "SMPlayer" "${SMPLAYER_REG_KEY}\Capabilities" 897 WriteRegStr HKLM "${SMPLAYER_DEF_PROGS_KEY}" "" "SMPlayer" 898 WriteRegStr HKLM "${SMPLAYER_DEF_PROGS_KEY}\Capabilities" "ApplicationDescription" $(Application_Description) 899 WriteRegStr HKLM "${SMPLAYER_DEF_PROGS_KEY}\Capabilities" "ApplicationName" "SMPlayer" 900 WriteRegStr HKLM "Software\RegisteredApplications" "SMPlayer" "${SMPLAYER_DEF_PROGS_KEY}\Capabilities" 926 901 !insertmacro MacroAllExtensions WriteRegStrSupportedTypes 927 902 … … 968 943 Function un.onInit 969 944 970 ;Check for admin (mimic old Inno Setup behavior)971 Call un.CheckUserRights972 973 ${If} $ Is_Admin == 0945 ;Check for admin on < Vista 946 UserInfo::GetAccountType 947 Pop $R0 948 ${If} $R0 != "admin" 974 949 MessageBox MB_OK|MB_ICONSTOP $(Uninstaller_No_Admin) 975 950 Abort
Note:
See TracChangeset
for help on using the changeset viewer.