Question

Locked

Remove toolbar items in Excel, through outside code?

By Slayer_ ·
So our system has a new dependency. A program called PDFill.
Seems to work good, but the installer they give us is almost viral in nature, it adds 4 shortcuts to your desktop, one to the send 2, 6 to the start menu, 2 to the start menu root, etc.
I have written into my installer, to wipe them all out.

However, I just discovered this (Two links incase one is broken)
http://trevorsarchives.selfip.net/temp/Toolbar%20item.PNG
http://img835.imageshack.us/img835/1744/toolbaritem.png

I love how you cannot remove it either, the check box is grayed out.

We need this removed at install time, my installer is written in VB6.

Where do these things get added, is it somewhere in the registry? Can someone point me in the right direction on how to get rid of this thing at install time? The installer itself has no such options, its a basic MSI install (Wrapped into an EXE)

How my controller works:
It first creates a process and launches the installer, then waits for the process to finish.
Once the process is finished, I run this command as a process.
cmd /C "dir /a /b /s "C:\USERS\*.lnk" >c:\cfw32\lnklist2.txt"
Which creates a list of all the shortcuts on a persons system in their profiles.
I then open this text file, and loop through it, checking the target of each shortcut, and deleting the ones we don't want showing, so all 60 or so of PDFill's shortcuts.

After this, the process simply reports back what it deleted, then ends, I need to add to it, removing this toolbar item.

The install will always be run on a machine with admin rights.


Any help would be appreciated.


Edit-
I notice it adds this key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Excel\Addins\PDFillPDFButton.ExcelAddin
And this key
HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins\PDFillPDFButton.ExcelAddin

First one, no problem, but the second one... how can I delete it from everyone's registry?

Edit-
Confirmed, both have to die for the button to disappear, I tried deleting Current user version and it remain, deleted local machine version and it disappeared, re-added current user version and it reappeared.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Back to Software Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums