[wix-users] Automatic Update Craziness

Stephen Downard stephen.downard at medfusion.com
Wed May 25 13:34:25 PDT 2016


The following comment below is an attempted workaround to the problem previously detailed below.

If I move  "hr = m_pEngine->Plan(BOOTSTRAPPER_ACTION_UPDATE_REPLACE)" to OnPlanComplete( ) the update executable is executed infinitely. Why?


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Stephen Downard
Sent: Wednesday, May 25, 2016 2:07 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Automatic Update Craziness

Utilizing WixExtendedBootstrapperApplication and BAfunctions.dll I can verify and download an update but the downloaded exe will not execute.

Within OnDetectComplete( ) I call:
hr = m_pEngine->SetUpdate(m_updateExeFilePath.GetString(), NULL, size.QuadPart, BOOTSTRAPPER_UPDATE_HASH_TYPE_NONE, NULL, 0);

Within OnPlan( ) I call:
hr = m_pEngine->SetVariableNumeric(L"WixBundleAction", BOOTSTRAPPER_ACTION_UPDATE_REPLACE); <--I added this to see if it would work...
               hr = m_pEngine->Plan(BOOTSTRAPPER_ACTION_UPDATE_REPLACE);

So, if I add a MessageBox( ) within OnPlanComplete( ) the downloaded update will execute (Crazy). However, if removed, the current active bundle will continue to execute.  I've tried simply returning IDOK from OnPlanComplete( ) but that didn't help.  Seems like a string pointer problem but I'm not sure, any thoughts?  Thanks!



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



More information about the wix-users mailing list