Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > Visual Patch 1.0

 
 
Thread Tools Display Modes
  #1  
Old 01-14-2002
scs0 scs0 is offline
Forum Member
 
Join Date: Jan 2002
Posts: 1
Why won't WaitForSingleObject() wait for patch to finish running?

I have an application that includes a Visual Patch patch as a resource. At a certain point in this program the resource is copied out to the harddrive where it is run by calling ShellExecuteEx() on it. After this, WaitForSingleObject() is called to wait for the patch to finish then the file is deleted.

When I run the program, WaitForSingleObject() fails to wait and the program continues before the patch has finished running. What's going on? Why doesn't VC++ recognize that the patch is running? Where does the problem exist?

I'm using VC++ 6.0 on a Windows 98-SE system and Visual Patch is version 1.0. The code works just fine if the app being run is Notepad instead of the patch.

Thanks
  #2  
Old 01-14-2002
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
Re: Why won't WaitForSingleObject() wait for patch to finish running?

Hi,

If you pass your Visual Patch executable the "/W" command line parameter when you execute it everything should work properly.

This command line option will force the Visual Patch launcher to wait until the entire update has completed before exiting.

mark.
__________________
MSI Factory The Next Generation Intelligent Setup Builder
 

Thread Tools
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 On
HTML code is Off



All times are GMT -6. The time now is 12:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software