I try to apply an MST file to the MSI database in VB Script. I am able to edit the MSI ok, but cannot apply transform. It gives me the 80004005 error. I have looked all around the web and have taken a few things in consideration. All MSIs are closed, no msiexec process is running, I have permissions for MSI, MST and the folder itself. My code is:
Set MSI = Wscript.CreateObject("WindowsInstaller.Installer")
Set database = MSI.OpenDatabase(FileName, 1)
database.ApplyTransform FileMST, 32
Please Help. I am 100% sure that file paths exist. Thanks!
- Moved by Reed KimbleMVP Monday, December 03, 2012 8:25 PM vb script in vb general (From:Visual Basic General)
Rule #1: Have you searched first? Use a search engine to find "applytransform 80004005" and see what you can find.
Not all MSI files can take a transform. Be sure to test it at a prompt.