Looking for Setup and Deployment Project Templates? (Mary Lee)

Published 02 October 08 04:34 PM

Let's say that you've developed an application using the free Visual Studio Express Edition. Now, you want to deploy your application to the masses, and you read documentation about How to: Create or Add Deployment Projects.

Here's how the topic starts:

To create a new deployment project

  1. On the File menu, point to Add, then click New Project.

  2. In the resulting Add New Project dialog box, in the Project Types pane, open the Other Project Types node and select Setup and Deployment Projects.

  3. In the Templates pane, choose the type of deployment project you want to create. For more information, see Setup and Deployment Projects.

In this example, I'm using Visual Basic 2008 Express Edition.  However, when I open the New Project dialog box, there isn't an Other Project Types node.

VBE2008

The Other Projects Types node is only available in Standard Edition or higher (such as Professional Edition and Team System Edition).  Also, you cannot download the Setup Project templates and add them to Visual Studio Express Edition.

Here, you discover that Visual Studio Express Edition is free, but limited.  All of the following versions of the Express Editions have the same limited functionality: Visual Basic 2005 Express Edition,Visual C# 2005 Express Edition, Visual C++ 2005 Express Edition, Visual Basic 2008 Express Edition,Visual C# 2008 Express Edition, and Visual C++ 2008 Express Edition.

All hope is not lost!  You can use ClickOnce Deployment to easily share your application with the masses. The ClickOnce Publish Wizard can easily generate a setup.exe to check for and install prerequisites such as the .NET Framework or SQL Server Express Edition.  The published files can be copied to a CD, Web site, or network file share where users can download and install your application.  ClickOnce can also easily update your application as you incorporate customer feedback and add features.

I created a Web browser based on Creating Your First Visual Basic Program and Video How to: Creating Your First Visual Basic Program.  Now, I'll show you how to use the Publish Wizard in Visual Basic 2008 Express Edition to deploy this application to a network file share. 

1. In Solution Explorer, right-click the solution name and click Publish.

sol

You'll see the Publish Wizard open.

2. Type the location where you want Visual Studio to copy the files, and click Next. This location is called the Publish Location.

sol2

3. Type the location where your end users will install your application from, and click Next.  This location is called the Install Location. These two locations are separate in case you do not have write access to the network file share.  In that case, you would copy the files to your local computer, and an administrator would copy the files to the network file share.

image

4. Choose where the application is going to be run from, and click Next. If you select "available online or offline," the application is installed onto the end user computer.  If you select "only available online only," the application is run from the Install Location.

image

5. In the final screen of the Publish Wizard, click Finish.

image

6. Open the network file folder, and verify that all the files are copied there.  End users can open the Browser.application, publish.htm, or setup.exe files to start the installation.

image

For step-by-step instructions about how to publish to a Web site or CD, see How to: Publish a ClickOnce Application

OK, let's test the installation. 

7. Open file location where the application installer is located. 

image

8. In the publish.htm file, click launch or Install.

image

You'll see the Launching Application dialog box appear momentarily.

image

9. In the ClickOnce Trust Prompt, click Install.  If you don't want your users to see this prompt, you can sign your solution with a code-signing certificate.

image

10. Test your application.

In the Visual Basic Browser application that I created, I entered http://www.microsoft.com and clicked Go!!!!!! to see my application work successfully on my test computer.

image

These instructions apply to the Visual Basic and Visual C# Express Editions.  The Visual C++ Express Edition development environment doesn't have the ClickOnce Publish Wizard, but you can perform the steps in the Visual Studio command prompt. For more information, see ClickOnce Deployment for Visual C++ Applications.

Enjoy deploying your applications!

Mary Lee, Programming Writer.

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Looking for Setup and Deployment Project Templates? (Mary Lee) : EasyCoded said on October 2, 2008 7:41 PM:

PingBack from http://www.easycoded.com/looking-for-setup-and-deployment-project-templates-mary-lee/

# Kandy said on October 5, 2008 5:44 PM:

I found CyberInstaller and it's much easier to use. I'm using ClickOnce lesser and lesser. I found it here: http://www.silvercybertech.com

Keep up the good job Microsoft VB Team guys! Your blog is great!

# david said on October 9, 2008 8:02 PM:

can any one help me develop a program i am trying to do  if any one is intrested email me at dscottish@yhoo.com thanks

# WGVoight said on October 27, 2008 6:31 PM:

I can create a setup OK. The problem that I have is that when it is installed on the target machine, it is only available to the installing user.

There are multiple users using the machine, and I want them to share the program, rather than having 16 different versions--that are all the same! Can you offer any info on how to do this? It used to be easy to check the "Available to all users" box, but I don't see this anymode.

Thanks

Bill

# WGVoight said on October 28, 2008 10:26 AM:

I think I've discovered how to do it, although somewhat surprised and concerned that this is a determination that is made by the developer and not the installer!

Bill

# Dinesh said on October 29, 2008 5:33 AM:

Well WIX would be a better and cost effective option to create a setup package with or without the Visual Studio since it can be run from the cmd line and the Setup projects created are equally impressive (or in some cases better than the regula setup)

# WGVoight said on October 30, 2008 12:47 PM:

Thanks for the tip, Dinesh. I'm getting into WiX, which looks like what should have been in VS2008. I wish just once there would be a development environment that didn't require a boatload of add-ons just to work properly.

# VC Beginner said on December 13, 2008 1:30 AM:

Thank so much for the article.

I went through the documentation and spent a lot of time searching for  Other Project Types!

I'm using Visual C++ 2008 Express, and I cannot find a Publish option. What should I do? Could you please explain the above procedure in the context of Visual C++ express edition project?

# VSTO Team said on December 17, 2008 6:53 PM:

hi VC Beginner,

please see the last paragraph of this article for a link to the ClickOnce and C++ guide.  there isn't a UI for ClickOnce and C++, but you can generate the ClickOnce manifests in the Visual Studio 2008 command prompt that is included with Visual C++ 2008 Express Edition.

m.

# Robert said on December 29, 2008 4:12 PM:

WGVoight, you indicated that you might have a solution for installing the application for ALL users, rather than the user who's logged in. Can you publish that information?

# sdemuth@earthlink.net said on January 9, 2009 1:52 PM:

I too can only use this if I can install a program for all users on a machine.  Please publish any available information.

# Rahul said on March 10, 2009 1:55 AM:

I want to use it in Windows Application . Can You say How can I publish a windows application ?

# carlos said on March 19, 2009 3:11 PM:

i have an aplication on vb net been published to work online or ofline but the publish setup file only create a regenrece to the project on the local user computer but i also want to install a folder on the user local computer under same root (sample c:\\\\aplication\ where should be the executable and a fodler named reports to be used with this code \\\app.path\reports )

can this be posible?

Thanks.

# jaslysahal said on May 16, 2009 2:25 AM:

hai,i created a project in vb.net 2008,and i made a set up of it also..

when i tried to install the project on other system,

after,security warning comes,their comes one more window,,,,like the set up cant be published,

do anyone know about this?????????????/

please answer me.

# VB-Nerd said on May 16, 2009 7:20 AM:

The WiX-Plugin "Votive" for Visual Studio will NOT work with the Express Editions...so far, this again an example for MS License Policy (*committing*)

see here:

http://wix.sourceforge.net/votive.html

# PD said on July 17, 2009 5:26 AM:

how can we add an image/icon to the setupfile

# VSTO Team said on July 17, 2009 11:58 AM:

there is a how-to topic about adding and removing icons to setup projects at http://msdn.microsoft.com/en-us/library/syyw4edd(VS.100).aspx

m.

# VBAsker said on July 30, 2009 9:03 AM:

hi, i published a vb 2008 file and when i saw the icon of my published application, i was stated "application manifest". Is this suppose to be correct after anything from vb 2008 is published?

Thanks in advance!

# VSTO Team said on July 30, 2009 10:00 AM:

hello,

that is correct. ClickOnce creates two XML files: an application manifest and a deployment manifest.

1. the application manifest describes your VB 2008 file and any files that are used (data files, assemblies, etc).

2. the deployment manifest describes how your VB file is installed and what version your customers should use.

for more information, see the section titled How ClickOnce Deployment Works at http://msdn.microsoft.com/en-us/library/t71a733d(VS.100).aspx.

m.

# Gunwant Singh said on September 9, 2009 1:26 AM:

installing the application for ALL users, rather than the user who's logged in. Can you publish that information?

# Gunwant Singh said on September 9, 2009 1:28 AM:

in windows 2008 installing the vb application for ALL users, rather than the user who's logged in. Can you publish that information?

# VBTeam said on September 9, 2009 1:59 AM:

ClickOnce applications are designed to be per-user installations only. This limits access to computer resources and operations. For more information about ClickOnce security, see http://msdn.microsoft.com/en-us/library/76e4d2xw(VS.100).aspx.

Windows Installer can install to all users, but these project templates are not included in any Express Edition. If you are using Visual Studio Standard, Professional, Enterprise, or some combination thereof, see How to: Specify Per-user or Per-computer Installation at http://msdn.microsoft.com/en-us/library/445kc47k.aspx

m.

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

This Blog

Syndication

Page view tracker