I have a custom action installer class where I am trapping both of the following events:
- OnBeforeUninstall
- Uninstall
What I'm actually trying to do is, terminate a process that I've created in my main application...this "process" is essentially an exe I've started that sits in the System Tray and displays notifications to users every 2 minutes.
When I choose to uninstall my main application I'm prompted with the following dialog:
However, it's strange that the code I've put in OnBeforeUninstall and Uninstall get fired after this dialog.
I don't want this dialog to show up at all.
Am I doing something wrong?
From my research, I've noticed that this dialog is from the InstallValidate key in ORCA. I do not know if it is safe to schedule my CA before this.
Any way to safely terminate my process without having this dialog appear?