Login | |
|
 |
objshell.run msiexec problems! - 5/12/2008 10:56:39 PM
|
|
 |
|
| |
DarkStrike
Posts: 3
Score: 0
Joined: 5/12/2008
Status: offline
|
Hi, I am trying to install an MSI file with a TRANSFORM file via vbs but am having no success! Here is the code I have so far:- '********** Option Explicit Dim strPath, objShell, objFSO, objcmd, strobjshell, objmsi, objtransform, ProgramPath, files, folder Set objShell = CreateObject("WScript.Shell") Set objFSO = CreateObject("Scripting.FileSystemObject") objShell.Run "cmd /c c: & ""msiexec /i \\pc14984\packages\Bentley XM\Bentley MX 2\Bentley MX V8 XM Edition.msi"" & ""TRANSFORMS=\\pc14984\packages\Bentley XM\Bentley MX 2\Bentley MX V8 XM Edition.mst"" /qb- ", 0, True '********** If I manually run the msiexec line from the run command on a pc it works fine so I know that should be ok :- msiexec /i "\\pc14984\packages\Bentley XM\Bentley MX 2\Bentley MX V8 XM Edition.msi" TRANSFORMS="\\pc14984\packages\Bentley XM\Bentley MX 2\Bentley MX V8 XM Edition.mst" /qn I get no errors returned but the file doesnt run and there are no entries in the event log for any failure. Can anyone offer me some advice as to what I have got wrong? Is there a better way to run the msi and transform from within a VBScript? Thanks
< Message edited by DarkStrike -- 5/12/2008 10:59:32 PM >
|
|
| |
|
|
|
|
|