Windows installation project problem (C #, winforms)

I have created a Windows Application in C #, now I have added a new project for this application and I am creating it. It runs successfully. When I try to add project output to user's desktop. There are two files on the desktop: exe file, the other is xml file (config file). Why is this happening. How can I only add the exe file to my desktop when running the setup file.

Thanks, Nagu

+2


source to share


3 answers


You need to add a shortcut to the project output, not the project output itself. You can do this by selecting the User Desktop folder, right-click and select Create New Shortcut, and in the dialog box, select Application Folder and select Primary Output from Your Project.



+3


source


Is there any reason why you are trying to put the exe on the desktop? Standard practice is to put it in a folder in Program Files (or wherever the user is) and place a shortcut on the desktop.



+2


source


Assuming you already have the exe file added to your setup:

  • Right click your setup project, click view-> filesystem;
  • Right click on Desktop-> Create shortcut for desktop user

I think it will be so.

+1


source







All Articles