Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get file size
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00535088
Message ID:
00535299
Views:
11
>>
>>I made it a habit to check for the presence of it using a post-setup executable in VFP 6.0 and installing it if it wasn't present.
>
>I'd like to see a copy of that if you don't mind...

Not much to it
* Function: Is_WSH.prg
* Author: George Tasker
* Date: July 18, 2000 - 9:57 AM
* Purpose: Is the Windows Script Host installed

LOCAL llresult, loReg
SET CLASSLIB TO Registry.vcx
loReg = CREATEOBJECT("Registry")
llresult = loReg.IsKey("VBScript.RegExp")
RELEASE CLASSLIB Registry
RETURN llresult
This determines if the WSH is installed. If not, then RUN /N SCR55EN.EXE /Q is executed. This runs the installation program for the WSH. I think, however, that SCR55EN is no longer available, and has been replaced by SCR56EN.EXE (which I think is still in beta).
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform