Software Deployment Question

Issue with a custom action deleting a PPT add-in

10/03/2007 3235 views
HI all,

I made a transform for Snagit 8.x. It works fine for most install scenarios inside my company except one. If I have Vista and Office 2007 and an internally developed add-in for Powerpoint. Then if I do an Uninstall or repair of Snagit 8 it will hang. If I look in the log I can see issues with PPT. If I look in the task manager I can see powerpoint running. If I kill that task the uninstall/repair will continue fine. I looked in the custom actions and found this running if Upgrade_1.

On Error Resume Next
Set appPPT = CreateObject("PowerPoint.Application")
appPPT.CommandBars("SnagIt ").Delete
Set appPPT = Nothing

Now if before trying the uninstall/repair I remove the custom Add-in from powerpoint the process works fine. If it's Winxp instead of vista it works fine. If It's office 2003 instead of 2007 it works fine. Just the above mentioned combo isn't working.

I did some googling and thought I saw an answer by editing the script to:
On Error Resume Next
Set appPPT = CreateObject("PowerPoint.Application")
With appPPT
for i = .commandbars.count To 1 Step -1
If instr(.commandbars(i).name , "SnagIt ") then
end If
Set appPPT = Nothing

But that seemed to work on one machine but not another I tried?
Any thoughts?
0 Comments   [ + ] Show comments


Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

All Answers

Have you tired running your code outside of the MSI? That should help you see what's failing.
Answered 10/10/2007 by: VBScab
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