Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does setup wizard create an icon
Message
De
06/07/1999 21:15:17
 
 
À
06/07/1999 18:17:23
Randy Hooper
Ranco Business Software
Tampa, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00237923
Message ID:
00238056
Vues:
17
>>>Does setup wizard create an icon on the desktop automatically, like alot of professional apps do?
>>
>>No, but you can write a post-setup executable to do it, either using George Tasker's LNKFILES.DLL (downloadable from UT) or using rthe Wscript.Shell automation object that's a part of the Windows Scripting Host.
>>
>>>This would be convienent.
>
>Ed,
>I have been playing around with the WHS and my question is after I have made my script file it has a ext of .VBS in the setup wizard post-setup executable how do I call my script that I have made.
>

There's no need to create a VBScript to do it; once the scripting host is installed, you can instantiate the Wscript.Shell object within VFP itself, and access the SpecialFolders collection to find the Desktop, and access the CreateShortcut method to create or modify a shortcut on the desktop in that fashion.

If you wanted to invoke your script, you'd fire it by invoking WSCRIPT.EXE or CSCRIPT.EXE with the name of the .VBS script you created.
>Thanks Randy
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform