![]() |
#1 |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
MUI macros not working anymore in my script
i've been away from nsis from months, in fact i haven't even touched my old windows machine lately. however, i found myself in the position that i needed to update an old script of mine, but all of a sudden it produces errors that didn't happen before.
code: it took me a while to figure out, that for unknown reasons, the nsis projected which is sitting in a dropbox folder, suffered from synchronization problems. my custom ui, basically a modified MUI_nodesc, was 0kb in size. i changed the ui in the script to MUI_nodesc, but the problem persists. any ideas what could be the problem, all other resources by my script are intact. nothing was changed on the license page or the license itself since i last compiled my project successfully. edit: interestingly, the standard MUI compiles the script |
![]() |
![]() |
![]() |
#2 |
Major Dude
|
1) Why colon after !insertmacro ???
2) MUI_PAGE_LICENSE requires license file (parameter) Cool looking installers with custom design: www.graphical-installer.com Create Setup Pages easily: www.install-designer.com Build installers in Visual Studio 2005-2019: www.visual-installer.com or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com |
![]() |
![]() |
![]() |
#3 | |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
ah, that was copied from the makensis window, it's not my actual code
Quote:
code: |
|
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,332
|
"!define MUI_LICENSEPAGE" is supposed to do what?
Anyway, I know the ChangeUI command does not output errors in all cases so make sure those UI exe files are not corrupt... IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
frankly, i don't know (or remember). it has been there since march 2009 and it never produced a problem in the 20 versions that came out since. anyway, commenting that line doesn't change a thing as i still get the same error from the compiler.
reinstalled nsis to make sure MUI_nodesc isn't corrupted. no success. did the same in a clean vm. no success. |
![]() |
![]() |
![]() |
#6 |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
well, nevermind. i simply copied my gui modifications to modern.exe (at the cost of extra 2kb). i don't know what's wrong all of a sudden with modern_nodesc.exe, everybody knows nothing in nsis changed in over 4 years.
|
![]() |
![]() |
![]() |
#7 |
Major Dude
|
Heh, one more time
![]() !insertmacro MUI_PAGE_LICENSE "License.rtf" You used !define MUI_LICENSEPAGE (without parameter) which is definitely wrong for MUI2 (I think it is for MUI1). You cannot use MUI stuff in MUI2 script - either include MUI.nsh (and do not use MUI2 stuff) or update whole script to MUI2 ( so rewrite most of MUI1 commands). Cool looking installers with custom design: www.graphical-installer.com Create Setup Pages easily: www.install-designer.com Build installers in Visual Studio 2005-2019: www.visual-installer.com or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com |
![]() |
![]() |
![]() |
#8 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
MUI1 and MUI2 use exactly the same commands. Only the internal implementation is different (IO vs nsDialogs), and MUI2 adds some variables for nsDialogs-based welcome/finish page customization.
The MUI_LICENSEPAGE define was never used by MUI, as far as I know. It probably never did anything. |
![]() |
![]() |
![]() |
#9 |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
take a good look, that's exactly what i've been using in the last line. apparently and for unknown reason, there was a define that does nothing - and it had nothing to do with nsis no longer compiling my script.
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|