hmxchooch
Posts: 24
Joined: Tue Apr 07, 2009 6:55 pm

Error 2893 - Long Directory Path

Hi,

Our QA encountered this error with v7.0.1 of Advanced Installer. I am wondering if there is a way to get a better error string.

Bug Report:
Confusing error message when exceding the install path character limit. The current error message reads as though there is an issue with the installer, when the real problem is that the selected path exceeds the character limits.

To reproduce:
1. Run setup.exe
2. Progress through to the Custom Installer screen
3. Set the install path to a series of folders that exceeds 260 characters (ie: C:\asdasfasasfasfasasfasfa<...> for 260 characters)
4. Attempt to install into that path.

Results: The following error message is generated:
'The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2893.'

Expected: Error details that the selected directory path exceeds the character limit.
If I enter another error string into ui_en.ai, can we give this error a custom response? Does this error code appear in any other circumstances?

Thanks for your help!
- Chris
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error 2893 - Long Directory Path

Hi,

For a custom message to appear you must do the following modifications:

- go to ui_en.ail file, from the install path of Advanced Installer, and add the following line:

Code: Select all

   <STRING id="Error.2893" value="Here is the error message that will be displayed."/>
- this is the line that will contain the error message
- after that go to “fragments” folder from the install path of Advanced Installer
- open StaticUIStrings.aip file with a text editor and add the following line next to the other errors references from the file:

Code: Select all

<ROW Error="2893" MessageLocId="Error.2893"/>
- save both edited files
- close your .aip project, if opened.
- open the project, build and run

From now on this error should appear with the message you enter.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”