Archive: installer in silent mode to not show MUI_PAGE_INSTFILES


installer in silent mode to not show MUI_PAGE_INSTFILES
hi, we have an installer that works fine in non-silent mode.
But in silent mode we want to be able to hide all our pages just install the bits. We're able to have a silent mode check to appropriately abort all the pages from loading.
The only issue is that the sections where we actually do the installation are called from MUI_PAGE_INSTFILES and so we can't hide that page. But that page also displays some ui of the files transferring files that we don't want to show. Is there a way to hide that ui and just have the installation be called?


um, you don't have to do anything to hide pages in silent mode, nsis does it for you. Other than Copyfile(it has a /silent switch) I can't think of anything that would display a progress ui


Okay, sounds like I'm not doing something right.
In silent mode, without any additional logic to skip the pages, the installer exits right away, and nothing is installed.. I'm not entirely sure why
Here are the pages I'm using:

!insertmacro MUI_PAGE_LICENSE "../common/License.rtf"
; This page checks for JRE. It displays a dialog based on JRE.ini if it needs to install JRE
; Otherwise you won't see it.
;Page custom CheckInstalledJRE

; Define headers for the 'Java installation successfully' page
!define MUI_INSTFILESPAGE_FINISHHEADER_TEXT "Java installation complete"
!define MUI_PAGE_HEADER_TEXT "Installing Java runtime"
!define MUI_PAGE_HEADER_SUBTEXT "Please wait while we install the Java runtime"
!define MUI_INSTFILESPAGE_FINISHHEADER_SUBTEXT "Java runtime installed successfully."

!insertmacro MUI_PAGE_INSTFILES

!define MUI_INSTFILESPAGE_FINISHHEADER_TEXT "Installation complete"
!define MUI_PAGE_HEADER_TEXT "Installing"
!define MUI_PAGE_HEADER_SUBTEXT "Please wait while ${AppName} is being installed."

!define MUI_PAGE_CUSTOMFUNCTION_PRE myPreInstfiles

!define MUI_PAGE_CUSTOMFUNCTION_LEAVE RestoreSections

!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES

!define MUI_FINISHPAGE
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_TEXT "Launch ${AppName}"
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchApp"