Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 7th, 2005, 07:25 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
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
Reply With Quote
  #2 (permalink)  
Old December 7th, 2005, 03:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
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
Reply With Quote
  #3 (permalink)  
Old December 8th, 2005, 06:46 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
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
Reply With Quote
  #4 (permalink)  
Old December 8th, 2005, 01:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use the Shell function:

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

Marco
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:06 AM.


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