Uninstallation problem Word-Addin
I am dealing with ThomsonFinancial_DatastreamCharting package. It installs addins for word,powerpoint, and excel 2003. On uninstallation source removes Addins for excel and powerpoint as well, but it does not remove Word Addin-button.
'On Error Resume Next
Dim Objshell
Dim Oword
Set Objshell = CreateObject("Wscript.shell")
Set Objfso = CreateObject("Scripting.FileSystemObject")
Set oWord = CreateObject("Word.Application")
oWord.Application.Commandbars("Datastream Charting").Delete
Err.Clear
oWord.Quit
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
Deleting NORMAL.DOT...thanks, that's the best laugh I've had for a good while.
Why not record the action of removing the button as a macro? You end up with VBA which, for the most part, can be converted to VBScript by removing the data typing from the declaration of variables.
BTW, your script contains no error-trapping, no forced variable declaration (Option Explicit), the setting of 2 objects which aren't used at all and objects aren't discarded at the end.
Why not record the action of removing the button as a macro? You end up with VBA which, for the most part, can be converted to VBScript by removing the data typing from the declaration of variables.
BTW, your script contains no error-trapping, no forced variable declaration (Option Explicit), the setting of 2 objects which aren't used at all and objects aren't discarded at the end.
Posted by:
angel7
13 years ago
Posted by:
anonymous_9363
13 years ago
The first rule of using ANY forum is: do not hijack threads!
Please post again as a new thread. Before that, though, go to MSDN and read about WindowsInstaller patching, particularly the section about patches which are set to be uninstallable.
Before THAT, even, go back to my response yesterday. Have you followed my advice? I hardly think so, unless you're the world's fastest reader.
I suspect, though, that you have been pitched into this by your employer who thinks that this stuff is easy. Well, he's more than welcome to try himself (I just *know* that, if I'm right, it's a "he").
Please post again as a new thread. Before that, though, go to MSDN and read about WindowsInstaller patching, particularly the section about patches which are set to be uninstallable.
Before THAT, even, go back to my response yesterday. Have you followed my advice? I hardly think so, unless you're the world's fastest reader.
I suspect, though, that you have been pitched into this by your employer who thinks that this stuff is easy. Well, he's more than welcome to try himself (I just *know* that, if I'm right, it's a "he").
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.