Replies: 5 comments 1 reply
-
I would expect that you can start with the standard template project, then you can replace the public partial class CustomDialog : ManagedForm, IManagedDialog
{ |
Beta Was this translation helpful? Give feedback.
-
Hi Oleg, I have created sample application to utilize common dialog. In both samples I have inherited the CommonDialog in WelcomeDialog only for testing. In both cases, I am able to built the MSI. But MSI is getting error as shown in log.log file created in each folder Summary of error is
|
Beta Was this translation helpful? Give feedback.
-
WixSharp4_CommonDialog_Sample.zip This link should work. |
Beta Was this translation helpful? Give feedback.
-
The problem is caused by the fact that the assembly implementing your CustomDialog is not included in the setup so it's not available at runtime on the target system and your derived class (Form) cannot be instantiated. You can easily correct it with this line: project.DefaultRefAssemblies.Add(typeof(CustomDialog).Assembly.Location); |
Beta Was this translation helpful? Give feedback.
-
Hello, Thanks for the input. I am able to inherit the base dialog created in separate project. It is working in both options by referencing project directly and referencing Nuget package. But my basic problem is resolved. Thanks for your input. |
Beta Was this translation helpful? Give feedback.
-
I have multiple setups and need to create dialogs with same background theme and common functionalities across all the setups.
I was planning to create a library of custom base dialog inherited from ManagedForm and IManagedDialog.
I wanted to use this library to be utilized by all setups in different setup projects.
But I am failing to create such library for Managed Custom Dialog.
I can see it can be done with External Custom UI but I wanted to utilize the functionality of Managed Form.
Do you have any suggestion for any of approach?
Beta Was this translation helpful? Give feedback.
All reactions