-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding prompt to CloseApplication prevents installer from completing. #688
Comments
If I use the managed UI the bug occours: project.ManagedUI = ManagedUI.Default; If I use the standard UI the bug does not occour: project.UI = WUI.WixUI_Minimal; |
For reference the error message seen in the logs is coming from here: |
As a workaround it seems you can add this to the ProcessMessage override in ProgressDialog public override MessageResult ProcessMessage(InstallMessage messageType, Record messageRecord, MessageButtons buttons, MessageIcon icon, MessageDefaultButton defaultButton)
{
switch (messageType)
{
case InstallMessage.Error:
case InstallMessage.Warning:
case InstallMessage.User:
var dialogResult = MessageBox.Show(
this,
messageRecord.ToString(),
"[ErrorDlg_Title]".LocalizeWith(Runtime.Localize),
(MessageBoxButtons)(int)buttons,
(MessageBoxIcon)(int)icon,
(MessageBoxDefaultButton)(int)defaultButton);
return (MessageResult)dialogResult;
... However this, unfortunately, will display the message dialog twice |
@oleg-shilo Can you also please consider #692 |
All done. Merged. Txs |
* Added registry values aggregator (`RegKey`): ``` new RegKey(fullSetup, RegistryHive.LocalMachine, @"Software\My Company\My Product", new RegValue("Message", "Hello"), new RegValue("Count", 777)), ``` * Issue #699: Wix Error for ServiceInstaller if at least one ServiceConfig parameter is not specified * Improvements to DigitalSignature to allow loading cert by sha1hash * Implemented custom message dialog instead (of the default MessageBox.Show) for displaying error message (if any detected) during the MSI session. * Issue #688: Adding prompt to CloseApplication prevents installer from completing. * Issue #683. Close MSI Interop handles when getting data from MSI * Issue #672: outdir and BuildMsiCmd fails because the outdir is not created * Issue #670: msi is always creating root folder, even if feature is disabled
When I set
PromptToContinue = true
to a within aCloseApplication
, the prompt dialog doesn't return the correct return code and so no matter which button is pressed "Abort"/"Retry"/"Ignore" the installer fails:The log is as follows
The text was updated successfully, but these errors were encountered: