472,805 Members | 1,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 software developers and data experts.

how to create a set up project in vb.net

how to create a set up project in vb.net..how to run an application on a different machine
Oct 8 '07 #1
3 3843
Hi
THIS is very Simpal . You can just Follow Step that i Send you.Don't Worry.

Here , info and images send you.


Deploying Applications

Once an application is developed and if we want to distribute that application, we need to deploy that. Deployment is the process where we create an executable file which can be installed on any machine where the application can run. We can use the built-in deployment feature that comes with Visual Basic to create a Windows Installer file - a .msi file for the purpose of deploying applications.

Let's look at the process with an example. Let's assume we have a form with a TextBox and a Button. When the Button is clicked the TextBox should display "This application is Deployed". Let's name this application as Deploy. The code for the click event of the Button looks like this:

Private Sub Button1_Click(By Val sender as System.Object, By Val e_
as System.EventArgs)Handles Button1.Click
TextBox1.Text="This application is Deployed"
End Sub


Next, we need to create an executable (exe) file for this application. To do that select Build->Build from the main menu which builds Deploy.exe. Next, we need to create an installer file for Deploy (which is the example) which is a file with .msi extension. To do that, select File->Add Project->New Project which opens the new project dialogue. Select "Setup and Deployment Projects" icon in the projects type box and Setup Wizard in the templates box. It looks like the image below.



Click OK to open the Setup Wizard. The Setup wizard window looks like the image below.



Click next on the above pane to take you to second pane in the Wizard. The new pane allows us to create deployment projects both for Windows and Web Applications. Here, select the radio button which says "Create a setup for Windows Application" as this is deploying a windows application and click next. It looks like the image below.



Clicking next opens a new pane which has options like Deploying only primary output from the project or both the project and source code or content files. Check the checkbox which you want, in this case check the checkbox that says "Primary Output from Deploy" and click next. It looks like the image below.



Clicking next opens a new pane which asks if you want any additional files to be added. If you wish, you can include other files, like an icon for the application. In this example don't include any files and click next. It looks like the image below.



Doing that brings up the last pane of the Setup Wizard which looks like the image below. Click Finish on this pane.



Clicking finish opens up a File System window which looks like the image below.



This window allows us to create shortcuts to the application on the desktop and in our Programs Menu. To create a shortcut, right-click on the folder "User's Desktop" and select "Create Shortcut to User's Desktop". Rename the shortcut to "Deployment". If we want a shortcut to the application from our Programs Menu, right-click on "User's Program Menu" folder and select "Create Shortcut to User's Program Menu". Rename the shortcut to "Deployment". Once you are finished with it, click on "Application Folder" and open it's properties. In the properties window set the property "Always Create" to True. Set the same for "User's Desktop" and "User's Programs Menu" folders. If you want any additional information to include with the set-up project, like the manufacturer, author etc, click on Setup1 project and open it's properties. You can set additional information here. Once your are done with it build the project by right-clicking on Setup1 and selecting Build. This builds the application. The setup file is created in the debug folder of Setup1 project.
Oct 8 '07 #2
kenobewan
4,871 Expert 4TB
Deploying Applications

Once an application is developed and if we want to distribute that application, we need to deploy that. Deployment is the process where we create an executable file which can be installed on any machine where the application can run. We can use the built-in deployment feature that comes with Visual Basic to create a Windows Installer file - a .msi file for the purpose of deploying applications.. etc
Excellent copying & pasting - keep up the good work :o)
Oct 8 '07 #3
kask
2
how to create a set up project in vb.net..how to run an application on a different machine
Hi Sanghavi,

Here i show some basic steps & you can get it from

http://support.microsoft.com/kb/307353
Try it Out...
Types of deployment projects
There are five types of deployment projects: Merge Module Project, Setup Project, Web Setup Project, and Cab Project. The Setup Wizard is provided to step you through the process of creating deployment projects. The following are guidelines for choosing the right type of deployment project for your project.

