|
|
#1 |
|
Junior Member
Join Date: May 2012
Posts: 2
|
I’m trying to customize the MUI_PAGE_WELCOME, using a custom MUI_PAGE_CUSTOMFUNCTION_SHOW function (change the colors, etc). Which works as intended, but I noticed that if you click the “Back” button on the second page (in my case the LICENSE page), all the custom changes are lost…?
To see an example, copy the code from: http://nsis.sourceforge.net/Demonstrating_Page's_Custom_Functions_Pre_Show_Leave, compile, run, click “No” to see the welcome page, click “Next”, click “Back.” Is there a way to retain these changes? Thanks, |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
That is an example using MUI1 (InstallOptions). I would switch to MUI2 (nsDialogs) which will clean up your code a lot and will avoid this problem. I am not sure why those changes are not staying, though.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: May 2012
Posts: 2
|
Quote:
|
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
I think it states this in the MUI2 readme: MUI2 uses nsDialogs to create its welcome and finish pages (these are not "built in"). That is why you must use nsDialogs to alter these two pages if you use MUI2 (for the other pages, nsDialogs is not suitable). With MUI1 you have to write to the ioSpecial.ini file in the page's PRE function because MUI1 uses InstallOptions to create its welcome and finish pages. The method required for MUI1 is not very intuitive and requires more code. In either cases, there are examples if you search.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
![]() |
|
|||||||
| Tags |
| customfunction_show, mui |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|