MSI Install followed by configuration file copy - Crapping out

(imported topic written by jcsUTSW)

I’ve got a task that I could have swore was working when I looked at it a few months ago and now it’s not… If I break it into 2 separate tasks it works great… I think I’m running into a timing issue and need to figure out how to create a delay… I’ve tried this

Parameter “startClock”="{now}"

Pause while {(now - (parameter “startClock” as time)) < 20*minute}

but it’s not working.

Here’s the action.

action script

download http://myserver.mydomain.com:52311/Uploads/b1e98bb706b7f5fccb9245f38791f23f31ea8c6b/big5.tmp

continue if { (size of it = 1985418 and sha1 of it = “b1e98bb706b7f5fccb9245f38791f23f31ea8c6b”) of file “big5.tmp” of folder “__Download”}

extract big5.tmp

wait “{pathname of system folder & “\msiexec”}” /i “{(pathname of client folder of current site) & “__Download\BBWin_0.12.msi”}” /qn /norestart

delete __createfile

createfile until endoffile

Insert 150 line file here.

endoffile

parameter “filename” = “{(value “etcpath” of key “HKLM\SOFTWARE\BBWin” of registry as string & “\BBWin.cfg”)}”

move “{parameter “filename”}” “{parameter “filename”}.bak”

move __createfile “{parameter “filename”}”

waithidden net stop bbwin

waithidden net start bbwin

[/action script]

Where it’s failing it on the registry lookup… When it craps out there the whole job stops and the installation earlier in the script never finishes.

So my guess is I need some kind of a pause for 45 seconds to 1 minute between the installation and the configuration file copy.

I think what I’m running into is the registry keys I’m looking for do not exist yet because the installation has not completed.

Can anyone offer some help?

Thanks

(imported comment written by BenKus)

Hey jcsutsw,

If the problem is waiting for the install to finish, then adding a pause seems like it will help… Your “pause while” attempt looked like it should work, but you might want to debug that a little more… You can also use the “poorman’s pause” using the “ping” command… These pause techniques are shown here:

http://forum.bigfix.com/viewtopic.php?id=1021

You might also double-check to see if that reg key is properly being written out by the installer when it finishes…

Ben