Passing the bootstrapper window handle to subsequent processes in Wix5 #8171
Unanswered
tom-englert
asked this question in
Questions
Replies: 1 comment
-
I had the same issue when upgrading to Wix4. My solution was to use EnsureHandel(). In my Model class I added a property: Then using this property in OnPlanComplete: In my Run function I assigned the propery: Hope this will help you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm actually migrating my Wix BA to Wix5, and got stuck on this problem:
When upgrading an existing application, the bootstrapper process is started twice, and in the second process only
OnPlanComplete
is called.Now from
OnPlanComplete
I callengine.Apply(_windowHandle)
, however since this is a new process, andRun
has never been called in this process, the window handle is zero, andengine.Apply
fails with an argument exception.I can pass the handle to the second process using e.g. shared memory - then repair and upgrade work.
However I wonder if checking the window handle in
engine.Apply
is really correct, e.g. during a silent install there won't be a window and thus no window handle.Beta Was this translation helpful? Give feedback.
All reactions