Function CloseApp
Pop $R1
loop:
#FindWindow $0 "ThunderRT6FormDC" # All Visual Basic Apps
FindWindow $0 "ThunderRT6Main" $R1
IntCmp $0 0 done
SendMessage $0 ${WM_QUIT} 0 0
SendMessage $0 ${WM_CLOSE} 0 0
SendMessage $0 ${WM_DESTROY} 0 0
Sleep 125
Goto loop
done:
FunctionEnd
Function un.CloseApp
BLAH, BLAH, same as the CloseApp function above
FunctionEnd
Calling Function (?) from Main and Uninstall Sections
I use the function below to close my app before the File command in my script and before the Delete command in the unstaller. But I have to completely redefine the function for the uninstaller with a un. prefix, how can i get around this so that I only it defined once, thanks.