# Delphi error F1026

**URL:** <https://www.finalbuilder.com/forums/t/delphi-error-f1026/1854>\
**Category:** Discussion\
**Created:** [September 13, 2011, 2:17am UTC](https://www.finalbuilder.com/forums/t/delphi-error-f1026/1854 "2011-09-13T02:17:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [September 13, 2011, 2:17am UTC](https://www.finalbuilder.com/forums/t/delphi-error-f1026/1854/1 "2011-09-13T02:17:34Z")

</div>

I have this special Delphi XE Edition and want to build the EXE. I get a compiler error F1026 because Finalbuilder does expand the environment variable %BDSPROJECTSDIR% to an english default path name instead of the localized. My path points to "C:\Users\xxx\Documents\RAD Studio\Projekte\apLib" but Finalbuilder uses "C:\Users\xxx\Documents\RAD Studio\Projects\apLib" as I see in the.used file. According to my options it should take the path definitions from the registry.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [September 13, 2011, 3:29am UTC](https://www.finalbuilder.com/forums/t/delphi-error-f1026/1854/2 "2011-09-13T03:29:48Z")

</div>

Rad Studio doesn’t add the BDSPROJECTSDIR environment variable to the registry by default, it defines it in the registry, so we have no way of knowing what the default value is. We handle it internally as the default English value as you see.   
  
 The work around is to open XE IDE, Tools , Options, Environment variables, select BDSPROJECTSDIR and then select Add Override, just save it with the value it has. Then go into FinalBuilder, Tools, Options, Embarcadero Delphi, Turn on the “Use Rad Studio XE Environment Variables at Startup”, click ok and then restart FinalBuilder. The BDSPROJECTSDIR variable should now have the correct value.

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [September 13, 2011, 4:14am UTC](https://www.finalbuilder.com/forums/t/delphi-error-f1026/1854/3 "2011-09-13T04:14:38Z")

</div>

Thank you, that did it!
