How to get context menu for edit fields in WIX 3.6?

Yesterday, I looked at the error that was reported to some of my work installer code, and found that right-clicking does not open the context menu for any of our installers.

The context menu is displayed for fields with passwords, so the insertion thinks that this is a parameter that I missed when the documentation popped up, but I did not see anything on Google.

This is mistake? Missing customization or design feature?

The code is very simple and like this:

(Working register: password field)

<Control Id="Label2" Type="Text" X="15" Y="123" Width="85" Height="18" Transparent="yes" Text="Password:" /> <Control Id="Edit2" Type="Text" Password="yes" X="100" Y="120" Width="235" Height="18" Property="PASSWORD" Text="[PASSWORD]" ToolTip="The password for the activation service to register the application." /> 

(Bad Case: Edit or Text Box)

  <Control Id="Label1" Type="Text" X="15" Y="103" Width="80" Height="18" Transparent="yes" Text="Username:" /> <Control Id="Edit1" Type="Edit" X="100" Y="100" Width="235" Height="18" Property="ACTIVATIONUSERNAME" Text="[ACTIVATIONUSERNAME]" ToolTip="The username for the activation service to register the application." /> 

Cheers j

PS I checked WIX 3.5 and the same problem occurs.

+4
source share
1 answer

I have seen many times that the MSI wizard does not have a context menu in the editing blocks. I assume this is a Windows Installer error (or feature). It subclasses all standard controls, i.e. Changes their WndProc to a new one, in which case it may block the context menu, possibly inadvertently.

+4
source

Source: https://habr.com/ru/post/1380128/


All Articles