You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is more of an enhancement request for messages sent with session.Message() from a custom action that need user input and a handler implemented in an external UI. Here some context info:
In a custom actions dll, a user input request is made from a method calling session.Message() with a User message type combined to a MessageIcon and a MessageButtons values as follow:
{
...
InstallMessage messageType = InstallMessage.User | (InstallMessage)icon | (InstallMessage)buttons;
return session.Message(messageType, new Record { FormatString = text });
}
So I'm looking for a way to obtain the icons and buttons values set on session.Message(...). One approach would be to make the OnExternalUI() method overridable, another would be to pass the original messageType value to OnMessage() and evaluate the msgType within the OnMessage() method instead. But if there is another way, please let me know.
Thanks for your help.
The text was updated successfully, but these errors were encountered:
* - Issue #902: candle.exe : error CNDL0125 when building bootstrapper application from existing msi and add bootstrapper variable
* Issue #862: I can't seem to get it working
* Issue #900: Preserve messageType value for ExternalUI setup with Custom Actions
* Merge pull request #899 from Q-Sharp/master
* Added Condition Net48_Installed
* Implemented/fixed `WixEntity.ComponentCondition`. Triggered by "How to add Condition to ODBCDataSource #896 "
* Issue #894: LicenseBootstrapperApplication do not add payloads in case of rtf license
* - Added `Process.StartElevated` extension method
Hi,
this is more of an enhancement request for messages sent with
session.Message()
from a custom action that need user input and a handler implemented in an external UI. Here some context info:In a custom actions dll, a user input request is made from a method calling
session.Message()
with aUser
message type combined to aMessageIcon
and aMessageButtons
values as follow:For an external UI, the MSI installation is silent, so no dialog is shown and the display of a message box must be handled by the external UI. The way I currently do this is by overriding the
OnMessage(string message, MsiInstallMessage messageType)
method to be able to return the user input value. But I noticed that themessageType
parameter value get masked and the additional values are discarded on theOnExternalUI()
method as shown in https://github.com/oleg-shilo/wixsharp/blob/79607f655edc025100cae51db147282fd40358bc/Source/src/WixSharp.Msi/WixSharp.Msi/MsiSession.cs#L404:So I'm looking for a way to obtain the icons and buttons values set on
session.Message(...)
. One approach would be to make theOnExternalUI()
method overridable, another would be to pass the originalmessageType
value toOnMessage()
and evaluate themsgType
within theOnMessage()
method instead. But if there is another way, please let me know.Thanks for your help.
The text was updated successfully, but these errors were encountered: