Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralArabic Language Problem Pin
chcnjg31-Oct-04 16:26
chcnjg31-Oct-04 16:26 
GeneralInstalling Visual Studio Pin
Ryan McDermott31-Oct-04 15:37
Ryan McDermott31-Oct-04 15:37 
GeneralRe: Installing Visual Studio Pin
vcplusplus31-Oct-04 16:13
vcplusplus31-Oct-04 16:13 
GeneralCompile with version.lib Pin
picasso231-Oct-04 14:55
picasso231-Oct-04 14:55 
GeneralRe: Compile with version.lib Pin
vcplusplus31-Oct-04 16:18
vcplusplus31-Oct-04 16:18 
GeneralRe: Compile with version.lib Pin
Steve S31-Oct-04 22:44
Steve S31-Oct-04 22:44 
GeneralDownloader and Install files from the WEB (Like the Windows Updates) Pin
programming31-Oct-04 12:04
programming31-Oct-04 12:04 
GeneralRe: Downloader and Install files from the WEB (Like the Windows Updates) Pin
KRowe31-Oct-04 22:29
KRowe31-Oct-04 22:29 
I would suggest that you abandon the idea of doing it from your browser (the way that win update does). Just a few of the reasons that this is a bad idea are:

* Most network admins have disabled installation of the applet you would need for this.

* In order for the applet to install securely you would need to purchase a certificate from a certificate authority (a fairly expensive proposition considering the alternative is free)

* C++ is completely incapable of doing this unless you develop it using a plug-in (which is a very difficult way of doing such a simple thing). C# and Java are both too limited when ran as applets to make the possibly needed registry changes.

* Even if you got past all of this, it is still far more inconvienent for the user to go find your download section of the website than it is for them to select an option in the menu of the prog they are already using.

* An application can be setup to automaticaly check for newer versions without the user needing to bother with it.

The better way to handle this problem is by using either C# or C++ to write a seperate app that simply downloads the files into the correct directories and makes any registry changes needed.

This application will follow this basic program flow:

1. Check FTP server for newer version of the installation file. A good way to do this is to use a specific file naming convention and comparing that to a set of variables in the main app (in .NET apps this is already availible through the App object). These can be sent to the updater app via the command line, DDE or OLE (whatever you are most comfortable with).

2. If newer file is found, then download.

3. After download completes close any running instances of the main app and run the install app you just downloaded.

If you don't want the user to see an installation wizard each update...you could make your own installation routines that does the same things as an instalation wizard but this will be more difficult for you and only save the user a few occasional clicks. Technically, you should have it first uninstall the old version before installing the new but if you don't do that, it shouldn't cause too many problems as long as you don't register the prog each update. Depending on which installer you are using their should be some way to set that.
GeneralLoading a Resource into a Stream Pin
Member 21854431-Oct-04 12:04
Member 21854431-Oct-04 12:04 
GeneralRe: Loading a Resource into a Stream Pin
Michael Dunn31-Oct-04 18:30
sitebuilderMichael Dunn31-Oct-04 18:30 
GeneralLookup (Dispatch) Table Pin
Member 569752131-Oct-04 11:59
Member 569752131-Oct-04 11:59 
GeneralRe: Lookup (Dispatch) Table Pin
Ryan Binns31-Oct-04 17:51
Ryan Binns31-Oct-04 17:51 
GeneralHide logical disk compeletely Pin
faroqtam31-Oct-04 10:31
faroqtam31-Oct-04 10:31 
GeneralRe: Hide logical disk compeletely Pin
David Crow1-Nov-04 6:21
David Crow1-Nov-04 6:21 
GeneralSome help of how i can send files remotely in network. Pin
faroqtam31-Oct-04 10:09
faroqtam31-Oct-04 10:09 
GeneralRe: Some help of how i can send files remotely in network. Pin
KRowe31-Oct-04 21:03
KRowe31-Oct-04 21:03 
GeneralConnection to MS Access Database Pin
WinAPILearner31-Oct-04 8:08
WinAPILearner31-Oct-04 8:08 
GeneralRe: Connection to MS Access Database Pin
David Crow1-Nov-04 6:27
David Crow1-Nov-04 6:27 
GeneralRe: Connection to MS Access Database Pin
WinAPILearner1-Nov-04 21:34
WinAPILearner1-Nov-04 21:34 
GeneralRe: Connection to MS Access Database Pin
David Crow2-Nov-04 2:30
David Crow2-Nov-04 2:30 
GeneralRe: Connection to MS Access Database Pin
David Crow2-Nov-04 7:48
David Crow2-Nov-04 7:48 
GeneralRe: Connection to MS Access Database Pin
David Crow2-Nov-04 8:04
David Crow2-Nov-04 8:04 
GeneralRe: Connection to MS Access Database Pin
WinAPILearner2-Nov-04 10:09
WinAPILearner2-Nov-04 10:09 
GeneralRe: Connection to MS Access Database Pin
David Crow2-Nov-04 10:24
David Crow2-Nov-04 10:24 
GeneralRe: Connection to MS Access Database Pin
WinAPILearner2-Nov-04 20:12
WinAPILearner2-Nov-04 20:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.