[wix-users] How to terminate an Update?

Stephen Downard stephen.downard at medfusion.com
Mon Jun 13 08:50:38 PDT 2016


I have modified WixStdBa.dll.  Within OnClose() a class member variable is set to fClose for cancel.  Then cancel is evaluated within OnCacheAcquireProgress and is never equal to True within this method, I don't know why.  The update is not embedded, it is downloaded.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Hoover, Jacob
Sent: Monday, June 13, 2016 11:06 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] How to terminate an Update?

Custom BA or?

I would assume this is because you are using a bundle with embedded payload, in which case I would expect OnCacheAcquireProgress to be called (where you could return IDCANCEL).

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Stephen Downard
Sent: Monday, June 13, 2016 9:53 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] How to terminate an Update?

How can the engine be notified to terminate an update if end-user cancels while the update is being downloaded?  Currently, the engine will proceed to execute the updated Bundle.
I have tried setting m_pEngine->SetUpdate(NULL, NULL, 0, BOOTSTRAPPER_UPDATE_HASH_TYPE_NONE, NULL, 0);

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list