Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a desktop URL shortcut during installation
Message
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
00503416
Message ID:
00503669
Views:
24
>>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?
Vidar Johannessen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform