Solved

Publishing a New VB application without a setup program

Posted on 2011-03-16
5
739 Views
Last Modified: 2012-08-13
I'm using Visual Basic Express 2008.  Every time I create a new version of an application, I publish it, a new setup program is created, I go to every computer on our network, uninstall the old version and run the setup program to install the new version.  Instead, I want to put the new .exe (and whatever other files are required) on a Server computer so everyone on the LAN can run the program using a shortcut to this executable.  This way I won't have to go to each computer that runs the program.  However, when I specify a network location as the output path I get a message that says the path is not trusted.  Also, I tried building the application to the default \bin\releases\ folder and copying the files to the server but the program wouldn't run from the server or any of the clients if I do that.  What's the best way to publish a new version of a vb program without having to change any of the client computers?
0
Comment
Question by:Declan_Basile
  • 3
  • 2
5 Comments
 
LVL 27

Expert Comment

by:MikeToole
ID: 35154938
What you're looking for is "ClickOnce" deployment.
The express editions of Visual Studio don't have this on the menu, but it seems it can still be done:
http://blogs.msdn.com/b/vbteam/archive/2008/10/02/looking-for-setup-and-deployment-project-templates.aspx

Google ClickOnce for more info.
0
 
LVL 1

Author Comment

by:Declan_Basile
ID: 35158626
Thank you, the link was helpful.  Should I select for the application *NOT* to be available offline?  Otherwise I'm worried that I'd have to unistall and reinstall the program on every client computer every time I publish a new version.  Would I create a problem if I selected "copy local" for microsoft office dll's that the program requires?  I'm worried that if the computer running the setup program already has office on it (either the same version or a different version of office) that this would cause a conflict if the files are copied to the client computer resulting in the computer having more than one copy and potentially more than one version of a dll file.
0
 
LVL 27

Accepted Solution

by:
MikeToole earned 500 total points
ID: 35159043
ClickOnce is designed to check for new versions automatically when an application is installed in OffLine mode.  
It can be configured to check every time the user executes the application, or once a week, every x weeks, etc.
If you've published a new version (in the same way as the first one) it should auto install the changes.
However, I don't have experience of complex installations - e.g. installing Office as part of the application - so I'm not sure of the details there, but there's more about it here:
http://www.code-magazine.com/articleprint.aspx?quickid=0601041&printmode=true
0
 
LVL 1

Author Closing Comment

by:Declan_Basile
ID: 35160543
I just finished reading the article.  It went over exactly what I needed to know.  It was perfect, I think because it was written by the ClickOnce Project Manager at Microsoft.  The link is much appreciated.  How did you find this article?  I searched all over the internet and didn't find anything this useful.
0
 
LVL 27

Expert Comment

by:MikeToole
ID: 35160806
Declan,
I knew that ClickOnce existed and that it was aimed at the situation you described, although I've never used it myself.
First step was to Google "ClickOnce" with Visual Studio Express to get information on how to use it when you don't have the full product.
Second step was to look into a Visual Studio book I have to confirm my understanding of the features, then to Google (or was that Bing?) for more detail.
Glad to help,
Mike
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now