Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 244,285 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 973 people online right now. Registration is fast and FREE... Join Now!




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

 
Reply to this topicStart new topic

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

enigmatic_aura08
14 Oct, 2007 - 02:20 AM
Post #1

New D.I.C Head
*

Joined: 14 Oct, 2007
Posts: 4



Thanked: 1 times
My Contributions
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.

User is offlineProfile CardPM
+Quote Post


Louisda16th
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 02:21 AM
Post #2

dream.in.assembly.code
Group Icon

Joined: 3 Aug, 2006
Posts: 1,848



Thanked: 3 times
Dream Kudos: 755
My Contributions
You mean you want to create an installer right? If yes, are you using VB Express or a full version of visual studio?
User is offlineProfile CardPM
+Quote Post

aceofspades686
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 02:35 AM
Post #3

D.I.C Regular
Group Icon

Joined: 8 Oct, 2007
Posts: 315



Thanked: 4 times
Dream Kudos: 100
My Contributions
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.
User is offlineProfile CardPM
+Quote Post

Louisda16th
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 02:37 AM
Post #4

dream.in.assembly.code
Group Icon

Joined: 3 Aug, 2006
Posts: 1,848



Thanked: 3 times
Dream Kudos: 755
My Contributions
Yup. .NET apps run only on windows. That with the correct version of .NET framework installed.

This post has been edited by Louisda16th: 14 Oct, 2007 - 02:38 AM
User is offlineProfile CardPM
+Quote Post

enigmatic_aura08
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 02:41 AM
Post #5

New D.I.C Head
*

Joined: 14 Oct, 2007
Posts: 4



Thanked: 1 times
My Contributions
QUOTE(Louisda16th @ 14 Oct, 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?


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...
User is offlineProfile CardPM
+Quote Post

Louisda16th
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 02:44 AM
Post #6

dream.in.assembly.code
Group Icon

Joined: 3 Aug, 2006
Posts: 1,848



Thanked: 3 times
Dream Kudos: 755
My Contributions
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 Oct, 2007 - 02:45 AM
User is offlineProfile CardPM
+Quote Post

enigmatic_aura08
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 02:50 AM
Post #7

New D.I.C Head
*

Joined: 14 Oct, 2007
Posts: 4



Thanked: 1 times
My Contributions
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..
User is offlineProfile CardPM
+Quote Post

xkermit
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 05:55 AM
Post #8

New D.I.C Head
*

Joined: 12 Oct, 2007
Posts: 25



Thanked: 2 times
My Contributions
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

QUOTE(enigmatic_aura08 @ 14 Oct, 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..


Anyone can help? I also find this problem.
User is offlineProfile CardPM
+Quote Post

Louisda16th
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 06:44 AM
Post #9

dream.in.assembly.code
Group Icon

Joined: 3 Aug, 2006
Posts: 1,848



Thanked: 3 times
Dream Kudos: 755
My Contributions
I think he already knows what you said.
User is offlineProfile CardPM
+Quote Post

sharpy
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 12:50 PM
Post #10

D.I.C Head
Group Icon

Joined: 2 Jun, 2007
Posts: 221



Thanked: 4 times
Dream Kudos: 275
My Contributions
QUOTE(Louisda16th @ 14 Oct, 2007 - 03:37 AM) *

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
User is offlineProfile CardPM
+Quote Post

Louisda16th
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 04:10 PM
Post #11

dream.in.assembly.code
Group Icon

Joined: 3 Aug, 2006
Posts: 1,848



Thanked: 3 times
Dream Kudos: 755
My Contributions
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.
User is offlineProfile CardPM
+Quote Post

aceofspades686
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 04:20 PM
Post #12

D.I.C Regular
Group Icon

Joined: 8 Oct, 2007
Posts: 315



Thanked: 4 times
Dream Kudos: 100
My Contributions
QUOTE(Louisda16th @ 14 Oct, 2007 - 08: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.


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?
User is offlineProfile CardPM
+Quote Post

Louisda16th
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 04:23 PM
Post #13

dream.in.assembly.code
Group Icon

Joined: 3 Aug, 2006
Posts: 1,848



Thanked: 3 times
Dream Kudos: 755
My Contributions
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.
User is offlineProfile CardPM
+Quote Post

aceofspades686
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 04:28 PM
Post #14

D.I.C Regular
Group Icon

Joined: 8 Oct, 2007
Posts: 315



Thanked: 4 times
Dream Kudos: 100
My Contributions
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?
User is offlineProfile CardPM
+Quote Post

Louisda16th
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 04:42 PM
Post #15

dream.in.assembly.code
Group Icon

Joined: 3 Aug, 2006
Posts: 1,848



Thanked: 3 times
Dream Kudos: 755
My Contributions
Yes. There are options to check for more dependencies as well.
User is offlineProfile CardPM
+Quote Post

mattw
RE: How To Make A .exe Files For My.Net Code
14 Oct, 2007 - 11:07 PM
Post #16

New D.I.C Head
*

Joined: 2 Sep, 2007
Posts: 23



Thanked: 1 times
My Contributions
QUOTE(aceofspades686 @ 14 Oct, 2007 - 05:20 PM) *

QUOTE(Louisda16th @ 14 Oct, 2007 - 08: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.


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?


In the properties section of the setup and deployment project there is a few options for how and where the framework is installed from. You can select to download it from Microsoft or you can ship the framework install with your product. Selecting the relevant option will take care of the rest for you.
User is offlineProfile CardPM
+Quote Post

narmer93
RE: How To Make A .exe Files For My.Net Code
5 Jun, 2008 - 01:55 PM
Post #17

D.I.C Regular
***

Joined: 13 Mar, 2008
Posts: 311



Thanked: 8 times
My Contributions
hey i think that the .net framewok should be with the installer
.netframework3 is already installed on my pc
i tried to install it again,it gives me a messae to tell me that the program is already installed
i think it is enough ,or there should be a choice with warning that if the user chose not to install the .netframework,the message appears that the project may not work if it is not installed
that is the worst thing about vb.net,it needs that .netframework
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 03:09PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month