none
VBScript and ApplyTransform

    Question

  • Hi.

    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!

    Regards,

    Anton

    • Moved by Reed KimbleMVP Monday, December 03, 2012 8:25 PM vb script in vb general (From:Visual Basic General)
    Monday, December 03, 2012 8:07 PM

Answers

All replies