>>>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
>>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
You're welcome.
>How do I set the icon for the oLink object?
By default, it's the browser icon. As I recall, a URL shortcut is different in its properties from a regular one and may not allow it. You can try setting oLink.IconLocation = "SomeFileOrDll,0" but it may throw an OLE error. If so, it's not an available property as it is with a regular lnk shortcut.
George
Ubi caritas et amor, deus ibi est