Results 1 to 5 of 5

Thread: Wrong version of app being published

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    12

    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

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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.
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    12

    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

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    12

    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
  •  



Click Here to Expand Forum to Full Width