Launching exe and MSI part of my current MSI
Dear all
I am using Wise Package Studio 7.0 SP3, I am trying to do the following but it is not working.
My current install MSI (Vm2_Install) needs to launch 3 exes and 4 msi as part of Vm2_Install.msi. I have used "Execute Program from installation" for executable file and "Install MSI from installation" for msi BUT when I launch Vm2_Install.msi all the exes and msi launches at the same time but I want them in sequence.
Can some one help me how can I control to wait for my main MSI until 1st exe completes then launch 2nd exe or msi.
I am new to this and not a full time Package developer. :)
Many thanks in advance
I am using Wise Package Studio 7.0 SP3, I am trying to do the following but it is not working.
My current install MSI (Vm2_Install) needs to launch 3 exes and 4 msi as part of Vm2_Install.msi. I have used "Execute Program from installation" for executable file and "Install MSI from installation" for msi BUT when I launch Vm2_Install.msi all the exes and msi launches at the same time but I want them in sequence.
Can some one help me how can I control to wait for my main MSI until 1st exe completes then launch 2nd exe or msi.
I am new to this and not a full time Package developer. :)
Many thanks in advance
0 Comments
[ + ] Show comments
Answers (12)
Please log in to answer
Posted by:
timmsie
13 years ago
sounds like you've got you "Execute Program From Installation" CA's set to be Asynch
Have a look at the "Properties" tab on the custom action the "Processing" option needs to be Synchronous
But I'd agree with itolutions in your situation wrapping this stuff in an msi is overkill there's no need as you're not really interested in what Windows Installer offers you.
You'd be better off creating a vbscript or even a simple batch file.
Have a look at the "Properties" tab on the custom action the "Processing" option needs to be Synchronous
But I'd agree with itolutions in your situation wrapping this stuff in an msi is overkill there's no need as you're not really interested in what Windows Installer offers you.
You'd be better off creating a vbscript or even a simple batch file.
Posted by:
anonymous_9363
13 years ago
Posted by:
Ash786
13 years ago
Posted by:
MarcusPiper
13 years ago
Posted by:
itolutions
13 years ago
1) Did you set "check exit code" flag (synchronous mode) for yours custom actions?
2) In complicated situations Executables can return exit code before installation completion. In this case you need to sequence additional custom actions to wait installation process completion. Like this:
2) In complicated situations Executables can return exit code before installation completion. In this case you need to sequence additional custom actions to wait installation process completion. Like this:
Function WaitForTermination(strProcess,iMaxWaitSeconds)
Dim objWMIService, colProcess, objProcess,currentSec, flag
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
currentSec = 0
Do while currentSec<iMaxWaitSeconds
//!!!!!!!some "one minute pause" function should be here!!!!!!!
Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process WHERE Name='" & strProcess & "'")
flag = true
For Each objProcess in colProcess
flag = false
Next
If flag then Exit Do
currentSec = currentSec + 1
Loop
End Function
Posted by:
mazessj
13 years ago
Posted by:
mazessj
13 years ago
Posted by:
Ash786
13 years ago
Posted by:
mazessj
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.