I've got a problem to work one thing in NSIS. I searched through the forum archive, but didn't find a solution.
I try to tweak the uninstall welcome page this way:
And put proper tweaks in MyIoSpecial.ini (it differs from standard ioSpecial.ini with the section [Field 4] and number of fields):!define MUI_UNWELCOMEFINISHPAGE_INI "MyIoSpecial.ini"
!define MUI_PAGE_CUSTOMFUNCTION_PRE un.MyPagePre
!define MUI_PAGE_CUSTOMFUNCTION_SHOW un.MyPageShow
!insertmacro MUI_UNPAGE_WELCOME
Then I implement the declared functions:[Settings]
Rect=1044
NumFields=4
[Field 1]
Type=bitmap
Left=0
Right=109
Top=0
Bottom=193
Flags=RESIZETOFIT
[Field 2]
Type=Label
Left=120
Right=315
Top=10
Bottom=59
[Field 3]
Type=Label
Left=120
Right=315
Top=67
Bottom=132
[Field 4]
Type=Button
Left=120
Top=148
Right=194
Bottom=163
Text=Button1
And I get a strange behaviour (similiar to the one described in here). Initially no button is displayed, but when I hover the mouse over the space where the button is supposed to be it appears, but when I change the focus to any other window and then back to my installer, the button vanishes again, but will appear after another hover. What might be the problem?Function un.MyPagePre
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "NumFields" "4"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "State" "$INSTDIR\Action.exe"
FunctionEnd
Function un.MyPageShow
FunctionEnd
I'm using NSIS 2.21.
Have you got any ideas? 'Cause I'm stuck. Google doesn't say anything.
Thanks,
Wojtek