If I have a managed Wix Custom Action, is there anyway I can update a Control with the type of Text? I see that a progress bar can be updated by using the session.Message
with InstallMessage.Progress
, but I do not see a way for updating other UI.
相关问题
- How does the setup bootstrapper detect if prerequi
- How to use Control.FromHandle?
- Wix: How can I set, at runtime, the text to be dis
- Replacing in inner Text in open xml element?
- Wix variable name formats with spaces and other ch
相关文章
- Difference between SuspendLayout and BeginUpdate
- How do I require a value in a textbox in a Wix cus
- How to prevent WiX bundle with same UpgradeCode/Ve
- How do I pass a default 'install location'
- Running msiexec from a service (Local System accou
- How to get instance of Panel that holds content of
- Looking for a DataGridView that allows grouping [c
- Can I use msilib or other Python libraries to extr
For a text control you can use a property wrapped in brackets: [SOMEPROP]
Then in your CA you can say session["SOMEPROP"] = "somevalue". Note MSI is wonky about refreshing the UI so you'll pretty much have to transition from one dialog to another to get this to work. In other words, on the next button of the previous dialog call the CA and in the next dialog the text control will display the text.
I found a solution to get this done without having to transition dialogs in order to get it to update.
In your custom action, set a property. Below, I set
INSTALLFOLDER
:In your
Product.wxs
file, make sure toPublish
the property back to the UI in order to get edit boxes to update:So in other words, you do the action, then you must publish the property back onto itself to invoke an update in the control.