Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get file size
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00535088
Message ID:
00535299
Vues:
10
>>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform