Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcut tip
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00610779
Message ID:
00718697
Views:
31
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform