SnagIT 8.2.3.:Powerpoint Add-in not getting removed
Hi
I am doing transform for vendor package SnagIT 8.2.3. It creates add-ins in MSWord, Excel, Powerpoint, Outlook, and IE. In limited user login, after uninstallation the add-in in powerpoint is not getting removed. Other addins are getting removed both in admin mode and limited user mode
In the MSI there is already a script to remove the add-in. But its not working. Its working fine outside the MSI.
.
Any suggestions would be appreciated.
I am doing transform for vendor package SnagIT 8.2.3. It creates add-ins in MSWord, Excel, Powerpoint, Outlook, and IE. In limited user login, after uninstallation the add-in in powerpoint is not getting removed. Other addins are getting removed both in admin mode and limited user mode
In the MSI there is already a script to remove the add-in. But its not working. Its working fine outside the MSI.
.
On Error Resume Next
Set appPPT = CreateObject("PowerPoint.Application")
appPPT.CommandBars("SnagIt ").Delete
appPPT.Quit
Set appPPT = Nothing
.Any suggestions would be appreciated.
0 Comments
[ + ] Show comments
Answers (11)
Please log in to answer
Posted by:
anonymous_9363
16 years ago
Posted by:
veenarvg
16 years ago
MSI (s) (D4:B0) [15:23:22:316]: Note: 1: 1402 2: UNKNOWN\Installer\Features\BA7FB0ADBE885764F81A35E1DA398812 3: 2
MSI (s) (D4:B0) [15:23:22:316]: Executing op: ActionStart(Name=
MSI (s) (D4:B0) [15:23:22:316]: Executing op: CustomActionSchedule(
Set appPPT = CreateObject("PowerPoint.Application")
appPPT.CommandBars("SnagIt ").Delete
appPPT.Quit
Set appPPT = Nothing,,
MSI (s) (D4:6C) [15:23:22:316]: Entering MsiProvideComponentFromDescriptor. Descriptor: T%i&7oT-C?kaTW(0fqX8Toolbox>M5KDYSUnf(HA*L[xeX)y, PathBuf: FBF348, pcchPathBuf: FBF344, pcchArgsOffset: FBF2A4
MSI (s) (D4:6C) [15:23:22:316]: MsiProvideComponentFromDescriptor called for component {997FA962-E067-11D1-9396-00A0C90F27F9}: returning harcoded oleaut32.dll value
MSI (s) (D4:6C) [15:23:22:316]: MsiProvideComponentFromDescriptor is returning: 0
Posted by:
India_Repackaging
16 years ago
Hi Veena,
I suggest that you check the properties of the corresponding CA that runs the Vbscript. Make sure whether that the CA is run in 'System Context' or 'User Context' and also try and analyze the placing of the CA. I suppose try running the CA is system context.
Also check the return value of the same CA from the verbose log that you have generated. This gives you an idea whether this CA has run or not.
Cheers [8|]
I suggest that you check the properties of the corresponding CA that runs the Vbscript. Make sure whether that the CA is run in 'System Context' or 'User Context' and also try and analyze the placing of the CA. I suppose try running the CA is system context.
Also check the return value of the same CA from the verbose log that you have generated. This gives you an idea whether this CA has run or not.
Cheers [8|]
Posted by:
anonymous_9363
16 years ago
Rajit's comments are valid, although I'd nitpick a little and say that the return value tells you whether the CA returned a success or failure return code: if a CA doesn't get run, the log would explicitly say that.
To thos comments I would add the question, does the command bar "SnagIt " (WITH THE SPACES IN ITS CAPTION/TITLE!) exist? Could that be a simple typo on the vendor's part? Does that script snippet remove the add-in if you run it outside of the MSI as a stand-alone script? Also, my reading of the script - although I admit to knowing next to nothing about the PP Object Model - suggests that all it does is remove the toolbar, not the add-in.
If it was me, I'd record a macro in PP of the add-in removal. That'll be in VBA, of course, but it will show you the syntax required.
To thos comments I would add the question, does the command bar "SnagIt " (WITH THE SPACES IN ITS CAPTION/TITLE!) exist? Could that be a simple typo on the vendor's part? Does that script snippet remove the add-in if you run it outside of the MSI as a stand-alone script? Also, my reading of the script - although I admit to knowing next to nothing about the PP Object Model - suggests that all it does is remove the toolbar, not the add-in.
If it was me, I'd record a macro in PP of the add-in removal. That'll be in VBA, of course, but it will show you the syntax required.
Posted by:
veenarvg
16 years ago
Rajit: I tried changing the CA context to 'System Context' (Earlier it was running under 'User Context'). Yet, the toolbar remains
VBScab: The script removes the add-in if I run it outside the MSI(only if the toolbar is specified with spaces as"SnagIt "). Could you suggest me some how to record a macro in PP for the add-in removal
Thanks for the replies
VBScab: The script removes the add-in if I run it outside the MSI(only if the toolbar is specified with spaces as
Thanks for the replies
Posted by:
anonymous_9363
16 years ago
VBScab: Could you suggest me some how to record a macro in PP for the add-in removalAre you serious?!? All the Office apps are the same:
Tools/Macro/Record New Macro
then, when you've removed the add-in
Tools/Macro/Stop Recording
Alt+F11 will then take you into the VBA Editor, from where you can copy the code. Remember that it will be VBA code and its variables will (hopefully!) be 'typed' i.e. defined like 'Dim sAddIn As String' and so on. You'll need to remove the type definitions before you can use the code in VB Script.
Posted by:
veenarvg
16 years ago
Posted by:
anonymous_9363
16 years ago
...then that proves me wrong, i.e. that the syntax you had is perfectly valid, although it *looks* like there are more spaces in the command bar name. I'd paste this part:
CommandBars("SnagIt ")
and replace the identical part in the CA, just be sure the name is right.
After that, I'd add some error-trapping into the CA that tests whether the add-in removal was successful or not.
CommandBars("SnagIt ")
and replace the identical part in the CA, just be sure the name is right.
After that, I'd add some error-trapping into the CA that tests whether the add-in removal was successful or not.
Posted by:
veenarvg
16 years ago
There are no extra spaces in the VBA code
The toolbar remains only in the "Limited User Mode" after uninstallation (gets removed in "Admin mode")
The file PPT11.pcb is created in both the Admin and Limited User Mode when PowerPoint is lauched after installation in the location "C:\Documents and Settings\test\Application Data\Microsoft\PowerPoint"
The folder "C:\Documents and Settings\test\Application Data\Microsoft\PowerPoint" gets removed in admin mode after uninstallation, but remains in Limited User Mode.
The toolbar gets removed if I manually delete the file PPT11.pcb
Is it advisable to do this. Because, the file seems to store some configurations
The toolbar remains only in the "Limited User Mode" after uninstallation (gets removed in "Admin mode")
The file PPT11.pcb is created in both the Admin and Limited User Mode when PowerPoint is lauched after installation in the location "C:\Documents and Settings\test\Application Data\Microsoft\PowerPoint"
The folder "C:\Documents and Settings\test\Application Data\Microsoft\PowerPoint" gets removed in admin mode after uninstallation, but remains in Limited User Mode.
The toolbar gets removed if I manually delete the file PPT11.pcb
Is it advisable to do this. Because, the file seems to store some configurations
Posted by:
anonymous_9363
16 years ago
ORIGINAL: veenarvgSo did you check yet whether the CA is running in User or System context (see post 4)?. To my mind, what you say here indicates that it's running in User context, whereas it ought to be in System context.
The toolbar remains only in the "Limited User Mode" after uninstallation (gets removed in "Admin mode")
ORIGINAL: veenarvgFrom what I remember about MS's file naming, that PCB file contains the bitmap for the toolbar. It may contain configuration information, too. Therefore, deleting it will have unknown effects.
The file PPT11.pcb is created in both the Admin and Limited User Mode when PowerPoint is lauched after installation in the location "C:\Documents and Settings\test\Application Data\Microsoft\PowerPoint"
ORIGINAL: veenarvg
Is it advisable to do this.
To do what?
Posted by:
veenarvg
16 years ago
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.