Debugging Uninstaller
Hello guys
I have little problem with my app
I added functionality to the uninstaller to check if the application is running
Function un.Leave_PageConfirm
Pop $0
Pop $1
${do}
retry1:
retry2:
!insertmacro un.FindProcess "AVLDrive.exe" $0
${if} $0 <> 0
MessageBox MB_RETRYCANCEL|MB_ICONSTOP "$(UN.TEXT_DRIVE_RUNNING)" IDRETRY retry1
Abort
${endif}
!insertmacro un.FindProcess "Reportgenerator.exe" $0
${if} $0 <> 0
MessageBox MB_RETRYCANCEL|MB_ICONSTOP "$(UN.TEXT_RG_RUNNING)" IDRETRY retry2
Abort
${endif}
${LoopWhile} 0 <> $0
Push $1
Push $0
FunctionEnd
It works, but if you press cancel on the messagebox and then cancel on the uninstaller i get the error
Installer corrupted: invalid opcode
If I put everythin in a tiny testinstaller (see attachment) it works, but not in my big app
How can I find the error?
Or even better: Does somebody have a clue what I'm doing wrong?