Some installer fixes.

This commit is contained in:
LoRd_MuldeR 2015-10-16 19:53:52 +02:00
parent 5c387a0cfb
commit 5306f19d87
2 changed files with 10 additions and 3 deletions

View File

@ -500,10 +500,8 @@ Section "!Install Files"
Abort "Could not delete old binary!"
${EndIf}
SetOutPath "$INSTDIR"
File /a `/oname=$R0` `${X264_SOURCE_PATH}\x264_launcher.exe`
SetOutPath "$INSTDIR"
File /a `${X264_SOURCE_PATH}\*.dll`
File /a `${X264_SOURCE_PATH}\*.txt`
File /a `${X264_SOURCE_PATH}\*.html`
@ -582,6 +580,7 @@ SectionEnd
Section "-Finished"
!insertmacro PrintProgress "$(MUI_TEXT_FINISH_TITLE)."
${IfThen} ${UnattendedMode} ${|} SetAutoClose true ${|}
SectionEnd
@ -734,3 +733,11 @@ Function ShowReadmeFunction
!insertmacro DisableNextButton $R0
${StdUtils.ExecShellAsUser} $R1 "$INSTDIR\README.html" "open" ""
FunctionEnd
Function .onInstSuccess
${If} ${UnattendedMode}
!insertmacro GetExecutableName $R0
${StdUtils.ExecShellAsUser} $R1 "$INSTDIR" "explore" ""
${StdUtils.ExecShellAsUser} $R1 "$INSTDIR\$R0" "open" "--first-run"
${EndIf}
FunctionEnd

View File

@ -26,7 +26,7 @@
#define VER_X264_MAJOR 2
#define VER_X264_MINOR 6
#define VER_X264_PATCH 0
#define VER_X264_BUILD 971
#define VER_X264_BUILD 972
#define VER_X264_PORTABLE_EDITION (0)