Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Script Host
Message
 
À
07/02/2001 07:21:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00473364
Message ID:
00473395
Vues:
19
>Is there a way of including WSH in a VFP project OR can anyone tell me what files are in WSH. Basically I need to distribute an EXE that uses WSH and I need to ensure that it has WSH available with minimal involvement from me.
>
>Thanks
Kev,

Let me cut right to the chase. The easiest way to determine if the WSH is installed is to check the registry under HKEY_CLASSES_ROOT for VBScript.RegExp. If this entry doesn't exist, it tells you two things. That either the WSH isn't installed, or if it is, it is not the most recent version. This object, is new to WSH 2.0.

What I do to install the latest version if it isn't there is to run the installation program from a post-setup executable in silent mode.

FWIW, I don't believe that you include it as part of a project, but you can include it and execute the installation program in your setup program.
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