Function un.onGUIInit
Hi
I'm trying to call a function before the uninstall window appears. The following works perfectly:
outFile "installer.exe"
installDir $DESKTOP
section
setOutPath $INSTDIR
file test.txt
writeUninstaller $INSTDIR\uninstaller.exe
sectionEnd
section "Uninstall"
delete $INSTDIR\uninstaller.exe
delete $INSTDIR\test.txt
sectionEnd
Function .onInit
MessageBox MB_OK "before initialise."
FunctionEnd
Function un.onGUIInit
MessageBox MB_OK "before uninstall."
FunctionEnd
However, the moment I add the function un.onGUIInit to my real script I get a compile error saying:
Function: "un.onGUIInit"
Error: Function named "un.onGUIInit" already exists.
But there is no other duplicate function within my script. It wasn't in any of the headers either.
Any ideas?
Cheers,
Paul