Jump to content
Sign in to follow this  
unclefishy

simple fix i am sure

Recommended Posts

unclefishy

Hello all...

so is there an easier way to get this to wait for the files to unpack.

the files are basically pretty large...over 200mb all together, so it takes it ahwile to unpack the self-extracting zip to the temp folder... and then i launch it to unpack it and since it is so big it takes a while... to extract all the files... the runwait, and waitwinactive... doen't seem to catch it... my only luck has been with varying sleep times...

so i just need some 'best practices' i guress

CODE
$Program_1 = @TempDir & "\program-test1.exe"

Sleep(5000)

FileInstall("U:\scripts\others\program-test1.exe", $Program_1)

Sleep(5000)

Run($Program_1)

Sleep(10000)

RunWait(@COMSPEC & " /c Start " & @TempDir & "\program.msi")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.