Page 1 of 1 1
Topic Options
#136259 - 2005-03-24 01:08 AM Process wait
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#136260 - 2005-03-24 03:45 AM Re: Process wait
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
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?
Top
#136261 - 2005-03-24 08:54 AM Re: Process wait
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#136262 - 2005-03-24 09:49 AM Re: Process wait
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Why the RUN?

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

Top
#136263 - 2005-03-24 07:02 PM Re: Process wait
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Richard,

SHELL "START /WAIT.."

Is what I needed.

Thank you.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.054 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org