Archive: Finish Page and Variables...


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.


Put Var LastWkDir before that define.


That did the trick, thanks deguix.


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