Skip to content
⌘ NSIS Forum Archive

Show/ Hide "Show Details" button

3 posts

Mohamaed#

Show/ Hide "Show Details" button

Hi.I am building an installer with 2 modes-Silent,Advanced
In silent mode I am installing everyting without any dialogs.
In Advanced I am installing showing the dialogs.
I used a check box to find whether the user wants silent or advanced installation
If it is silent I dont want to show the "Show details" button.
As I want to do this based upon the check box value I cant use Show Instdetails(it cant be used inside a fuction or section).
Is there way to do this ?
JasonFriday13#
How about this:
!include WinMessages.nsh

Section -firstsection
; check for silent flag here, run following code if true.
Push $0
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1027
ShowWindow $0 ${SW_HIDE}
Pop $0
SectionEnd