add in - Permission Denied Error During Update of a Local MSOffice Add-In from Network -


I am trying to write a process in PowerPoint 2003 which will allow automatic updates of an installed add-in. The normal process is as follows:

  1. Uninstall the add-in

      For each objAddIn application.AddIns if UCase (objAddIn.Name) = UCase (AddInName) Then with objAddIn Registration = msoFalse .AutoLoad = msoFalse. Loaded = end with msoFalse end if the next   

  2. set the local add-inbox directory

      to objFSO = CreateObject ("Scripting. FileSystemObject ") 
    If objFSO.FileExists (FileName) is set to objFSO = nothing is missing the filename

  3. until step 2 On reaching, any attempt to delete FileSystemObject or directly by removing the file by using Delete essentially generates> run-time error '70 ': Denied Numti if I hit Debug and then plays me, it shows long as there was no problem.

    Side note: I realize that I can use FSO to overwrite a local file, but this gives me run-time error

    I think the problem is to be used with some aspect of the file that is being used, but I can not understand how to "release" the old ad - in The underlying file can be deleted

    Is there any information to understand?

You need to remove it Addins Collection before physically removal. Apply your with expiration :

 . AddIns.Remove objAddIn.Name  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -