HTA value update freezes when file copy starts

Posted by Matt Hamende on Stack Overflow See other posts from Stack Overflow or by Matt Hamende
Published on 2012-04-05T09:05:44Z Indexed on 2012/04/06 23:29 UTC
Read the original article Hit count: 231

Filed under:
|

Creating an HTA that will automate the installation of several applications it starts by checking for the existence of certain files then copies a large folder to local from a flash drive if it doesn't exist, I have a textbox I'm using to update the current status of the script, but it just seems to freeze and never updates, I haven't had any luck with any of the artificial sleep functions either.

here's the segment

If Not objFSO.FileExists(Office10Dir) Then
MsgBox("Excel is missing")

BasicTextBox.Value = "Office14 Not Detected, Copying Source Files to Local"

Dim objFS, objFolder
Dim OfficeTemp
OfficeTemp = "C:\OfficeTemp"
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFS.CreateFolder(OfficeTemp)
objFS.CopyFolder "OfficeTemp", "C:\OfficeTemp"

BasicTextBox.Value = "Local Temp Directory Created"

ELSE
MsgBox("Excel is Installed")
END IF

All i see is the "Local Temp Directory Created" message once file copy is complete

© Stack Overflow or respective owner

Related posts about vbscript

Related posts about hta