Reputation: 5114
I've created a windows application in c# now i added a new setup project to this application and i build it. It is executing successfully. When i try to add project output to user desktop. There are two files adding in the desktop one is exe file and another one is xml file (configuration file). Why it is happening. How can i add only exe file to my desktop while running the setup file.
Thank you, Nagu
Upvotes: 2
Views: 830
Reputation: 1924
Assuming that you already have the exe file added to your setup:
I think that would be it.
Upvotes: 1
Reputation: 2860
You have to add a shortcut to project output, not the project output itself. You can do this by selecting the "User's desktop" folder, right click and select "Create new shortcut" and in the select item dialog go to "Application folder" and select "Primary output from your project".
Upvotes: 3
Reputation: 19601
Is there a reason you're are trying to put the exe on the desktop? Standard practice is to place it in a folder in Program Files (or somewhere the user designates) and place a shortcut on the desktop.
Upvotes: 2