Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shortcut tip
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00610779
Message ID:
00718697
Vues:
32
George,

What do you put in Post-Setup executable? I'm using Setup Wizard and can not yet figure out, how to create a Shortcut link. User can change the default location of my exe during installation...

Could you please give me instructions?

Thanks in advance.

>>GREAT! Willing to share any code to experient with?
>>TIA,
>
>Tracy,
>
>Using my LNKFILES.dll
DECLARE INTEGER SetLinkDescription IN LNKFILES.DLL;
>  INTEGER hWnd, STRING @lpszLinkName, STRING @lpszPath
>* lclinkname is the path and filename of the shortcut link
>* lcdescription represents the description you'll see
>? SetLinkDescription(0, @lclinkname, @lcdescription) && Returns 1 on success
>
>Using the WSH
oShell = CREATEOBJECT("WScript.Shell")
>* Get a reference to an existing shortcut or create a new one
>* lclinkname is the path and filename of the shortcut link
>oLink = oShell.CreateShortcut(lclinkname)
>oLink.Description = lcdescription
>oLink.Save
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform