Help required for Excel addin
We are creating a package for excel addin. The installation of package will be per machine. The Addin is created properly by the script we have. When a new user logs in, the active setup works and the HKCU keys for addin are added to this new user. Now when the first user removes the excel addin, the HKCU keys are deleted from his profile, but the HKCU keys are not deleted from the second user. This causes an error while the second user launches the MS Excel.
Does anyone have a solution for this. If someone has worked on a similar situation, please give your inputs..
Thanks..
Piyush
You could set it so when
You could set it so when the uninstall happens it sets up another Active Setup to delete the HKCU entires for each user. This would mean this Active Setup would need to stay active.
He who dies with the most toys wins!!
He who dies with the most toys wins!!
I am not sure how this will
I am not sure how this will remove the HKCU keys from all users logged on to a machine, if u set Active setup during uninstall, it will remove the excel addin registry key for the second user...but not the third user and so on. this is because Active Setup registries reside in HKLM\Microsoft\Windows\CurrentVersion\RunOnce.....and they are removed once the entry in that hive has run once..
I faced a similar problem. here is what I did and I agree it may not be the best solution though...but I was facing complaints that it had to get removed from all the users logged in on that machine.
1. I wrote a simple script VB/Wise to delete that registry entry from HKCU, and I placed this script in a location accessible by all users (I placed in C:\Windows\Temp), and ensure that this script does not get deleted during uninstall.
2. Next while uninstall make a registry entry in HKLM\Microsoft\Windows\CurrentVersion\Run, that will have the path of the script written above.
After all this ensure that the user reboots after uninstall.
So what this will do is it will execute the script each and every time a user logs in, if you write the script in Vb Script, it wont give error even if the entry is not there, and if the entry is there it will get deleted.
I agree it is not ethically the best solution since you are putting an entry permanently in HKLM\Microsoft\Windows\CurrentVersion\Run.
in the above post please
in the above post please forgive the flawed concept of Active Setup used :)
Thanks
Thanks a lot for your input. We have tried this and it works. a script can be used to put in active setup at uninstall. This will delete the registry key for every user that logs in.
Piyush Nasa
Altiris Certified Professional (ACP)
Would you like to reply?
Login or Register to post your comment.