Results 1 to 8 of 8

Thread: Update application asynchronously or synchronously

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    Update application asynchronously or synchronously

    So, let me throw up a scenario.

    I have a program I would like to release, has 2 programs within it.

    1. The main program.
    2. A resource utility.

    To release it, i'm going to package them both up using a 3rd party setup maker.

    Now, the question is this.

    I noticed in the snippets...theres 2 options.

    Update application synchronously or asynchronously.

    First, whats the difference between the 2?

    Also, could I utilize that so it'll update from the clickonce, so I dont have to keep repackaging it?

    Also, I want all updates to be mandatory, vs optional like in clickonce default updates..where it gave the user the option to skip.

    Reasoning is, for cracks, hacks, etc, if it is modified, and i notice cracks, etc. it'll update and replace any cracks, etc. No "skip the update, so the hack/crack continues to work".

  2. #2
    Hyperactive Member The Fire Snake's Avatar
    Join Date
    Sep 2009
    Location
    USA
    Posts
    401

    Re: Update application asynchronously or synchronously

    I can't answer your other questions but I can say that in general synchronous means that the app waits for the function to finish before it does something else and asynchronously is that the app continues doing other things while the function is doing something. Then when the function returns, it handles it.
    Remember to click on the scales to the left and rep me if I helped

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    Re: Update application asynchronously or synchronously

    so basically synchronous runs on the main thread, and asynchronous runs on another thread?

  4. #4
    Hyperactive Member The Fire Snake's Avatar
    Join Date
    Sep 2009
    Location
    USA
    Posts
    401

    Re: Update application asynchronously or synchronously

    Quote Originally Posted by TCarter View Post
    so basically synchronous runs on the main thread, and asynchronous runs on another thread?
    I don't know in terms of threads. I haven't used them.
    Remember to click on the scales to the left and rep me if I helped

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Update application asynchronously or synchronously

    Quote Originally Posted by TCarter View Post
    so basically synchronous runs on the main thread, and asynchronous runs on another thread?
    Synchronous means that the task executes on the same thread that initiated it, whether or not that is the main thread. Asynchronous means that the method that initiates the task returns immediate while the task carries on in the background on a different thread.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    Re: Update application asynchronously or synchronously

    I am revisiting this thread as the main concern arrises, is there a way to make all updates MANDATORY vs optional?

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Update application asynchronously or synchronously

    Quote Originally Posted by TCarter View Post
    I am revisiting this thread as the main concern arrises, is there a way to make all updates MANDATORY vs optional?
    That is up to you if you're writing the code to perform the updates, otherwise it's up to the third party update maker.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    Re: Update application asynchronously or synchronously

    In click once, it allows users to skip updates.

    My question is, how could i do it so its mandatory?

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