- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcas:
- Intel® Fortran Compiler
Link copiado
2 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora