Deleting a locked file
Posted 05 February 2004 - 19:08
Now, I'm sure the fault lies with this component, but the developer insists there is nothing wrong with his code ( ). So , is there anyway I can kill this thread when I start my uninstall? Maybe unlock the file some way? Anything so this problem will go away? I've wasted 3 days on it already.
Thanks for any help
Posted 06 February 2004 - 18:28
That should work just fine. I'll let you know
Posted 10 February 2004 - 18:41
For some reason, after a reboot on the uninstall, the setup just hangs. When I first saw this problem, all I did was manually kill the thread I was worried about and everything seemed alright. Now, even if I kill that that thread manually it still locks up, sometimes even before a reboot.
Looks like it back to the testing room for a couple of days.
Posted 11 February 2004 - 02:34
Posted 13 February 2004 - 18:18
Wanted to let you know how the problem turned out in the end. Never did find what was causing the lock-up on reboot. Absolutely everything was gone..no threads, no registry keys, no files, folders, databases, not a dern thing.
So the first thing I did was to remove the reboot from the uninstaller, just end the set-up. (I know this is ugly, and it's killing me to do it, but I figured what the heck, it doesn't need to get rid of anything else). This worked great....until...the next time the user choose to reboot his machine on his own. Then again, my uninstall setup would come back from the dead and chug away before the UI came up. It'd still continue to do it until you killed its thread in TaskManager.
So, I did what any resonably sane person would do...I killed the folder where IS keeps info on that install. Dead - it won't be bothering me anymore.
Still, I love to find out what IS was trying to do on the reboot :No code in OnReboot() (actually never even got to that function - demonstrated by putting a messageBox in there that never came up); nothing else hanging around(besides the folder). If I could find a way for IS to tell me where it was when it got stuck, I'd feel better about this whole thing, but oh well.
Anyway, thanks for the help Taco
Posted 14 February 2004 - 03:44
Glad you got it working though--even if it is a hack.