WiX installer fails with error code 2819

旧街凉风 提交于 2019-11-29 03:02:35
saschabeaumont

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!

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}" />
On Freund

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!