PDA

View Full Version : Using Msiexec.exe to launch 2nd install



miltonc
06-13-2005, 04:56 PM
Set WshShell = CreateObject("Wscript.Shell")
WshShell.Run "msiexec /i C:\test.msi TARGETDIR=C:\test", 1, True

I have this VBScript Custom Action set for
Install Exec Sequence: After InstallFinalize
Install Exec Condition: Not Installed

I am getting the error, 'Another install is already in progress'

Documentation mentions that I need to place this CA in the User Interface sequence (not in the exec sequence). However, I really want to run this after the ReadyToInstall dialog. Any ideas.

Thanks in advance.

miltonc
06-13-2005, 05:12 PM
I just figured the
Install UI Sequence: After ExecuteAction
Install UI Condition: Not Installed

works fine for me. Thanks.

MartinMarkevics
06-13-2005, 05:12 PM
If you want to run it in the execute sequence, then you need to use a nested MSI custom action type.

Note, if you want to run it in the UI sequence, you can just use an EXE custom action type. No need for the extra VBS code.

Christopher Painter
06-13-2005, 09:33 PM
I also don't reccomend using the UI Sequence to chain MSI's since network admins like to run things silently without the UI Sequence ( /qn )