Welcome to Dream.In.Code
Click Here
Getting VB.NET Help is Easy!

Join 117,610 VB.NET Programmers for FREE! Ask your question and get quick answers from experts. There are 1,965 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



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

2 Pages V  1 2 >  
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
post 14 Oct, 2007 - 03:20 AM
Post #1


New D.I.C Head

*
Joined: 14 Oct, 2007
Posts: 4


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

Go to the top of the page


Louisda16th
post 14 Oct, 2007 - 03:21 AM
Post #2


 

Group Icon
Joined: 3 Aug, 2006
Posts: 1,790



Thanked 1 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

Go to the top of the page

aceofspades686
post 14 Oct, 2007 - 03:35 AM
Post #3


D.I.C Regular

Group Icon
Joined: 8 Oct, 2007
Posts: 261



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

Go to the top of the page

Louisda16th
post 14 Oct, 2007 - 03:37 AM
Post #4


 

Group Icon
Joined: 3 Aug, 2006
Posts: 1,790



Thanked 1 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 - 03:38 AM
User is offlineProfile CardPM

Go to the top of the page

enigmatic_aura08
post 14 Oct, 2007 - 03:41 AM
Post #5


New D.I.C Head

*
Joined: 14 Oct, 2007
Posts: 4


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

Go to the top of the page

Louisda16th
post 14 Oct, 2007 - 03:44 AM
Post #6


 

Group Icon
Joined: 3 Aug, 2006
Posts: 1,790



Thanked 1 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 - 03:45 AM
User is offlineProfile CardPM

Go to the top of the page

enigmatic_aura08
post 14 Oct, 2007 - 03:50 AM
Post #7


New D.I.C Head

*
Joined: 14 Oct, 2007
Posts: 4


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

Go to the top of the page

xkermit
post 14 Oct, 2007 - 06:55 AM
Post #8


New D.I.C Head

*
Joined: 12 Oct, 2007
Posts: 13


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

Go to the top of the page

Louisda16th
post 14 Oct, 2007 - 07:44 AM
Post #9


 

Group Icon
Joined: 3 Aug, 2006
Posts: 1,790



Thanked 1 times

Dream Kudos: 755
My Contributions


I think he already knows what you said.
User is offlineProfile CardPM

Go to the top of the page

sharpy
post 14 Oct, 2007 - 01:50 PM
Post #10


D.I.C Head

Group Icon
Joined: 2 Jun, 2007
Posts: 174



Dream Kudos: 175
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

Go to the top of the page

Louisda16th
post 14 Oct, 2007 - 05:10 PM
Post #11


 

Group Icon
Joined: 3 Aug, 2006
Posts: 1,790



Thanked 1 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

Go to the top of the page

aceofspades686
post 14 Oct, 2007 - 05:20 PM
Post #12


D.I.C Regular

Group Icon
Joined: 8 Oct, 2007
Posts: 261



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

Go to the top of the page

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 10/7/08 11:48PM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month