I'm trying to install an addin to Powerpoint via any script. I found this code but can anyone guide me how to run this script or create a bat file out of this. we have an installer, but that requires ppt to be closed and do not update to new version (uninstall existing addin and add new version of same addin) so everytime we have a new version of the addin, planning to trigger this script in user's machines during startup before ppt is opened.Any other ideas welcome too.

1

Best Answer


As long as PPT is not running, all you need to do to update an add-in is to copy the new version in, letting it replace the existing one.

You could, for example, use a startup BAT file that invokes XCOPY or ROBOCOPY to copy the PPA/PPAM file only if it's newer than the one already in place.

Note: this assumes that you're talking about a VBA add-in (PPA/PPAM). If it's a .NET add-in or some other type of COM add-in, this probably won't work