From 67391963ec4f877feeba5310827f46309b2c4204 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Mon, 25 Feb 2013 00:20:24 +0100 Subject: [PATCH] Updated AppRegGUI.exe to not fail on Windows XP. --- MPUI_Common.nsh | 10 ++++++- MPUI_Setup.nsi | 71 ++++++++++++++++++++++++++---------------------- Resources/AppRegGUI.exe | Bin 192000 -> 192000 bytes Resources/AppRegGUI.tar | Bin 147456 -> 147456 bytes 4 files changed, 48 insertions(+), 33 deletions(-) diff --git a/MPUI_Common.nsh b/MPUI_Common.nsh index 99b9e84..274f641 100644 --- a/MPUI_Common.nsh +++ b/MPUI_Common.nsh @@ -93,7 +93,7 @@ Function _Imp_PackAll ${DoUntil} ${Errors} DetailPrint "$(MPLAYER_LANG_COMPRESSING): $2" - NsExec::Exec '"$PLUGINSDIR\UPX.exe" "$0\$2"' + NsExec::Exec '"$PLUGINSDIR\UPX.exe" --compress-icons=0 "$0\$2"' FindNext $1 $2 ${Loop} @@ -124,3 +124,11 @@ FunctionEnd StrCpy ${out} '${path}' "" 3 StrCpy ${out} '$LOCALAPPDATA\VirtualStore\$0' !macroend + +; ---------------------------------------------------------------------------- + +!define RegisterFileExtCapability "!insertmacro _RegisterFileExtCapability" + +!macro _RegisterFileExtCapability ext + WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".${ext}" "MPlayerForWindowsV2.File" +!macroend diff --git a/MPUI_Setup.nsi b/MPUI_Setup.nsi index 5bd72d6..6e1209c 100644 --- a/MPUI_Setup.nsi +++ b/MPUI_Setup.nsi @@ -608,9 +608,12 @@ Section "-Create Shortcuts" ${EndIf} CreateShortCut "$SMPROGRAMS\$StartMenuFolder\$(MPLAYER_LANG_SHORTCUT_UPDATE).lnk" "$INSTDIR\Updater.exe" "/L=$LANGUAGE" - CreateShortCut "$SMPROGRAMS\$StartMenuFolder\$(MPLAYER_LANG_SHORTCUT_APPREG).lnk" "$INSTDIR\AppRegGUI.exe" CreateShortCut "$SMPROGRAMS\$StartMenuFolder\$(MPLAYER_LANG_SHORTCUT_README).lnk" "$INSTDIR\Readme.html" CreateShortCut "$SMPROGRAMS\$StartMenuFolder\$(MPLAYER_LANG_SHORTCUT_MANUAL).lnk" "$INSTDIR\Manual.html" + + ${If} ${AtLeastWinVista} + CreateShortCut "$SMPROGRAMS\$StartMenuFolder\$(MPLAYER_LANG_SHORTCUT_APPREG).lnk" "$INSTDIR\AppRegGUI.exe" + ${EndIf} ${CreateWebLink} "$SMPROGRAMS\$StartMenuFolder\$(MPLAYER_LANG_SHORTCUT_SITE_MULDERS).url" "http://www.mulder.at.gg/" ${CreateWebLink} "$SMPROGRAMS\$StartMenuFolder\$(MPLAYER_LANG_SHORTCUT_SITE_MPWIN32).url" "http://oss.netfarm.it/mplayer-win32.php" @@ -705,8 +708,10 @@ Section "-Update Registry" WriteRegStr HKLM "${MPlayerRegPath}" "UninstallString" '"$INSTDIR\Uninstall.exe"' WriteRegStr HKLM "${MPlayerRegPath}" "DisplayName" "$(MPLAYER_LANG_MPLAYER_WIN32)" WriteRegStr HKLM "${MPlayerRegPath}" "DisplayIcon" "$INSTDIR\MPlayer.exe,0" + WriteRegStr HKLM "${MPlayerRegPath}" "DisplayVersion" "${MPLAYER_DATE}" WriteRegStr HKLM "${MPlayerRegPath}" "URLInfoAbout" "http://mulder.at.gg/" WriteRegStr HKLM "${MPlayerRegPath}" "URLUpdateInfo" "http://mulder.at.gg/" + WriteRegStr HKLM "${MPlayerRegPath}" "Publisher" "The MPlayer Team" WriteRegDWORD HKLM "${MPlayerRegPath}" "NoModify" 1 WriteRegDWORD HKLM "${MPlayerRegPath}" "NoRepair" 1 @@ -716,9 +721,11 @@ Section "-Update Registry" DeleteRegKey HKCU "SOFTWARE\Classes\MPlayerForWindowsV2.File" ${If} ${FileExists} "$INSTDIR\MPUI.exe" WriteRegStr HKLM "SOFTWARE\Classes\MPlayerForWindowsV2.File\shell\open\command" "" '"$INSTDIR\MPUI.exe" "%1"' + WriteRegStr HKLM "SOFTWARE\Classes\MPlayerForWindowsV2.File\shell\open\DefaultIcon" "" "$INSTDIR\MPUI.exe,0" ${EndIf} ${If} ${FileExists} "$INSTDIR\SMPlayer.exe" WriteRegStr HKLM "SOFTWARE\Classes\MPlayerForWindowsV2.File\shell\open\command" "" '"$INSTDIR\SMPlayer.exe" "%1"' + WriteRegStr HKLM "SOFTWARE\Classes\MPlayerForWindowsV2.File\shell\open\DefaultIcon" "" "$INSTDIR\SMPlayer.exe,1" ${EndIf} ; Register App @@ -729,38 +736,38 @@ Section "-Update Registry" WriteRegStr HKLM "${MPlayerRegPath}\Capabilities" "ApplicationName" "$(MPLAYER_LANG_MPLAYER_WIN32)" WriteRegStr HKLM "${MPlayerRegPath}\Capabilities" "ApplicationDescription" "$(MPLAYER_LANG_MPLAYER_WIN32)" WriteRegStr HKLM "${MPlayerRegPath}\Capabilities" "ApplicationDescription" "$(MPLAYER_LANG_MPLAYER_WIN32)" - + ; File Associations - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".256" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".3GP" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".ASF" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".AVI" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".BIN" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".DAT" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".DIVX" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".EVO" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".FLV" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".M2V" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".M2TS" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".MKA" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".MKV" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".MOV" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".MP2" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".MP3" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".MP4" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".MPEG" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".MPG" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".MPV" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".NSV" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".OGG" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".OGM" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".RM" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".RMVB" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".TS" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".VOB" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".WAV" "MPlayerForWindowsV2.File" - WriteRegStr HKLM "${MPlayerRegPath}\Capabilities\FileAssociations" ".WMV" "MPlayerForWindowsV2.File" - + ${RegisterFileExtCapability} "256" + ${RegisterFileExtCapability} "3GP" + ${RegisterFileExtCapability} "ASF" + ${RegisterFileExtCapability} "AVI" + ${RegisterFileExtCapability} "BIN" + ${RegisterFileExtCapability} "DAT" + ${RegisterFileExtCapability} "DIVX" + ${RegisterFileExtCapability} "EVO" + ${RegisterFileExtCapability} "FLV" + ${RegisterFileExtCapability} "M2V" + ${RegisterFileExtCapability} "M2TS" + ${RegisterFileExtCapability} "MKA" + ${RegisterFileExtCapability} "MKV" + ${RegisterFileExtCapability} "MOV" + ${RegisterFileExtCapability} "MP2" + ${RegisterFileExtCapability} "MP3" + ${RegisterFileExtCapability} "MP4" + ${RegisterFileExtCapability} "MPEG" + ${RegisterFileExtCapability} "MPG" + ${RegisterFileExtCapability} "MPV" + ${RegisterFileExtCapability} "NSV" + ${RegisterFileExtCapability} "OGG" + ${RegisterFileExtCapability} "OGM" + ${RegisterFileExtCapability} "RM" + ${RegisterFileExtCapability} "RMVB" + ${RegisterFileExtCapability} "TS" + ${RegisterFileExtCapability} "VOB" + ${RegisterFileExtCapability} "WAV" + ${RegisterFileExtCapability} "WMV" + ; Reset auto update interval DeleteRegValue HKLM "${MPlayerRegPath}" "LastUpdateCheck" DeleteRegValue HKCU "${MPlayerRegPath}" "LastUpdateCheck" diff --git a/Resources/AppRegGUI.exe b/Resources/AppRegGUI.exe index 0b818332188249e3bf84e6da5da2c1ee8881067e..53e9ed204558fc4e65c873aff329ab8674e3b227 100644 GIT binary patch delta 41 tcwTF`!`*O)dxHQYQ^&l?LX2kItPG3{AONJBgBja{85y?+Gcv7x0|4LO3IqTE delta 41 rcwTF`!`*O)dxHQYlS#*9Ax1N9HUhNgx_CJGD&n-w{d8Mlcs_3|6} sX69w)mgWYf7M5lfrKW_X78Pga=h>O+8QAD!m)qW~%H+thOp8ej0LXSBpa1{> -- 2.11.4.GIT