How to make a .exe files for my.Net code

I have developed a product and want to make it as .exe file and instal

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 11786 Views - Last Post: 23 January 2011 - 06:48 AM Rate Topic: -----

#1 enigmatic_aura08  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 4
  • Joined: 14-October 07

How to make a .exe files for my.Net code

Posted 14 October 2007 - 03:20 AM

Hi,
I have made a software,more over to say a product which can be used by many managers in .net,I want to run or install this code developed in Vb.net in other machine so that they are able to use this.Can you suggest me a way where I can compress my code put it in a Cd and expose it as a software to otehr irrespective of what ever OS they have,they should be able to just click the exe file like any other free softwares we get on net and able to use it..can you please guide me to do that.

Is This A Good Question/Topic? 0
  • +

Replies To: How to make a .exe files for my.Net code

#2 Louisda16th  Icon User is offline

  • dream.in.assembly.code
  • member icon

Reputation: 15
  • View blog
  • Posts: 1,967
  • Joined: 03-August 06

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 03:21 AM

You mean you want to create an installer right? If yes, are you using VB Express or a full version of visual studio?
Was This Post Helpful? 0
  • +
  • -

#3 aceofspades686  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 6
  • View blog
  • Posts: 334
  • Joined: 08-October 07

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 03:35 AM

Also, you mention "...irrespective of what ever OS..." VB.NET code will not run outside of a windows environment to the best of my knowledge. I may be wrong on that, but I'm fairly certain.

Also, if you're just looking to hand out the executable, make a build of it (Build>Build Solution) and the .exe file will be in your release folder in /Projects/%Project Name%/Bin/ though this is a bit risky simply because, even on a windows machine the user must have the proper .NET Framework installed.
Was This Post Helpful? 1
  • +
  • -

#4 Louisda16th  Icon User is offline

  • dream.in.assembly.code
  • member icon

Reputation: 15
  • View blog
  • Posts: 1,967
  • Joined: 03-August 06

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 03:37 AM

Yup. .NET apps run only on windows. That with the correct version of .NET framework installed.

This post has been edited by Louisda16th: 14 October 2007 - 03:38 AM

Was This Post Helpful? 0
  • +
  • -

#5 enigmatic_aura08  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 4
  • Joined: 14-October 07

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 03:41 AM

View PostLouisda16th, on 14 Oct, 2007 - 03:21 AM, said:

You mean you want to create an installer right? If yes, are you using VB Express or a full version of visual studio?


Yes I want to create a installer,which I can be taken to any system and plp can use my software.I am using VB Express.Can you me how to create a installer for my .Net code...
Was This Post Helpful? 1

#6 Louisda16th  Icon User is offline

  • dream.in.assembly.code
  • member icon

Reputation: 15
  • View blog
  • Posts: 1,967
  • Joined: 03-August 06

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 03:44 AM

Your EXE will be located in either your debug folder, release folder or both. VB Express has a ClickOnce deployment feature. But it doesn't give you many options. Like you cannot decide which folder you want to install your applications in. Alternatively you can look for some third party software like install shield. A free software is SharpDevelop. You can check it out here: CLICK HERE

This post has been edited by Louisda16th: 14 October 2007 - 03:45 AM

Was This Post Helpful? 0
  • +
  • -

#7 enigmatic_aura08  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 4
  • Joined: 14-October 07

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 03:50 AM

I understand that Windows is need,but in your solution you have mentioned that the user should have .Net installed in his machine...is there any way that I can configure the exe file in such a way that..I give a prompt to install the .Net first and then install my software..how to make those configurations..
Was This Post Helpful? 0
  • +
  • -

#8 xkermit  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 25
  • Joined: 12-October 07

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 06:55 AM

umm....... let me try to answer your Q.

These are solution from me:
1. In solution explorer, click you project, right click on it and chose build.
2. from your projext Click File menu -> add -> new project. There will be a Add new Project windows appear. onthe left side, choose other project type -> Setup and deployment. Then go to the right side and pick setup project. Give that project a name then click OK. Then you'll find another project opened below or above your real project. There are some settings that you shall try by your self (I'm still doing trial and error on that too, especially the registry). Now choose you new project, right click on it and build (depending on your software it could take some times so be patient). After finished, find your setup in your solution explorer folder. Depends on your setting it could be somewhere in debug folder or release or both.
3. find another third party software

View Postenigmatic_aura08, on 14 Oct, 2007 - 03:50 AM, said:

I understand that Windows is need,but in your solution you have mentioned that the user should have .Net installed in his machine...is there any way that I can configure the exe file in such a way that..I give a prompt to install the .Net first and then install my software..how to make those configurations..


Anyone can help? I also find this problem.
Was This Post Helpful? 0
  • +
  • -

#9 Louisda16th  Icon User is offline

  • dream.in.assembly.code
  • member icon

Reputation: 15
  • View blog
  • Posts: 1,967
  • Joined: 03-August 06

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 07:44 AM

I think he already knows what you said.
Was This Post Helpful? 0
  • +
  • -

#10 sharpy  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 35
  • View blog
  • Posts: 394
  • Joined: 02-June 07

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 01:50 PM

View PostLouisda16th, on 14 Oct, 2007 - 03:37 AM, said:

Yup. .NET apps run only on windows. That with the correct version of .NET framework installed.


As far as i am aware

2005 VB express you need 2.0 .net framework

2008 VB express you need 3.0 .net framework

Just build you project to a CD and download the correct .net framework
Was This Post Helpful? 0
  • +
  • -

#11 Louisda16th  Icon User is offline

  • dream.in.assembly.code
  • member icon

Reputation: 15
  • View blog
  • Posts: 1,967
  • Joined: 03-August 06

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 05:10 PM

Yes but there ia a way to detect if the .NET framework is installed. Im not sure how to do it. Setup projects created in Visual Studio 2005 automatically take care of dependencies.
Was This Post Helpful? 0
  • +
  • -

#12 aceofspades686  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 6
  • View blog
  • Posts: 334
  • Joined: 08-October 07

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 05:20 PM

View PostLouisda16th, on 14 Oct, 2007 - 08:10 PM, said:

Yes but there ia a way to detect if the .NET framework is installed. Im not sure how to do it. Setup projects created in Visual Studio 2005 automatically take care of dependencies.


That's good to know, I was actually wondering about how to go about doing that myself for when I create the distribution for the project I'm currently working on. Do you know if it includes the .NET redistributable package in the installer? Or does it just tell them to download it from the Microsoft site?
Was This Post Helpful? 0
  • +
  • -

#13 Louisda16th  Icon User is offline

  • dream.in.assembly.code
  • member icon

Reputation: 15
  • View blog
  • Posts: 1,967
  • Joined: 03-August 06

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 05:23 PM

It comes with Visual Studio Professional. I doubt there is a redistributable. Sharpdevelop seems to be the best option (if you want free) but Im not sure on how to use it.
Was This Post Helpful? 0
  • +
  • -

#14 aceofspades686  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 6
  • View blog
  • Posts: 334
  • Joined: 08-October 07

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 05:28 PM

Well, what I meant was, I have VS 2005 professional, and if I use it to create an installer for my project, will it include the actual .Net Framework in the installer or tell them to get it from the Microsoft site?
Was This Post Helpful? 0
  • +
  • -

#15 Louisda16th  Icon User is offline

  • dream.in.assembly.code
  • member icon

Reputation: 15
  • View blog
  • Posts: 1,967
  • Joined: 03-August 06

Re: How to make a .exe files for my.Net code

Posted 14 October 2007 - 05:42 PM

Yes. There are options to check for more dependencies as well.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2