Archive: having trouble adding custom pages to uninstaller


having trouble adding custom pages to uninstaller
I am trying to add custom pages to an uninstaller. This is what I have:


UninstPage custom un.StringsCustom un.ValidateCustom
UninstPage instfiles
Section Uninstall
#Stuff
SectionEnd

Function un.StringsCustom

Push ${TEMP1}

InstallOptions::dialog "$PLUGINSDIR\strings_un.ini"
Pop ${TEMP1}

Pop ${TEMP1}
FunctionEnd

Function un.ValidateCustom


FunctionEnd


This is my strings_un.ini file:

[Settings]
NumFields=3

[Field 1]
Type=GroupBox
Left=0
Right=-1
Top=0
Bottom=-5
Text="Hotfix Options "

[Field 2]
Type=Label
Left=10
Right=-10
Top=16
Bottom=24
Text=Oracle user password

[Field 3]
Type=Password
Left=15
Right=-15
Top=27
Bottom=40
State=
Flags=GROUP
MinLen=1
ValidateText=Please enter a password


However, no custom pages sho wup. The uninstaller goes directly into the code I have in the "Section Uninstall". What is wrong?

You need to extract the ini file using the File command before you can display the page.

But much more than that, you need to use nsDialogs. InstallOptions has been deprecated a long, long time. It's not supported anymore. Please do NOT use it.

http://nsis.sourceforge.net/Docs/nsDialogs/Readme.html


Ok. Thanks. So I changed my code to this:


Var Dialog

UninstPage custom un.StringsCustom
UninstPage instfiles

Function un.StringsCustom

nsDialogs::Create 1018
Pop $Dialog

FunctionEnd

Section Uninstall

SectionEnd


I still don't get anything before my uninstall starts. Everything compiles correctly though.

Missed the nsDialogs::show.

Thanks.