WiX installer fails with error code 2819

后端 未结 3 1751
终归单人心
终归单人心 2020-12-16 11:03

I am trying to create an installer using WiX which doesn\'t show the license agreement at the start. But I get the error as below.

相关标签:
3条回答
  • 2020-12-16 11:50

    Error code 2819 means "Control [3] on dialog [2] needs a property linked to it" (taken from Windows Installer Error Messages). If you extract the MSI traces (add /l*v to the command line) you'll be able to see what [3] and [2] stand for, and continue debugging from there.

    0 讨论(0)
  • 2020-12-16 11:51

    Removing that gets the following error in the MSI logs:

    DEBUG: Error 2819:  Control Folder on dialog InstallDirDlg needs a property linked to it
    

    Basically this means that the "browse for folder" control isn't linked up to an actual property value. You've used the value INSTALLLOCATION for the application folder - which in turn means you'll need to add the following value to link the dialog:

    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" />
    

    Good luck!

    0 讨论(0)
  • 2020-12-16 11:56

    My experience is: you should add Property attribute in Control tag. Like:

    <Control Id="NameEdit" Type="Edit" X="45" Y="85" Width="220" Height="18" Property="USERNAME" Text="{80}" />
    
    0 讨论(0)
提交回复
热议问题