6

I have developed a console application in C#. I need to create an EXE file now. By copy and pasting that EXE file to another machines, it should work with the actual process what which i done in my machine. I have searched for it and mostly there was solutions for Win apps. I need to do it in my console app.

Steps i have done yet: 1. Created a console app. 2. Right clicked on Solution which is placed in solution explorer -> Add -> New project -> Other Project Types -> Visual Studio Installer -> Given name and chooses the location and Clicked "OK". 3. File System wizard been showing now.

From here I need your advice to add the assembly.

2

2 Answers 2

10

There are 2 Ways to Do This... I just did this 20 Min Ago :)

  • Method 1 : Right Click on Your Project, Publish, Choose Location For The installer, Run it
  • Method 2 : As Previous people mentioned your bin/release folder will contain .exe files which need to be copied and Installed, i prefer the 1st method

Just a Side Note. Make Sure the Output Type Is of Console Type (Right Click on project... Output type...), Some windows applications give Problems when Publishing and Installing them

Sign up to request clarification or add additional context in comments.

Comments

0

If your application doesn't require writing to registry, startup, etc. And just merely copy pasting the exe, you might just need a batch script for that.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.