ashmish2
ashmish2

Reputation: 2967

windows api to create shortcut and put application in start menu

I have a client application in C++. For that I want to create a shortcut on the desktop and an entry in the start menu while installing. Is there any C++ windows api for that? I tried searching for it but couldn't find it. Can anyone tell me how it can be done?

Upvotes: 3

Views: 3308

Answers (1)

Eran
Eran

Reputation: 22010

You'll have to get your hands a bit dirty, and use COM to access the Shell. You can read here about Shell Links. Also, this project might provide you the code you need.

To get the location of the desktop and the start menu folders, you can use the appropriate System Variables.

Upvotes: 3

Related Questions