|
-
Jul 5th, 2006, 08:43 AM
#1
Thread Starter
New Member
Wrong version of app being published
I have written my first vb.net 2005 app, and used some information I have found on the internet to create a setup file using windows installer.
However, when I do an install, the app that it installs is an early version of the app without the current functionality. It is very strange, as if it is picking up version 0.0.0.1 instead of version 0.0.0.11.
Can anyone help me with how to make it pick up the latest version of the code?
A secondary question is...
I have an access database which is used by this app. Is there any way of specifying where that database is to be located, as I want a client/server type setup where the d/b is on the server and the app on the client PC's.
Help on both these deployment issues would be very much appreciated.
Thanks
Colin
-
Jul 6th, 2006, 03:03 PM
#2
Re: Wrong version of app being published
 Originally Posted by ppirates
I have an access database which is used by this app. Is there any way of specifying where that database is to be located, as I want a client/server type setup where the d/b is on the server and the app on the client PC's.
A separate install for the database, with a registry key (written at database installation time) holding its location for the program to pick up at run time.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Jul 6th, 2006, 03:35 PM
#3
Thread Starter
New Member
Re: Wrong version of app being published
Thanks for your help on this.
I am relatively new to all this, can you explain how I would do that, please.
Thanks
Colin
-
Jul 7th, 2006, 04:01 PM
#4
Re: Wrong version of app being published
How you write a registry key during installation depends on which installer you're using. Write it to HKEY_CURRENT_USER\Software\VB and VBA Program Settings\[Your Program Name Here]\Settings\DBLocation
To retrieve the value when the program runs:
In Form_Load:
strDBLocation = GetSetting(App.EXEName, "Settings", "DBLocation")
If the program is run without the database installed, strDBLocation will be blank.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Jul 7th, 2006, 06:03 PM
#5
Thread Starter
New Member
Re: Wrong version of app being published
Thanks for your help on that, that is really useful information. Haven't seen that documented anywhere, despite efforts to find it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|