Kdyer
(KiX Supporter)
2005-03-24 01:08 AM
Process wait

Tried to use ENUMPROCESS() UDF -
Code:

RUN 'msiexec /i '+$server+'netfx.msi /q'
WHILE ENUMPROCESS('MSIEXEC.EXE')
SLEEP '0.5'
LOOP
RUN 'msiexec /i '+$server+'odbc_net.msi /q'
; -- OTHER CODE



as well as -

Code:

RUN 'msiexec /i '+$server+'netfx.msi /q'
FOR EACH $process IN GetObject('winmgmts:{impersonationLevel=impersonate}!//'+
@wksta).execquery('select * from Win32_Process where ProcessId="MSIEXEC.EXE"')
WHILE $process.name<>''
SLEEP '0.5'
LOOP
NEXT
RUN 'msiexec /i '+$server+'odbc_net.msi /q'
; -- OTHER CODE


And neither seem to work.

Kent


AllenAdministrator
(KiX Supporter)
2005-03-24 03:45 AM
Re: Process wait

It seems like to me I ran into something similiar to this one time... would it help to throw in a sleep for a 1 sec before you start the loop?

Kdyer
(KiX Supporter)
2005-03-24 08:54 AM
Re: Process wait

I will give it a shot in the morning.. I want to be sure the installs complete as I need to run REGINI to set Reg Permissions.

Kent


Richard H.Administrator
(KiX Supporter)
2005-03-24 09:49 AM
Re: Process wait

Why the RUN?

Will "SHELL" with "START /WAIT" not do?


Kdyer
(KiX Supporter)
2005-03-24 07:02 PM
Re: Process wait

Richard,

SHELL "START /WAIT.."

Is what I needed.

Thank you.

Kent