- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I've created an installation program for an application, which does everything except place a shortcut on the user's desktop. I've seen references as to how this can be done in Visual Basic, but does anyone know how to create a desktop shortcut for an application from within Fortan?
With many thanks in advance,
Mike
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Actually, it's fairly ugly, as it involves invoking COM-based shell API IShellLink. See XFTFile::XCreateShorcut; due to inherent ugliness, I recommend using as-is (!DEC$DEFINE XLITE if you need just XFTFile rather than full Xeffort).
Have you tried InnoSetup (+ISTool) setup tools instead of reinventing the wheel? They're fairly simple to use.
Have you tried InnoSetup (+ISTool) setup tools instead of reinventing the wheel? They're fairly simple to use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A brief look shows that you probably need to use Shell functions from Shell32.dll, such as SHGetSpecialFolderLocation and SHFileOperation. However wheras my version of SHELL32.F90 in CVF 6.6 contains an interface for the latter function, it does not contain an interface for the former function. Maybe Intel Fortran has more Shell function interfaces available.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page