Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8174441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:27:31+00:00 2026-06-06T22:27:31+00:00

We have a project written in VB.NET using Visual Studio 2008 that is to

  • 0

We have a project written in VB.NET using Visual Studio 2008 that is to be installed on 17 client machines.

We are in the process of launching the project and came accross an issue.

We have created an installer from within Visual Studio and ran the setup.exe on a client machine. All works well but if in the meanwhile we release another update, at startup the user gets a notification saying that a new version of the project is available.

Here is the link to the image as I do not have enough reputation to upload images:
http://postimage.org/image/7l7w6u841/

The problem is that the message box that pops up has an “OK” and “Cancel” button and if the users accidently click “Cancel” their program will not be updated which means that they will be running an older version which can cause issues.

My question is: Is there a way to force the user to update the project at startup, almost like “You either update or you cannot login” type of thing?

Thanks for your time and any help will be greatly appreciated

Fil

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:27:33+00:00Added an answer on June 6, 2026 at 10:27 pm

    The easiest way might be:

    • Have the info about being the latest version number be available on the server
    • Have the application check this before logon
    • failed request should use the number of the running version
    • have the application compare this value with the running version and disallow logon if bigger

    Edit

    Here is some pseudocode, assuming the newest version number is at http://somewhe.re/version.txt

    //Application start
    
    System.Reflection.AssemblyName an=new System.Reflection.AssemblyName(System.Reflection.Assembly.GetExecutingAssembly().FullName);
    Version current_version=an.Version;
    
    String httptext;
    Version server_version=current_version;
    try {
      httptext=//Result from http://somewhe.re/version.txt
      server_version=new Version(httptext);
    } catch {}
    
    if (server_version>current_version) {
      //You must update!
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have C# .net project with SQL Server 2008 written in Visual Studio 2008.
I am using Visual Studio 2010, Windows 7 and IIS. I have written a
Scenario I have a server, that has NO Visual Studio Installed. It literally has
Can you share .NET DLLs (written in VB.NET using Visual Studio) between Full.NET, WindowsPhone,
I am using a DevExpress (10.2) Treelist in my VB.Net project in Visual Studio
Using Visual Studio 2010, I have written a simple WCF service and some integration
I have a Windows service written in C# using Visual Studio 2010 and targeting
I'm currently using the Visual Studio Installer (Setup Project) in Visual Studio 2010 as
I have an ASP.NET MVC 3 (using Entity Framework 4.2) application that uses transactions
I have a .NET component written in C# that needs to register some registry

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.