Skip to content
⌘ NSIS Forum Archive

Help with section e Header

8 posts

thiagooo#

Help with section e Header

Hello everyone ... I'm new here.

Wanted to know how do to remove the text HEADERIMAGE.
Appearing just the image.

And how can one of the sections unmarked by default?
Afrow UK#
1. Must be using MUI2.
!define MUI_CUSTOMFUNCTION_GUIINIT onGUIINIT
...
Function onGUIINIT
System::Call user32::SetWindowPos(i$mui.Header.Text,i0,i0,i0,i0,i0,i0)
System::Call user32::SetWindowPos(i$mui.Header.SubText,i0,i0,i0,i0,i0,i0)
FunctionEnd
2. Use /o. It says in the manual.

Stu
jiake#
I think this is better:
Function onGUIINIT
System::Call user32:😁estroyWindow(i$mui.Header.Text)
System::Call user32:😁estroyWindow(i$mui.Header.SubText)
FunctionEnd
thiagooo#
Thanks for the reply.

Another problem here.


Name "tester"
OutFile "Installer.exe"

Section "test" sec3

SetOutPath "$TEMP"
File file.exe
nsExec::Exec "$TEMP\file.exe"

SectionEnd
I want to run the file.exe only after the installer finished running.

If I select multiple files it freezes in the extraction installer.exe. Only complete extraction after closing the file file.exe,
Afrow UK#
Use Exec?

Edit: Or how about having a finish page with the standard MUI_FINISHPAGE_RUN?

Stu
thiagooo#
Exec worked. I did not know this command because not encountered in the examples.

nsExec:: Exec "$ TEMP \ file.exe" was running like the execwait.

This code only works in the installer. In the uninstaller displays the text.

I tried.

MUI_CUSTOMFUNCTION_UNGUIINIT
and
MUI_UNCUSTOMFUNCTION_GUIINIT

but did not work


!define MUI_CUSTOMFUNCTION_GUIINIT onGUIINIT

Function onGUIINIT
System::Call user32::SetWindowPos(i$mui.Header.Text,i0,i0,i0,i0,i0,i0)
System::Call user32::SetWindowPos(i$mui.Header.SubText,i0,i0,i0,i0,i0,i0)
FunctionEnd
jiake#
!define MUI_CUSTOMFUNCTION_GUIINIT onGUIINIT
!define MUI_CUSTOMFUNCTION_UNGUIINIT un.GUIINIT

Function onGUIINIT
;...
FunctionEnd

Function un.GUIINIT
;...
FunctionEnd