Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 7th, 2005, 07:25 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default 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
 
Old December 7th, 2005, 03:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old December 8th, 2005, 06:46 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

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
 
Old December 8th, 2005, 01:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use the Shell function:

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

Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
Product code generator yogeshyl Excel VBA 1 October 3rd, 2007 10:50 AM
Change image to product name zulf BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 June 14th, 2007 12:55 AM
JSP web Development ch-18 struts problem wilson_kwan JSP Basics 0 December 12th, 2004 01:17 PM
JSP web Development ch-18 stuts problem wilson_kwan JSP Basics 0 December 12th, 2004 01:13 PM
Prevent Product Duplicates lucian Dreamweaver (all versions) 1 September 20th, 2003 02:08 PM





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