Skip to content
⌘ NSIS Forum Archive

Compiler good, bad installer

11 posts

Joel#

Compiler good, bad installer

I'm attaching a problem that popup when
trying to changed my script due the new
updates...
OK, change the script, compiler sucessfull,
when run the app for test, appears an error...

check please both screenshot and script...
Joel#
Racional II Installer caused on error in
<unknown>
Racional II instaler will close.
If the problems continues, try again
after rebooting PC.
I reboot my PC, and the problem stills 🙁
kichik#
Is .onInit called? Is .onGUIInit called?

Can you please attach a screen shot of the error you get with the attached program?

[edit]deleted attachment. Let me check it on my Windows 98 machine first to make sure it doesn't do too much damage[/edit]
kichik#
Reattached, shouldn't give too much trouble, just a general protection fault.
Joel#
I use
!define MUI_CUSTOMFUNCTION_GUIINIT "DetectarPC"


It's almost the same error as mine...

Crash caused on error in CRASH.EXE
Crash will close.
If the problems continues, try again
after rebooting PC.
🧟

Attachments

kichik#
Add a message box in .onInit and .onGUIInit and tell me if it pops up.

Does it happen in other installers? Can you please attach a small installer that crashes for you (with no File commands)?
Joel#
Fix my error. 🙂
It was
 
!define MUI_CUSTOMFUNCTION_GUIINIT "DetectarPC"
Maybe a bug on MUI_CUSTOMFUNCTION_GUIINIT...
I delete that define and use:

Function ".onInit"
;here was Function "DetectarPC"
FunctionEnd
Now works like the "old" ones 😁
I think that could be a bug...
Joel#
It was:
!define MUI_CUSTOMFUNCTION_GUIINIT
Compare the first script with this...
this one works..
kichik#
It was probably banner. I'll upload a new version today, won't be perfect yet but at least it'll work.