Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 3rd, 2007, 12:58 PM
Authorized User
 
Join Date: Jul 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default CLICK ONCE AND THE APPLICATION REFRENCE?


I have developed two programs so far in VB2005 (not express). I really love the click once deployment feature. it all seems to work great.

Now to the question...

When the program gets installed it creates an "application reference" in the start menu of the user who installed it. Reading MSDN, it "seems" the actual EXE is embedded somewhere in the local settings folders somewhere. We want to install my 2nd app on a server and add it as a scheduled job. My administrator is a bit wary of doing this since she can't see exactly where the exe is going to run from etc.. is there anyone who can explain this a bit more simply that MSDN did?
 
Old January 3rd, 2007, 01:16 PM
Authorized User
 
Join Date: Nov 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ef1196
Default

Even though you may start the application from a network share the app will installed and run from the user's "Local Settings" folder.

Example:

C:\Documents And Settings\UserName\Local Settings\Apps\2.0\....
Below \Apps\2.0 the directories will be named randomly.

Put the following in your Form_Load statement and you will get a general idea of the location:

MsgBox(My.Application.Info.DirectoryPath)

The significant advantage that I have found using this deployment method is that an app can be updated without having to worry about having all users exit the program first.



Best Regards,
Earl Francis
 
Old January 3rd, 2007, 01:51 PM
Authorized User
 
Join Date: Jul 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the quick reply. I saw a post somewhere that said that any user can run the application. All you have to do is copy the "application reference" from the start menu to another location. Do you know if this is true? or does each user have to install it?

Thanks again!
 
Old January 3rd, 2007, 01:57 PM
Authorized User
 
Join Date: Nov 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ef1196
Default

Generally speaking, you can just point a user to the location of the .application file (by creating a shortcut for instance) and then they will be prompted to install the app.

Obviously if you don't want everyone running an application then directory rights or programmatic rights should be used to ensure that only the correct users can access the program.



Best Regards,
Earl Francis





Similar Threads
Thread Thread Starter Forum Replies Last Post
Application.exit() fails to terminate application. saumya General .NET 1 January 4th, 2008 09:50 AM
Object refrence not set to an instance of an obj viral648 ASP.NET 1.0 and 1.1 Professional 1 January 2nd, 2007 01:11 PM
Right-Click or Double-Click Combobox? panuvin C# 2005 3 June 15th, 2006 04:30 PM
How to refrence acces Indexes table method Access 6 July 19th, 2005 05:03 AM
Run a web page in java application on button click mathsyaka Java GUI 3 July 2nd, 2003 11:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.