cancel
Showing results for 
Search instead for 
Did you mean: 
BobHickey
Active participant

Delay by something other than full seconds

Using installScript, I want to delay the processing of each file by .25 seconds. The Delay() function will only let me use integers, so the shortest delay is 1 second, which is too long.

Does anyone have any ideas on how to delay the processing by a fraction of a second?

Thanks!
- Bob
Labels (1)
0 Kudos
3 Replies
MarkusLatz
Active participant

Re: Delay by something other than full seconds

Use:

Sleep(number);

were number is the time interval for which execution is to be suspended, in milliseconds.

regards

Markus
0 Kudos
BobHickey
Active participant

Re: Delay by something other than full seconds

Thanks. I kept thinking that a SLEEP command should be there, but only saw the Delay command in the documentation. Makes sense that this is so easy.

I appreciate the response.

- Bob
0 Kudos
Highlighted
MarkusLatz
Active participant

Re: Delay by something other than full seconds

Yes a lot of Windows API's are prototyped into InstallScript by default.

regards

Markus
0 Kudos