p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Pro VB 6 (http://p2p.wrox.com/forumdisplay.php?f=73)
-   -   A product development problem. (http://p2p.wrox.com/showthread.php?t=35870)

madhukp December 7th, 2005 07:25 AM

A product development problem.
 
I have a small product software (one application to be distributed to a number of firms) developed using VB6.0. It basically has an EXE file and a config XML file. My problem is that both its configuration and the exe itself needs to be changed frequently (atleast once in a month).

I am updating the configuration details as below. The configuration details are taken from an XML file which I am updating using an update button in the programme. I have put the XML file in a website and users can click the update button on the tool to download this and replace their local copy.

However, I am not able to do the same for the application itself. I can download the new version of application, but not able to replace the working one becuase of sharing violation. Is there any way I can create a patch application, allow it to be downloaded and and run it to replace the exe file ?

I have seen the working of PC-Cilin into which I can download virus patterns. But, it has got a feature to change its engine itself. I am trying to mimic this feature.

May anybody tell me some solutions ?

Thanks

Madhu

marcostraf December 7th, 2005 03:07 PM

I would use a separate "upgrade" application. There are many ways to do it, this is one.
Prompt a message saying "application restarting, please wait", start the "upgrade" application and quit. The new app shows a form with a simple message (like waiting...) and starts a timer. In the timer event (few seconds, to give time to the main application to end, or just check when the main app is no longer running) delete the old version, download the new exe, start it and quit the "upgrade" app. The "upgrade" app needs to be installed only once

Marco

madhukp December 8th, 2005 06:46 AM

Thanks for this reply. Baiscally, I have to create another application for update. But, I don't know how to call another vb application from within my application. May I know how I can do this ?

thanks

Madhu

marcostraf December 8th, 2005 01:44 PM

use the Shell function:

http://msdn.microsoft.com/library/de...vafctShell.asp

Marco


All times are GMT -4. The time now is 12:17 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.