Project type Purpose
Merge Module project (.msm) Package components that might be shared by multiple applications
Setup project (.msi) Builds an installer for a Windows-based application
Web Setup project (.msi) Builds an installer for a Web application
Cab project (.cab) Creates a cabinet file to download to a legacy Web browser
Setup Wizard (.msi) Helps automate the creation of one of the deployment projects mentioned earlier in this table

Merge Module projects allow you to package files or components into a single module to facilitate sharing. The resulting .msm files can be included in any other deployment project but cannot be deployed on their own.

The distinction between Setup and Web Setup projects concerns the location in which the installer will be deployed: For a Setup project, the installer installs files into a Program Files directory on a target computer.
For a Web Setup project, the installer installs files into a Virtual Root directory on a Web server.
Cab projects allow you to create a .cab file to package ActiveX components that can be downloaded from a Web server to a Web browser.


Back to the top

How to create a Setup package
1. Start a new project by doing one of the following: On the File menu, point to New, and then click Project.

-or-
If you have an project open that you would like to create a setup package for, right-click Solution MyProject (where the name of your project is MyProject) in the Solution Explorer, point to Add, and then click New Project.

2. In the New Project dialog box, select Setup and Deployment Projects in the Project Type pane, and then select the type of setup that you want in the Templates pane.

The project is added to the Solution Explorer, and then the File System Editor opens.
3. In the Properties dialog box, select the ProductName property, and then type the name of your product.

Back to the top

How to add files to the Setup package
1. In the File System Editor, select the Application Folder node.
2. Right-click the Application folder, and then on the Action menu, click Add, File. In the Add Files dialog box, browse to select any files that you need to add to your application.

NOTE: If you already have an application project in your solution, you can add the project outputs by selecting Project Outputs instead of File.
3. To add an existing merge module to your setup package (this is not possible for a Cab project), right-click the name of your setup package in the Solution Explorer. Click Add, and then click Merge Module. In the Add Modules dialog box, browse to select any merge modules that you need to add to your application.

Back to the top

REFERENCES
To add a shortcut to your project, browse to the following Microsoft Knowledge Base article:
307358 (http://support.microsoft.com/kb/307358/) How to create shortcuts for a .NET deployment project
To ensure that your files are registered correctly when they are installed, browse to the following Microsoft Knowledge Base article:
307367 (http://support.microsoft.com/kb/307367/) How to register COM objects in Visual Studio .NET
Oct 8 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Andrew | last post by:
I have a problem creating mySQL tables with PHP. I am making an app where a user can create a project. Pressing "submit" on proj_form.php goes to proj_add.php where a couple of things happen. ...
5
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been...
4
by: Bruno van Dooren | last post by:
Hi, i have worked with visual studio for a long time, and would like to have a project template that represents a custom project that is used a lot. (Visual studio .NET 2003) the goal is that...
6
by: Vaclav Jedlicka | last post by:
Hi all Is it possible to create an ASP.NET project from code? Thanks in advance Vaclav
1
by: soni29 | last post by:
hi, i'm running windows 2000 and Internet Information Services 5.0, that's the version that the help file for iis shows, i'm using Visual Studio ..Net 2002 (version 7) but whenever i try to create...
4
by: jaredea | last post by:
I have the following setup: SBS 2003 Server Windows 2003 Enterprise Server (setup as an Application Server) Windows XP Pro Desktop Both the Application server and desktop have Visual Studio...
4
by: Alan Mailer | last post by:
Again, I'm new to VB.net and there is something I need help with: Like (I assume) many of us, over time I want to be able to create some VB.net classes that I might want to use in more than one...
2
by: cmrchs | last post by:
Hello, I installed Visual Studio 2008 last week, created a web project and could run it. I had to deinstall it for some problems I had, installed it again, try to create a new web-project but...
2
by: =?Utf-8?B?V29ua28gdGhlIFNhbmU=?= | last post by:
Hello, I have an existing (WPF) Class Library project that I'd like to add a WPF Custom Control to. However, when I try to Add New Item, that isn't one of the available options. Perhaps this...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.