Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a desktop URL shortcut during installation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Divers
Thread ID:
00503416
Message ID:
00503722
Vues:
18
>>>Is there any way to have Installshield Express create a desktop shortcut to an URL target during installation? It seems all shortcut targets have to be local files.
>>
>>Vidar,
>>
>>I don't know InstallShield Express, but if it allows you to create a desktop shourtcut, you should be able to do this. Just use "url" as the extension for the shortcut, rather than "lnk" and set the target path to the URL. Using the Shell application object, it'd look like this
* Create the Shell reference
>>oShell = CREATEOBJECT("WScript.Shell")
>>* Get the current desktop
>>lcdesktop = oShell.SpecialFolders("Desktop")
>>* Create the shortcut
>>oLink = oShell.CreateShortcut(lcdesktop + "\Universal Thread.url")
>>* Set the target
>>oLink.TargetPath = "http://www.levelextreme.com"
>>* Save it
>>oLink.Save()
>
>Thanks, George
>
>How do I set the icon for the oLink object?

The icon isn't changeable (at least via the WScript.Shell). I just RTFM'd to be sure.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform