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 6934111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:55:06+00:00 2026-05-27T11:55:06+00:00

We have two applications. Main.exe – which is the main application being updated Update.exe

  • 0

We have two applications.

  1. Main.exe – which is the main application being updated
  2. Update.exe – the program that runs to update Main.exe

My problem is preventing users from getting into the main.exe while updating.

Right now, I am checking for a flag file and if the flag file exists, application.exe immediately.

This is fine except it doesn’t tell the user anything, just kicks them out.

I were to issue a message, the time that it takes for them to respond to the message, the main.exe is in use and cannot be updated.

Any suggestions how I can professionally display a message that the update is in progress, application closing?

btw, I thought about using:

Private Function IsUpdatingPropane() As Boolean
    Try
        Dim UpdateInprocess As String = My.Computer.FileSystem.GetParentPath(Application.StartupPath) & "\update.inprocess"
        If File.Exists(UpdateInprocess) Then

            'Dim Proc As Process
            'Dim ProcInfo As New ProcessStartInfo(Configuration.DataFileLocations & Configuration.GasLibrary & "\vbmsg.exe")
            'ProcInfo.Arguments = String.Format("vbmsg.txt,{0},{1},NIL,NIL,NIL,OK,9996,9997", Configuration.UserId, Configuration.WorkstationId)
            'ProcInfo.WindowStyle = ProcessWindowStyle.Normal
            'ProcInfo.WorkingDirectory = Configuration.DataFileLocations & Configuration.GasLibrary
            'ProcInfo.UseShellExecute = False
            'Proc = Process.Start(ProcInfo)


            Application.Exit()
            Return True
        End If
        Return False
    Catch ex As Exception
        WriteException(ex)
        WriteDebugInfo("VerifyNotUpdatingPropane", "An error occurred while checking for update.inprocess file. Please contact SSS for assistance.", True, ex)
        Return True
    End Try
End Function

but what do I call to display the message?

Thanks in advance!

  • 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-05-27T11:55:07+00:00Added an answer on May 27, 2026 at 11:55 am

    Considering the data we have

    1. Main.exe
    2. Updater.exe

    On update request from Main.exe the Main.exe launches Updater.exe end kills itself.
    Updater.exe does it stuff. To resolving notification problem in case when user clicks on Main.exe again you can, for example, launch the second instance of Updater.exe with some special parameter, which actualy diplays a message and exit from Main.exe. In this case even if user will not close the notification dialog box for a while (cofee pause), you will have contemporary in memory 2 instances of Updater.exe. One is updating, the second simply shows the message and one time message closed leaves the memory.

    In short, move message visualization inside Updater.exe itself, which appears only in case of presence of special command line parameter.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that has two threads. The first one (the main thread)
I have two applications: X and Y. X is the main application and it
I have two applications written in Java that communicate with each other using XML
I have two applications in two solutions in VS2008 that share a common dll,
Let's say I have two applications which have to work together to a certain
The scenario is this We have two applications A and B, both which are
I have here two applications in two different projects in eclipse. One application (A)
I have a DLL that stores classes common to two applications. I'd like to
i am new to android application.I have created two sample applications as Oneproject,Twoproject.when i
I have two activities in Recent Applications. For those that don't know, Recent Applications

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.