|
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?
|