Jnuw
15th October 2004 23:07 UTC
Finish Page and Variables...
Hello all. First off, NSIS is the best installer I have ever worked with, due in part to you all, so thanks in advance.
I would like the text in my Finish Page to vary based on what happened during the install. I have tried adding the line:
!define MUI_FINISHPAGE_TEXT "Updated: $LastWkDir"
!insertmacro MUI_PAGE_FINISH
However I get a warning after compiling, and what displays in the actual finish page is just that, "Updated: $LastWkDir". Can I use variables in this area, or is there another way to do what I’m trying to do? Thanks all.
deguix
16th October 2004 00:21 UTC
Put Var LastWkDir before that define.
Jnuw
18th October 2004 04:48 UTC
That did the trick, thanks deguix.
Jnuw
19th October 2004 20:54 UTC
Colors???
Ok, I have the variables working well now. What I would like to do is add some colors to my text. I checked the MUI readme, but did not see this option. I would like the word "Failed" to be red, "Not Selected for Update" to be gray, and "Successfully Updated" to be green. Is this possible? Thanks a bunch all.
http://webpages.charter.net/orum/Finish.jpg
The code is this:
!define MUI_FINISHPAGE_TEXT "\r\nFinal Update Status:\r\n\r\nLoans: $LoansResult\r\nDeposits: $DepResult\r\nMortgage: $MortResult\r\n\r\n\r\nPlease ensure this is correct. If this is not correct, please call BlaBla\r\n\r\nClick Finish to close this wizard."
!insertmacro MUI_PAGE_FINISH