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
Re: Wrong version of app being published
Quote:
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.
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
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.
Re: Wrong version of app being published
Thanks for your help on that, that is really useful information. :thumb: Haven't seen that documented anywhere, despite efforts to find it.