[wix-users] Run Burn Boostrapper or the MBA Elevated

Sean Hall r.sean.hall at gmail.com
Thu Jul 14 17:18:53 PDT 2016


Yes, that's what I'm suggesting and why I said it would be a pain.  You
can't do it at runtime, because security.

On Jul 14, 2016 7:13 PM, "Huy Doan" <hdoan at vmware.com> wrote:

> Are you suggesting that just find the BundleId of the old bundle then hard
> code it in the new bundle for upgrade? That makes sense but not quite
> convenient.
>
> Is there any possible way to dynamically assign this value at runtime?
>
>
>
> *From:* Sean Hall [mailto:r.sean.hall at gmail.com]
> *Sent:* Thursday, July 14, 2016 5:09 PM
> *To:* Huy Doan <hdoan at vmware.com>
> *Subject:* Re: [wix-users] Run Burn Boostrapper or the MBA Elevated
>
>
>
> You can't choose the guid when you build a bundle, that's true.  But what
> you need is the BundleId of the bundle you're upgrading, although it's not
> very easy to tell what that is.
>
>
>
> On Thu, Jul 14, 2016 at 7:03 PM, Huy Doan <hdoan at vmware.com> wrote:
>
> But this discussion says that the bundle GUID cannot be hard coded.
>
> http://stackoverflow.com/questions/26742831/bootstrapper-guid
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_questions_26742831_bootstrapper-2Dguid&d=CwMFaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkFJxuBFYmMeQ&m=RwmjQ4rsV5H94aKdX5XDRhPtAWFQaUWYHecLPoeSOC4&s=CsNeSm9Zai5YgDxGqdZXP0sWs5ebF_xejNBxJdfArp8&e=>
>
>
>
> *From:* Sean Hall [mailto:r.sean.hall at gmail.com]
> *Sent:* Thursday, July 14, 2016 4:58 PM
> *To:* Huy Doan <hdoan at vmware.com>
> *Cc:* WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> *Subject:* Re: [wix-users] Run Burn Boostrapper or the MBA Elevated
>
>
>
> You have to specify the guid at compile time, you can't use Variables.
> This is to keep the window as small as possible, after all this is
> unelevated code launching an elevated process without a UAC prompt.
>
>
>
> On Thu, Jul 14, 2016 at 6:19 PM, Huy Doan <hdoan at vmware.com> wrote:
>
> One more question on this. How can I pass the PREV-BUNDLE-ID? It tried to
> make it a Burn variable and set in during the DetectRelatedBundle event but
> it does not work. Below is the portion of the log.
>
> [13A0:0DCC][2016-07-14T16:16:14]i600: LaunchApprovedExe begin, id:
> PreviousVersion
> [0404:01C0][2016-07-14T16:16:14]i601: Searching registry for approved exe
> path, key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{[RelatedBundleId]},
> value: 'BundleCachePath', win64: no
> [0404:01C0][2016-07-14T16:16:14]e000: Error 0x80070002: Failed to open the
> registry key for the approved exe path.
> [13A0:0DCC][2016-07-14T16:16:14]i699: LaunchApprovedExe complete, result:
> 0x80070002, processId: 0
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Huy Doan
> Sent: Thursday, July 14, 2016 3:37 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] Run Burn Boostrapper or the MBA Elevated
>
> I think that's something I'm looking for :D. I had an insight from Rob's
> hint but was not quite sure how to implement it. Your solution was
> something I pictured in mind. Thank you so much, Sean.
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Sean Hall
> Sent: Thursday, July 14, 2016 3:03 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] Run Burn Boostrapper or the MBA Elevated
>
> The old bootstrapper is a bundle that's already installed, right?  So it
> should be in the package cache, which is a secure location for
> ApprovedExeForElevation.  I'm not saying that it's not a pain to do it this
> way, but it is possible to manually launch the old bootstrapper elevated
> without showing multiple UAC prompts.
>
> <ApprovedExeForElevation Id="PreviousVersion"
> Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{PREV-BUNDLE-ID}"
> Value="BundleCachePath" />
>
> Engine.LaunchApprovedExe(hWnd, L"PreviousVersion", L"/repair", 0)
>
> On Thu, Jul 14, 2016 at 4:28 PM, Rob Mensching <rob at firegiant.com> wrote:
>
> > Yeah, you're not going to get that to work as is. But it might be a
> > nice thing to improve *in* Burn. Burn already repairs related bundles
> > in other scenarios. Might be interesting to enhance for upgrade rollback.
> >
> > _____________________________________________________________
> >  Short replies here. Complete answers over there:
> > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_
> > &d=CwICAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkF
> > JxuBFYmMeQ&m=mmTWVg5-Xmy1jIs8i6CjJydEiEROHU5MqXNhOdbnNjM&s=_t7SIqFkLds
> > hJt3lccyNyofYJQRsCD-_I0_t6ejw9V0&e=
> >
> >
> > -----Original Message-----
> > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
> > Behalf Of Huy Doan
> > Sent: Thursday, July 14, 2016 1:57 PM
> > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> > Subject: Re: [wix-users] Run Burn Boostrapper or the MBA Elevated
> >
> > I understand and Rob Mensching has had similar answers to many of
> > these questions.
> >
> > The problem I am encountering is when I do an upgrade, I hit cancel
> > and everything rolls back. Then I launch the old bootstrapper silently
> > to repair to make sure that the system is stable after a fail upgrade.
> > The old bootstrapper at launching asks to be elevated one more time
> > and I don't want the UAC prompt to appear in this scenario. Therefore
> > I have tried to elevate the BA or the bootstrapper so when the BA
> > launch the old bootstrapper, the prompt will not appear.
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_
> > &d=CwICAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkF
> > JxuBFYmMeQ&m=mmTWVg5-Xmy1jIs8i6CjJydEiEROHU5MqXNhOdbnNjM&s=_t7SIqFkLds
> > hJt3lccyNyofYJQRsCD-_I0_t6ejw9V0&e=
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=CwICAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkFJxuBFYmMeQ&m=mmTWVg5-Xmy1jIs8i6CjJydEiEROHU5MqXNhOdbnNjM&s=_t7SIqFkLdshJt3lccyNyofYJQRsCD-_I0_t6ejw9V0&e=
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=CwICAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkFJxuBFYmMeQ&m=tDrLmt0bN5si7VnH_4-tKIJdgWYYtUEjnR-kiPA2Hsc&s=QmLI6R1w8zQdRF4tWcoM0uESMwK_-NU9OSodwmX6tM8&e=
>
>
>
>
>


More information about the wix-users mailing list