WixUIValidatePath
(1)
LicenseAgreementDlg
(1)
VerifyReadyDlg
(1)
InstallDirDlg
(1)
InvalidDirDlg
(1)
InstDirDlg
(1)
WixUI
(1)
BrowseProperty
(1)

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

Asked By Neela Megha Shyam C
13-Nov-09 12:04 AM
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





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




I am facing this error:-


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.

check the below link

Neela Megha Shyam C replied to Neela Megha Shyam C
13-Nov-09 05:34 AM
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.

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

Sebastian Brand replied to Neela Megha Shyam C
13-Nov-09 08:23 AM
Hello,

I think the Value in "3." is wrong, should be without brackets, i.e.
3. <Publish Dialog=3D"InstallDirDlg_MY" Control=3D"Next"
Event=3D"SetTargetPath" Value=3D"WIXUI_INSTALLDIR" Order=3D"1">1</Publish>


Best regards,
Sebastian Brand

Deployment consultant
E-Mail: sebastian@instyler.com

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



ialog" Value=3D"InstallDirDlg_MY">LicenseAccepted =3D "1"</Publish>
og" Value=3D"LicenseAgreementDlg">1</Publish>
etPath" Value=3D"[WIXUI_INSTALLDIR]" Order=3D"1">1</Publish>
n" Value=3D"WixUIValidatePath" Order=3D"2">NOT WIXUI_DONTVALIDATEPATH</Publ=
ish>
alog" Value=3D"InvalidDirDlg" Order=3D"3"><![CDATA[NOT WIXUI_DONTVALIDATEPA=
TH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
og" Value=3D"VerifyReadyDlg" Order=3D"4">WIXUI_DONTVALIDATEPATH OR WIXUI_IN=
STALLDIR_VALID=3D"1"</Publish>
=3D"_BrowseProperty" Value=3D"[WIXUI_INSTALLDIR]" Order=3D"1">1</Publish>
20" Height=3D"18" Property=3D"WIXUI_INSTALLDIR_MY" Indirect=3D"yes" />
log InstallDirDlg_MY is invalid
. This may indicate a problem with this package. The error code is 2872. Th=
e arguments are: InstallDirDlg_MY, ,
e installer has encountered an unexpected error installing this package. Th=
is may indicate a problem with this package. The error code is 2872. The ar=
guments are: InstallDirDlg_MY, , "
tutorials/aspnet/06837647-449c-4b1a-8be8-3...
Post Question To EggHeadCafe