Click here to Skip to main content
16,004,761 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created one application and setup project for the same.

When I installed that application I want to add shortcut to desktop.

Please any one tell me how to do?
Posted

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-Jan-11 11:41am    
Good, too - a 5.
Espen Harlinn 14-Jan-11 12:02pm    
Thank you SAKryukov!
Is there a reason that you have not included this functionality in your setup project?

In case you would like to do it that way, take a look at this[^].
 
Share this answer
 
Comments
Espen Harlinn 14-Jan-11 6:51am    
5+ just the essentials :)
Sergey Alexandrovich Kryukov 14-Jan-11 11:40am    
Just the essentials do just the thing -- my 5.
To achieve the goal I followed the following steps:
1. Created a setup deployment project in VS.
2. Added a file in Application Folder.
3. Created a shortcut of the file in Application Folder.
4. Moved the shortcut in the User's Desktop Folder.
5. Build the solution and created the setup.exe file.
Executed the setup file and it deployed the file as well as created the shortcut of it on the desktop.
Hope this will answer your question.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-Jan-11 11:42am    
Clear and methodical - my 5.
Just go to the directory where you application is intalled,most probablly where the directory where your OS has been installed.
you will found progarm files folder.open that folder and serch for the application exe.Then right click on that
You will found 2 opttions:
1.Send to Desktop
2.Creat Shortcut.

Use any one :)
 
Share this answer
 
Comments
Ashish Tyagi 40 14-Jan-11 11:37am    
you are write buddy don't know why got down voted..... Don't worry i vote you a five, so do you to mine
Ashish Tyagi 40 14-Jan-11 11:41am    
Yogesh please don't forgot to vote me... i give a 5, thanks in advance
Orcun Iyigun 14-Jan-11 11:50am    
Well the answer is sort of true but I think it doesnt meet the needs of him properly. The end user shouldnt create the shortcuts after each installation. That has to be done automatically so he has to do it in his deployment process in C#.
if you are using windows (any version) you just go to the folder where the desired executable(FileName.exe) file exist. select the .exe file write click click on Send To> now click on Desktop(Create Shortcut) .

MyApp.exe
       |
       |---> Send To ----->
                           |
                           | ---> Desktop(Create Shortcut)

This will do....

And if you don,t know where the exe is.... just search it by guessing the name of executable and with extension

like your app name is MyApp
then search *MyApp*.exe
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900