I used VB 6.0 very much. There is a provison to compile to EXE file then package and deployment wizard make setup.exe
But I learned VB.Net 2005 programming but I couldn't any way to make a setup program or any alternative to sell my project.

Dani AI

Generated

If you are on the full Visual Studio 2005 (as asked), you have two built‑in deployment options: a traditional MSI setup project and ClickOnce publishing. For selling or distributing to many machines, prefer an MSI Setup project; ClickOnce (what mentioned via Publish) is great for easy per‑user installs and auto‑updates, but it is less flexible for machine‑wide installs and custom shortcuts.

Quick workflow that complements the steps already shared:

  • Add a new Setup and Deployment -> Setup Project to your solution, then Add -> Project Output -> Primary Output from your VB.NET project.
  • Open View -> File System on Target Machine to add content files (images, .mdb/.sdf, config), and create Start Menu/Desktop shortcuts by right‑clicking Primary Output -> Create Shortcut, then drag to the desired folder.
  • In the setup project properties, set ProductName, Manufacturer, and ProductVersion. If you plan upgrades, set RemovePreviousVersions = True.
  • Click the Prerequisites button and check the correct .NET Framework (for VS2005 apps, typically .NET Framework 2.0). Choose to package prerequisites with your installer so target PCs without VB installed will still run it, addressing the issue raised by and (and echoing ).
  • Switch the solution to Release, build the setup project, and ship the Setup.exe and .msi from the setup project’s Release folder.

Troubleshooting tips:

  • Target x86 if you use 32‑bit dependencies; Any CPU can hit 64‑bit edge cases on some machines.
  • Ensure all files your app writes to are in a per‑user location or mark them as Copy to Output Directory and include them in the installer.
  • For installer failures, capture a verbose log:
    msiexec /i YourSetup.msi /l*v install.log

    Search the log for Return value 3 to pinpoint the real error.

Recommended Answers

All 15 Replies

Is it the full version of 2005 or the express version, as the method varies between them?

Yes it is full version of Visual Studio 2005. Is there not available package and deployment vizard as available in Visual Studio 6.0. How to convert a setup package?

Is it the full version of 2005 or the express version, as the method varies between them?

You need add a setup project to your solution.

hello
can anybody help me plz...i want to creat a .EXE file in VB.NET 2005 project cause i want to run this project in another computer where VB.NET 2005 was not installed

The exe is in (solution folder)/release

Hi , You Just Go In Your Folder Which You Saved For Your Project And See There is One Folder Like bin And in This Folder You Have Debug and in this You Can See Your EXE. In Vb 2005 You Have Facality When You Run you Project Then Automatically Exe Create in Your Debug Folder.

I used VB 6.0 very much. There is a provison to compile to EXE file then package and deployment wizard make setup.exe
But I learned VB.Net 2005 programming but I couldn't any way to make a setup program or any alternative to sell my project.

Dear gauravvmahhajan,

follow the following steps to genearte the setup files of any vb.NET project.

  • Open your project
  • now move the cursor to file----->add Project------->New Project
  • then add project dialog box appears
  • now select Setup and deployment project types and setup project from templates and mention the name in name text box and the location in location text box, now click ok button
  • now in solution explorer right click on setup option then add------>file(if you have used any extra file e.g. databases or image file or dll file).
  • add all of these files files
  • repeat the prevous two steps untill you have added all of the extra file to the current setup.
  • now again right click on setup in solution explorer then click on add---->project output.
  • now add project group box appears. here configuration should be (Active) for primary ouputs. now click on ok button.
  • now right click on setup option in solution explorer again and click on Build (Now wait and observe the progress inoutput window).
  • time taken to build depend upon how heavy your project is?
  • now go to the location that you have mentioned in new project dialog box box.
  • now open setup folder then release then open setup.exe.
  • now installation starts observe the location where this project is going to be installed.
  • after intallling it go to the lcation where this project is installed now execute the exe file. (Your project is installed successfully and running, enoy this feature of deployment and setup with VB.NET tooooooooooooo)

Information was extremely helpful (even though I'm working with C++ and MFC) ... thank you so much!!

thanks to use searching function in this forum. :)

I used VB 6.0 very much. There is a provison to compile to EXE file then package and deployment wizard make setup.exe
But I learned VB.Net 2005 programming but I couldn't any way to make a setup program or any alternative to sell my project.

Go to setup wizard from new project and select the specific project that you want to prepare setup

go to the Project Menu and find your [Project Name ] Properties eg. if your project name is aaa , you can see the aaa Properties .
Click aaa Properties and then you can see your project properties window.
Select the Publish Menu at left side. Now you can publish the Setup file for your project to sell.

commented: Answering a post that is 2 years old and already been answered +0

thank you naeem it was very helpful

its not working in other computer in which vb is not install.

>its not working in other computer in which vb is not install.

You need to install appropriate version of the .net framework along with your application.

By the way, Please do not resurrect old threads and have a look at forum rules. Please read before posting - http://www.daniweb.com/forums/thread78223.html

PS:If you want to ask question, start your own thread.

Thread Closed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.