Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to resove "Error 2872: The argument of the CheckPath control event Invalid"

1,166 views
Skip to first unread message

neelameghashyamc

unread,
Nov 13, 2009, 12:04:56 AM11/13/09
to
Hi,

I am facing issue with Wix 3.0 InstallDirDlg, WixUI_InstallDir.

I renamed the above two files id like this
InstallDirDlg - InstallDirDlg_MY
WixUI_InstallDir -WixUI_InstallDir_MY
and changed following
<Property Id="WIXUI_INSTALLDIR_MY" Value="INSTALLDIR" />
<UIRef Id="WixUI_InstallDir_MY"/>

and in WixUI_InstallDir_MY changed at following places:-
1. <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg_MY">LicenseAccepted = "1"</Publish>
2. <Publish Dialog="InstallDirDlg_MY" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
3. <Publish Dialog="InstallDirDlg_MY" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
4. <Publish Dialog="InstallDirDlg_MY" Control="Next" Event="DoAction" Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish>
5. <Publish Dialog="InstallDirDlg_MY" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
6. <Publish Dialog="InstallDirDlg_MY" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4">WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"</Publish>
7. <Publish Dialog="InstallDirDlg_MY" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
8. <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg_MY" Order="1">NOT Installed</Publish>

Finally in InstDirDlg_MY
<Control Id="Folder" Type="PathEdit" X="20" Y="100" Width="320" Height="18" Property="WIXUI_INSTALLDIR_MY" Indirect="yes" />

I am facing this error:-
"DEBUG: Error 2872: The argument of the CheckPath control event on dialog InstallDirDlg_MY is invalid
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2872. The arguments are: InstallDirDlg_MY, ,
MSI (c) (F4:D0) [10:24:59:046]: Product: Shyam Test Application 1.0 -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2872. The arguments are: InstallDirDlg_MY, , "

Please help me out in resolving this issue.

EggHeadCafe - Software Developer Portal of Choice
Review: Improving .NET Application Performance
http://www.eggheadcafe.com/tutorials/aspnet/06837647-449c-4b1a-8be8-33c02aac8b91/review-improving-net-ap.aspx

Sebastian Brand

unread,
Nov 13, 2009, 2:03:27 AM11/13/09
to
Hello,

I think the Value in "3." is wrong, should be without brackets, i.e.


3. <Publish Dialog="InstallDirDlg_MY" Control="Next"
Event="SetTargetPath" Value="WIXUI_INSTALLDIR" Order="1">1</Publish>


Best regards,
Sebastian Brand

Deployment consultant
E-Mail: seba...@instyler.com

Instyler Setup - Creating WiX-based MSI installations, elegantly.
http://www.instyler.com

> Review: Improving .NET Application Performancehttp://www.eggheadcafe.com/tutorials/aspnet/06837647-449c-4b1a-8be8-3...

neelameghashyamc

unread,
Nov 13, 2009, 5:34:15 AM11/13/09
to
Please see this link:-
http://sourceforge.net/tracker/index.php?func=detail&aid=2786594&group_id=105970&atid=642714

This is know issue in 3.0 version.

Neela Megha Shyam C wrote:

How to resove "Error 2872: The argument of the CheckPath control event Invalid"
13-Nov-09

Hi,

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice

Poll: What I Hate Most About Windows Vista
http://www.eggheadcafe.com/tutorials/aspnet/adac5a0e-366b-4d8e-8c87-aecfc8013411/poll-what-i-hate-most-ab.aspx

0 new messages