BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Desktop Shortcut

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Mike Breeden
Guest





PostPosted: Mon Mar 06, 2006 11:03 pm    Post subject: Desktop Shortcut Reply with quote



Basically I am writing my own installer. Can you tell me how to put a valid
shortcut on the desktop and how to create a program group with program link
in it. I'd really appreciate any suggestions of how to do this
programatically .... or otherwise.
BCB 5.0
Thanks, Mike Breeden

.... How odd... underlining

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Mar 07, 2006 1:03 am    Post subject: Re: Desktop Shortcut Reply with quote



"Mike Breeden" <a1swdeveloper (AT) yahoo (DOT) com> wrote in message
news:440cbc65$1 (AT) newsgroups (DOT) borland.com...

Quote:
Can you tell me how to put a valid shortcut on the desktop

You need to use the IShellLink interface, along with the
SHGetSpecialFolderLocation() function. Go to http://www.deja.com and search
through the newsgroup archives. Detailed code snippets have been posted
many times before.

Quote:
and how to create a program group with program link in it.

Program groups are a Win3.1 feature. They don't exist anymore. All you
have to do is use SHGetSpecialFolderLocation() to locate the Start Menu and
then use the CreateDirectory() function to create a new folder in the
desired area. You can then use IShellLink to places links inside that
folder.


Gambit
Back to top
Pete Fraser
Guest





PostPosted: Tue Mar 07, 2006 10:03 am    Post subject: Re: Desktop Shortcut Reply with quote

I assumed you do know about InnoSetup the free installer
which will probably do all this and more. (And this is
from someone who also wrote their own installer but
now uses innosetup)
Rgds Pete

"Mike Breeden" <a1swdeveloper (AT) yahoo (DOT) com> wrote in message
news:440cbc65$1 (AT) newsgroups (DOT) borland.com...
Quote:
Basically I am writing my own installer. Can you tell me how to put a
valid
shortcut on the desktop and how to create a program group with program
link
in it. I'd really appreciate any suggestions of how to do this
programatically .... or otherwise.
BCB 5.0
Thanks, Mike Breeden
Back to top
Mike Breeden
Guest





PostPosted: Fri Mar 10, 2006 5:04 pm    Post subject: Re: Desktop Shortcut - solution Reply with quote

I found out my problem. You can copy directorys and links to the desktop or
menus just like any other directory or file. It's just not obvious that the
Shortcuts have a filename extension of '.lnk'.
I'm using Builder 5 so I don't think SHGetSpecialFolderLocation() is
available to me.
Thanks, Mike Breeden


"Mike Breeden" <a1swdeveloper (AT) yahoo (DOT) com> wrote in message
news:440cbc65$1 (AT) newsgroups (DOT) borland.com...
Quote:
Basically I am writing my own installer. Can you tell me how to put a
valid
shortcut on the desktop and how to create a program group with program
link
in it. I'd really appreciate any suggestions of how to do this
programatically .... or otherwise.
BCB 5.0
Thanks, Mike Breeden

... How odd... underlining

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Mar 10, 2006 8:03 pm    Post subject: Re: Desktop Shortcut - solution Reply with quote

"Mike Breeden" <a1swdeveloper (AT) yahoo (DOT) com> wrote in message
news:4411a528$1 (AT) newsgroups (DOT) borland.com...

Quote:
I'm using Builder 5 so I don't think SHGetSpecialFolderLocation()
is available to me.

Yes, it is. It has been available since at least BCB 3. It is declared in
the shlobj.h header file, and is documented in the Win32 API docs.


Gambit
Back to top
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group
.