473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to update program when user double-clicks icon

When a user launches the program, I want it to test if an update is
available.
You see many examples of this method to update. (Quickbooks, Norton
AntiVirus, online games)

I have a method already to determine if an update is available and download
it to the end-users computer. It does not automatically run the update.
The plan is let the user choose to update when they go to launch the
program. I was thinking of a loader screen that pops up first and allows
the user to continue.
If the user decides to run the update, this loader screen would need to
launch the setup.exe.

My problem is you cannot update a program you are currently running. What
is the best way to launch the setup.exe, and quit the running program? I
need to be certain that the program has shutdown before the update can
begin.
Thanks in advance.

Dan




Apr 20 '06 #1
2 3368
VJ
You could write a wrapper program that will call either your application or
the setup.exe.. So your logic checking for updates will be in the wrapper
program.

Just as a FYI you may want to look into BITS ( articles available in that
name in MSDN ), it provides methods and functions to do a windows like
update.. It also has features to update the updater.exe i.e the currently
running program, we have it implemented for our software updates..

Vijay

"Dan Tallent" <sp**@microsoft.com> wrote in message
news:O3**************@TK2MSFTNGP05.phx.gbl...
When a user launches the program, I want it to test if an update is
available.
You see many examples of this method to update. (Quickbooks, Norton
AntiVirus, online games)

I have a method already to determine if an update is available and
download it to the end-users computer. It does not automatically run the
update.
The plan is let the user choose to update when they go to launch the
program. I was thinking of a loader screen that pops up first and
allows the user to continue.
If the user decides to run the update, this loader screen would need to
launch the setup.exe.

My problem is you cannot update a program you are currently running.
What is the best way to launch the setup.exe, and quit the running
program? I need to be certain that the program has shutdown before the
update can begin.
Thanks in advance.

Dan




Apr 20 '06 #2
BITS appears to be used mainly for the actual download of files to the
end-user. I already have something that preforms this function.
It appears that BITS has the same issue, where your program (wrapper) that
is set to receive the Call Backs will be In-Use when the download is
complete.

Unfortunately, my experience with C is limited. I believe the examples I
found for BITS are based on the software waiting for the download. I have
written a routine to have the file downloaded slowly in the background
during "idle" time. All I require is a method to launch the file that is
already on my hard disk.

The main issue is, some of the files that need updated (wrapper) are still
in use when the user clicks "Update Now".

I will read more on BITS, but I think its not really what I need.

Thanks for your help
Dan


"VJ" <vi********@yahoo.com> wrote in message
news:e%****************@TK2MSFTNGP04.phx.gbl...
You could write a wrapper program that will call either your application
or the setup.exe.. So your logic checking for updates will be in the
wrapper program.

Just as a FYI you may want to look into BITS ( articles available in that
name in MSDN ), it provides methods and functions to do a windows like
update.. It also has features to update the updater.exe i.e the currently
running program, we have it implemented for our software updates..

Vijay

"Dan Tallent" <sp**@microsoft.com> wrote in message
news:O3**************@TK2MSFTNGP05.phx.gbl...
When a user launches the program, I want it to test if an update is
available.
You see many examples of this method to update. (Quickbooks, Norton
AntiVirus, online games)

I have a method already to determine if an update is available and
download it to the end-users computer. It does not automatically run the
update.
The plan is let the user choose to update when they go to launch the
program. I was thinking of a loader screen that pops up first and
allows the user to continue.
If the user decides to run the update, this loader screen would need to
launch the setup.exe.

My problem is you cannot update a program you are currently running. What
is the best way to launch the setup.exe, and quit the running program?
I need to be certain that the program has shutdown before the update can
begin.
Thanks in advance.

Dan





Apr 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Protoman | last post by:
Hey, is this program right? It calculates the average, harmonic mean, quadratic mean, and the standard deviation for two numbers. Can you proofread it for me? Here it is: #include <iostream>...
8
by: brian.digipimp | last post by:
I turned this in for my programming fundamentals class for our second exam. I am a c++ newb, this is my first class I've taken. I got a good grade on this project I'm just wondering if there is a...
25
by: Neo Geshel | last post by:
This works: <form> <asp:TextBox id="name" /> <%= name.ClientID %> </form> But this DOES NOT work: <form>
13
by: Lyners | last post by:
I have a web page writen in ASP.NET that contains some javascript so that when a user presses a button, or edits a certain field in a datagrid, another cell in the datagrid is filled with a value....
1
by: confusedprogrammer | last post by:
In the program below i need to get it, so that it will keep going through the program asks all the question and displays the results and goes back to the beginning if the user didn't select. After...
3
by: jbutler8192 | last post by:
Hello. We have a multi-user Java application that can connect to either a UniVerse database or a DB2 database on an AS400 through JDBC. The program executes a SELECT ... FOR UPDATE statement....
23
by: mike3 | last post by:
Hi. I seem to have made some progress on finding that bug in my program. I deactivated everything in the bignum package that was used except for the returning of BigFloat objects. I even...
3
by: 100grand | last post by:
Modify the Inventory Program to use a GUI. The GUI should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price...
2
by: JR | last post by:
Hi, How can I almost complete automatic update the exe files when there is a new version on the net. offcorse when the user accepts. I work with 2005. I know I need to work with deploy but I...
0
amitpatel66
by: amitpatel66 | last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations: Concurrent programs can be executed...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.