.

15 posts

And do you really think this is enough information for us to go on?Originally Posted by dexeux View PostWhen i press the finish button multiple times, in the mui finish page, the text in the window disappears but the window stays. Pressing finish after this happens does nothing.
include LogicLib.nsh
!include nsDialogs.nsh .
!include MUI2.nsh
!include InstallOptions.nsh
!include Memento.nsh
!include WinVer.nsh
!include WordFunc.nsh
!include FileFunc.nsh
!include UAC.nsh ;v0.2.4c
!include Library.nsh
!include x64.nsh
;!include LogicLib.nsh
!include nsProcess.nsh ;v1.6
!include nsResize.nsh ;v1.0.0.0 Used to resize the install window
!define MUI_PAGE_CUSTOMFUNCTION_SHOW FinishPage_Show
!insertmacro MUI_PAGE_FINISH
Function FinishPage_Show
${nsResize_FinishPage} ${AddWidth} 10u
FunctionEnd
That does not sound right, the number of files should not really matter.Originally Posted by dexeux View PostI ran some tests and it seems to occur due to the sheer amount of files within the installer. When I remove a large portion of the files from the install section the bug no longer occurs.
Removing the files makes the installer go from 92->10mb.
OutFile test.exe
Name "Finish page tester"
RequestExecutionLevel user
!include MUI2.nsh
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
Section "Dummy Files"
InitPluginsDir
SetOutPath $PluginsDir
File "$%WinDir%\System32\s*.dll" ; ~50MiB on Windows 8
SetOutPath $Temp
SectionEnd to happen in .oninstSuccess and the problem dissapears.
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_FUNCTION LaunchApplication
I tried once just calling the second function but it doesn't change anything.Function LaunchApplication
!insertmacro UAC_AsUser_Call function LaunchApplicationAsUser ${UAC_SYNCREGISTERS}
FunctionEnd
Function LaunchApplicationAsUser
!insertmacro UAC_AsUser_ExecShell "" "$INSTDIR\${APPLICATION_EXECUTABLE}" "" "" "SW_SHOWMAXIMIZED"
FunctionEnd
Does not get this problem.
!define MUI_FINISHPAGE_RUN "$INSTDIR\${APPLICATION_EXECUTABLE}"
Function "${LEAVE}"This disables the button from being pressed multiple times:
EnableWindow $mui.Button.Next 0