[wix-users] Deferred custom action - communication

Edwin Castro egcastr at gmail.com
Tue Apr 12 10:18:44 PDT 2022


The MSI architecture pushes a model where you make decisions first and then
execute them. If possible you should decide on the data in an immediate
custom action, populate properties accordingly, then pass that data to a
deferred custom action (or standard action if already available) to make
the changes.

It sounds like the data is generated in the act of making the changes and
you just want to report the generated data. How would you report the data
on a silent install? Perhaps that might suggest a communication mechanism.

--
Edwin G. Castro


On Tue, Apr 12, 2022 at 6:50 AM Coryat, Jim <Jim.Coryat at softprocorp.com>
wrote:

> This message was sent securely using Zix®
> <http://www.zixcorp.com/get-started/>
>
> Then really with this scenario the best you could hope for is to pop a
> notification from the CA with the discovered values?
>
>
>
> *From:* Edwin Castro <egcastr at gmail.com>
> *Sent:* Monday, April 11, 2022 6:37 PM
> *To:* WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> *Cc:* Coryat, Jim <Jim.Coryat at softprocorp.com>
> *Subject:* Re: [wix-users] Deferred custom action - communication
>
>
>
> IMPORTANT NOTICE - This message sourced from an external mail server
> outside of the Company.
>
> This only works with immediate custom actions.
>
>
>
> Communication is only one-way for deferred custom actions, from the
> session to the deferred custom action via CustomActionData.
>
>
>
> --
> Edwin G. Castro
>
>
>
>
>
> On Mon, Apr 11, 2022 at 2:19 PM Coryat, Jim via wix-users <
> wix-users at lists.wixtoolset.org> wrote:
>
> What I have done is to create\update a property with that value using the
> session object which will then be available in the installer context which
> you can then display on the exit dialog.
>
> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> Alex Earl via wix-users
> Sent: Sunday, April 10, 2022 6:59 PM
> To: wix-users at lists.wixtoolset.org
> Cc: Alex Earl <slide.o.mix at gmail.com>
> Subject: [wix-users] Deferred custom action - communication
>
> IMPORTANT NOTICE - This message sourced from an external mail server
> outside of the Company.
>
> Hi Everyone,
>
> I'm new to the list, looking forward to learning more! I am currently
> working on the MSI installer for the Jenkins open source project. When
> Jenkins starts for the first time, it creates a file that contains a
> temporary administrator password on disk. What I would like to do in a
> custom action is wait for that file to be created and then display it in
> the installer on the ExitDlg. My custom action needs to be elevated because
> the file may be in another user's LocalData area. I have the
> username/password for that user because I do a check for service login
> capability using msiext. I have the custom action written, but I am not
> sure how to send data BACK to the wxs so that I can display the temp
> password in the UI. I know with a deferred custom action, you have to use
> CustomActionData in a .NET custom action, but all the information I have
> seen seems to say that it is only one way. Is there a way to do what I am
> trying to do?
>
> Thanks in advance!
>
> Alex
>
>
> --
> Website:
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fearl-of-code.com%2F&data=04%7C01%7CJim.Coryat%40softprocorp.com%7Ce3bff5477d4f450b9e3b08da1b45c06b%7C8a807b9b02da47f3a903791a42a2285c%7C0%7C0%7C637852283648138392%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=WBAdZokKep9WJSzRoZPhQAp7eUIvFW3l34aebtlHgtc%3D&reserved=0
> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fearl-of-code.com%2F&data=04%7C01%7CJim.Coryat%40softprocorp.com%7Cb833080a74de434e928608da1c0bc8f5%7C8a807b9b02da47f3a903791a42a2285c%7C0%7C0%7C637853134207545008%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ReegUCKGfu0d7aWi9%2BgobNOYYKgKw6RhP9zxH%2F9gFEI%3D&reserved=0>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=04%7C01%7CJim.Coryat%40softprocorp.com%7Ce3bff5477d4f450b9e3b08da1b45c06b%7C8a807b9b02da47f3a903791a42a2285c%7C0%7C0%7C637852283648294631%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cv37CoxzXq0G52oQBzc2fPjm%2F6ecyBX3ci%2F7k%2F1okME%3D&reserved=0
> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=04%7C01%7CJim.Coryat%40softprocorp.com%7Cb833080a74de434e928608da1c0bc8f5%7C8a807b9b02da47f3a903791a42a2285c%7C0%7C0%7C637853134207545008%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=XHUHwsv76JYpHL1gkyKxmZ8MMYvUBV4jQEZzDtIIRXw%3D&reserved=0>
> ________________________________
>  NOTICE: The information contained in this message is proprietary and/or
> confidential and may be privileged. If you are not the intended recipient
> of this communication, you are hereby notified to: (i) delete the message
> and all copies; (ii) do not disclose, distribute or use the message in any
> manner; and (iii) notify the sender immediately.
>
>
>
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=04%7C01%7CJim.Coryat%40softprocorp.com%7Cb833080a74de434e928608da1c0bc8f5%7C8a807b9b02da47f3a903791a42a2285c%7C0%7C0%7C637853134207545008%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=XHUHwsv76JYpHL1gkyKxmZ8MMYvUBV4jQEZzDtIIRXw%3D&reserved=0>
>
>
>
> -------------------------------------------------------------------------
> This message was secured by *Zix <http://www.zixcorp.com>&#174*.



More information about the wix-users mailing list