![]() |
InstallLib RunOnce fails on reboot if RegTool was deleted
I'm using InstallLib to register some dlls.
On XP, while upgrading, if the dll is in-use I can't rename it and install a new one (in Vista it works), so InstallLib automatically adds an entry in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce so RegTool will register the dll on startup. If user now uninstalls before rebooting, the RegTool application will be deleted since it's in the install folder. On next startup user will see an error message "Windows cannot find blablabla". Can I make it silent in a way other than searching the RunOnce key for values with the path i'm deleting and remove it? |
Meanwhile I deleted from registry everything that I found relevant, with this code:
PHP Code:
|
your issue seems very similar to mine. Read this thread: http://forums.winamp.com/showthread....hreadid=296139
|
Yes, I saw it. I don't want everything to go to $TEMP. What happens if destination is in a different drive than $TEMP?
Unfortunately, I think there's only one RegTool entry in RunOnce for all pending registrations, even those not related to your product, so by deleting this reg value I'm ruining other installations. Maybe I should copy the regtool i'm about to delete into temp and modify the RunOnce value? Anyone? |
Do you need support for Win9x?
|
- I support XP onwards.
- I checked, and the different drive issue is only for whole folders, so no problem there. - If I let it use $TEMP, wouldn't dlls reappear after reboot even if the product was uninstalled? |
| All times are GMT. The time now is 17:58. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.