Hello,
Can anybody help me. I am very new at this.
We have a situation that our company is using two distribution channels.
Wintel group is using SCCM and we are using Autoit scripts.
Because Msiexec.exe only can runnig ones on a computer our installations are getting interrupted.
So therefore I want to put a check in the autoit script that checks if the msiexec.exe is runing and if it is running then wait until this process is done or stopt and then starts our installation.
Our script :
Can anybody help me. I am very new at this.
We have a situation that our company is using two distribution channels.
Wintel group is using SCCM and we are using Autoit scripts.
Because Msiexec.exe only can runnig ones on a computer our installations are getting interrupted.
So therefore I want to put a check in the autoit script that checks if the msiexec.exe is runing and if it is running then wait until this process is done or stopt and then starts our installation.
Our script :
[ autoit ]
$cmd1 = 'c:\temp\mcupgrade\install\setup /s /v"/qb-"' $cmd2 = 'c:\temp\mcupgrade\elevate c:\temp\mcupgrade\fixpack\setup /s /v"/qb+"' Local $size1 = FileGetSize("c:\temp\mcupgrade\install\setup.exe") Local $size2 = FileGetSize("c:\temp\mcupgrade\fixpack\setup.exe") If $size1 = 173408 And $size2 = 7219000 Then Local $pid = RunAsWait("administrator account",<password>,"",'"' & @ComSpec & '" /c ' & $CMD1, @SystemDir) ProcessWaitClose($pid) RunAsWait("administrator account",<password>,"",'"' & @ComSpec & '" /c ' & $CMD2, @SystemDir) EndIf