Archive: Uninstall multiple sections


Uninstall multiple sections
I want to add a custom page to uninstall, but the page appears to be empty. I used MUI. I saw the InstallOptions example and I tried to use it but somewhere I am wrong. Scraps from install script are here:

...
!define MUI_UNCUSTOMPAGECOMMANDS
...

;Adds a custom page for uninstall to select packages.
!insertmacro MUI_UNPAGECOMMAND_CONFIRM
UninstPage custom un.Hello
!insertmacro MUI_UNPAGECOMMAND_INSTFILES

ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
ReserveFile "ioFile.ini"
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
...
;Language Strings
LangString TEXT_IO_TITLE ${LANG_ENGLISH} "Install Options Page Title"
LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "A subtitle"
...
Function .onInit
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "ioFile.ini"
...
FunctionEnd
...
Function un.Hello

!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"

!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioFile.ini"

FunctionEnd


This is the script, the page is added but it is empty. I used as ini file test.ini from Contrib\InstallOptions.

Please help,
H


Extract in un.onInit :D


Thanx very much :)!
You helped me a lot!

H


Hi!

How can I add text in the red circle using the mothod from the thread?
I attached an image.

I tried something like this

[Field 1]
Type=Label
Left=100
Right=-1
Top=-10
Bottom=10
Text=This is a label...
but without success

Another question:
In the old GUI style, the group box are not intersected, but with MUI they are. Any idea?

Thanx you for your help,
H
http://www.softgate.ro/icons/question.jpg


Ok, I solved the problem. Sory for bothering you.

H


Use the MUI_HEADER_TEXT macro (check the Readme).

For information about the GROUP and NOTABSTOP flags, see the InstallOptions readme.