When the user uninstalls the application, we need to run this line:
foxhhelp7.exe /UnRegServer
Should this line come before or after the Apply Uninstall line. In the code below I have it after the Apply Uninstall line. But I'm thinking that maybe the program no longer exists there, so perhaps it should come above Apply Uninstall
if Variable REMOVE Equals TRUE
Comment: Uninstall product
Comment: TO-DO: Insert any additional uninstall commands here
Apply Uninstall (get result into variable SUCCESS)
Set Variable PROGRESS to 100
if Variable SUCCESS not Equals Cancel
Unregister Library $TARGETDIR$\\ctText.ocx
Set Variable INSTALLDIR to $TARGETDIR$
Convert to Short Path: INSTALLDIR
Run Program $INSTALLDIR$\\foxhhelp7.exe /UnRegServer
Comment: End of Installation
end
else
I have similar uninstall flow as yours.
For me, i will have to run un-register before "Apply Uninstall".
provided that I am using my own regsvr32 to register my programs.
I did not use self-register (in the IA) coz it is still mysterious for me. sometimes it can register, sometimes not.
if Variable REMOVE Equals TRUE
Comment: Uninstall product
Comment: TO-DO: Insert any additional uninstall commands here
Unregister Library $TARGETDIR$\\ctText.ocx
Set Variable INSTALLDIR to $TARGETDIR$
Convert to Short Path: INSTALLDIR
Run Program $INSTALLDIR$\\foxhhelp7.exe /UnRegServer
Apply Uninstall (get result into variable SUCCESS)
Set Variable PROGRESS to 100
else