Archive: MessageBox Failure


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...

You forgot a slash between $INSTDIR and Uninstaller.exe. It has to be

Exec "$INSTDIR\Uninstaller.exe"


No, thats not the failure...

The Error appears in the first line...


What does the error message say?

Stu


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.