Solved

Publishing a New VB application without a setup program

Posted on 2011-03-16
5
737 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 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

18 Experts available now in Live!

Get 1:1 Help Now