I am writing a script that is supposed to call two MSIs in two different subfolders. This is necessary because whist these two MSIs are being run (one after the other) there is a splash screen that is displayed that needs to be closed after the MSIs are run.
Each MSI has supporting files and unfortunately because they are from the same application, the supporting file structures are the same, so they can't be put into the same folder to be executed.
The issue I am having is that when I execute an MSI it will start running, but error midway through because it cannot find the supporting files.
Is there a way to run these MSIs and have them recognise where they are being run from to pick up the remaining files (I hope that made sense).
Here's the part of my code that counts here:
Set objWShell = CreateObject("Wscript.Shell")
strFPInst = "C:\Windows\System32\Msiexec.exe /i FP4\ClientUpdate.msi /qn /l c:\build\logs\notesfp4.log"
strHFInst = "C:\Windows\System32\Msiexec.exe /i FP4_Hotfix\ClientUpdate.msi /qn /l c:\build\logs\notesfp4hotfix.log"
errCode = objWShell.Run(strFPInst, 1, True)
errCode = objWShell.Run(strHFInst, 1, True)
Hope someone can help.