Skip to content
⌘ NSIS Forum Archive

MessageBox Failure

5 posts

aemik#

MessageBox Failure


MessageBox MB_ICONEXCLAMATION|MB_YESNOCANCEL "Do you want to uninstall first?" IDYES yesbutton IDCANCEL cancelbutton IDNO nobutton
cancelbutton:
Abort
yesbutton:
Exec "$INSTDIR\Uninstaller.exe"
Abort
nobutton:

I dont know why Im getting an error message...
XXnsisuserXX#
You forgot a slash between $INSTDIR and Uninstaller.exe. It has to be

Exec "$INSTDIR\Uninstaller.exe"
kichik#
You can't have three jumps in MessageBox, just two. The third place the MessageBox can jump to is the instruction right after it. IDCANCEL cancelbutton is redundant and should be removed.