Click to See Complete Forum and Search --> : Unintalling program through Add/Remove Panel Freezes


fellobo
June 10th, 2004, 04:04 PM
I've written an installer/uninstaller - I've added my programs name and path in the registry to allow the add/remove program to see them and allow the end user to launch my program.

My problem comes when I am finished running. My application closes and the Add/Remove panel freezes.

Does the Add/Remove panel need a certain return value from my app?

Any ideas on why my program makes add/remove panel freeze?

I was under the impression that all the add/remove panel does is call my program and that was it.... am I mistaken?

I've read all the files on making an install/uninstall program, Configuring Add/Remove Programs, and any thing I could find in both CodeGuru and MSDN. Nothing.

Just so everyone knows:
Registry code is in the following....
HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Uninstall/ApplicationName
DisplayName - my name
UninstallString - my programs path

and my program DOES run and uninstall.

I also delete the registry as I am uninstalling. But I don't think this would cause the problem (mainly cuz I removed it ran my uninstaller and it still crashed the Add/Remove panel.)

Thanks for any help you may give.

:confused:

Endurion
June 11th, 2004, 05:59 AM
Check if your uninstaller completely exits.

The Add/Remove Programs-panel will wait until your uninstaller is done. Be sure there's no thread waiting for something.

Take a look in the task manager.

fellobo
June 14th, 2004, 04:11 PM
Endurion,
Yes, that was my first guess as to why the freeze, but I am sure that my installation program is exiting. I call a End Dialog right after I close my Thread. I've looked in the Task Manager and my installation program isn't still running it is shut down.

After further evaluation and some narrowing down it turns out that I am having problems with a library that I am loading. I am writing a installer that will connect me to the HotSync Manager and install conduits and palm files. This particular problem only occurs when I call a library function to shut down and restart the HotSync Manager.

Again, I am not sure as to why it freezed the Add/Remove Panel, seeing how both the HotSync manager is back up and running and my program terminates. But this isn't the place to ask for help on HotSync or its library. But if someone needed to know what was causing the problem I am posting why it froze.