473,796 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3393
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******** ******@TK2MSFTN GP05.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********@yah oo.com> wrote in message
news:e%******** ********@TK2MSF TNGP04.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******** ******@TK2MSFTN GP05.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
1789
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> #include <cstdlib> #include <cmath> using namespace std;
8
2449
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 better and more efficient way to write this program. //This program calculates the users Gross Pay and subtracts the tax based off of Marital Status //and the number of exemptions they select #include <iostream>
25
4076
by: Neo Geshel | last post by:
This works: <form> <asp:TextBox id="name" /> <%= name.ClientID %> </form> But this DOES NOT work: <form>
13
2672
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. My probelm.... when I have the user press the update button (which does a post back that loops through the datagrid and updates a database) the field/cell that is filled by the javascript appears to be blank in my update code, even though I can...
1
2888
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 displaying the results, return to the menu to let the user choose another formula or exit. #include <iostream> using namespace std; #include <iomanip> #include <cctype> #include <cmath>
3
28661
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. When connected to the UniVerse database, if a second user runs the program, at the point where the selection executes, the program waits on the lock until the first user's updates are committed. However, when connected to the DB2 database, in the...
23
2271
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 crippled all the constructors. So now all the operations and constructors that were used do is just return BigFloats but no memory is actually accessed at any point, nor is any allocated. However, when I reenable those parts of the constructor that...
3
4488
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 of each unit, and the value of the inventory of that product. In addition, the GUI should display the value of the entire inventory, the additional attribute, and the restocking fee. Here is my Inventory program from 1 to 3: package...
2
1180
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 don't find many information and the help is not very clear for me. Jan
0
13361
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 programatically either from UNIX or Oracle PLSQL. In this Section, I will be explaining about calling a Concurrent program from UNIX using the CONCSUB Command. Pre-requisite: 1. Concurrent Program should be registered in oracle Applications...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9525
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10452
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10169
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.