# Cannot create cfg

**URL:** https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679
**Category:** Discussion
**Created:** [January 3, 2011, 11:01am UTC](https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679 "2011-01-03T11:01:24Z")
**Posts on this page:** 10
**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: [January 3, 2011, 11:01am UTC](https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679/1 "2011-01-03T11:01:24Z")

</div>

Hi am running FinalBuilder 7 (EE) (Vista, Delphi XE) and am having trouble getting a build from the build command.

The build folder is d:\builder\build\delphi.

My project uses a 3rd party component (TMS&nbsp;Software's Flexcel) installed on a different folder.&nbsp;

When I run the FB project, it gets to the build item and then errors:

Error creating cfg file.

&nbsp;-\> Error expanding variables in Library Path :&nbsp;Variable : FLEXCELVCL - does not exist!

I made sure that the building directory is read/write; but when I right click on the folder (d:\builder), it says it's "Read Only". &nbsp;So I reset the flag.&nbsp; But when I check on the properties again, it's back to read only.&nbsp; Am I&nbsp;missing something?

Any help appreciated.

Edmund

&nbsp;

---

<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: [January 3, 2011, 11:57am UTC](https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679/2 "2011-01-03T11:57:40Z")

</div>

[https://www.finalbuilder.com/forum.aspx?aft=10336](https://www.finalbuilder.com/forum.aspx?aft=10336)

---

<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: [January 5, 2011, 6:35am UTC](https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679/3 "2011-01-05T06:35:44Z")

</div>

Thanks Vincent!&nbsp; That worked!

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![mgm\_tf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mgm\_tf](https://www.finalbuilder.com/forums/u/mgm_tf)
#### Post date: [October 19, 2017, 11:29am UTC](https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679/4 "2017-10-19T11:29:21Z")

</div>

Hi Vincent,

i had installed FB8. And Set the Environment variables for Delphi 7. I restarted the FB.

 ![10415_options](https://www.finalbuilder.com/forums/uploads/default/original/2X/2/2f0a029e20f031274f000dded5f2d14c9baf1ea2.png)

Compiler selected is : D:\Delphi\Delphi7\bin\dcc32.exe  
Generating compiler configuration file…  
Error creating cfg file : D:\Delphi\Progs\mgmWWS\Winmgm.cfg  
–\> Error expanding variables in Library Path : [Expression Error]: Variable\Object “Everwood” does not exist! [phi)\Projects\Bpl;$(Everwood?)\Bin;$(RemObjects SD]

---

<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: [October 19, 2017, 12:31pm UTC](https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679/5 "2017-10-19T12:31:25Z")

</div>

I don’t have Delphi 7 installed, so not able to test this right now. The variables are read from the registry,   
  
HKLM\Software\Borland\Delphi\7.0\Environment Variables   
  
Have a look and see if that variable is there. Remobjects is adding those values to your library path, so it should have also added them to delphi.

---

<div class="post-metadata">

### Author: ![mgm\_tf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mgm\_tf](https://www.finalbuilder.com/forums/u/mgm_tf)
#### Post date: [October 19, 2017, 6:51am UTC](https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679/6 "2017-10-19T06:51:29Z")

</div>

Hi Vincent,

on FB6 everything works fine.

I use Win10 64Bit

Environment Variables are under:  
Computer\HKEY\_CURRENT\_USER\Software\Borland\Delphi\7.0\Environment Variables

![10415_registry](https://www.finalbuilder.com/forums/uploads/default/original/2X/5/5fce0a4c04bc8290056a96abbe2cb7581dd9b07c.png)

under the LocalMachine i haven’t Environment Variables

Computer\HKEY\_LOCAL\_MACHINE\SOFTWARE\WOW6432Node\Borland\Delphi\7.0

---

<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: [October 19, 2017, 9:09am UTC](https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679/7 "2017-10-19T09:09:32Z")

</div>

I was mistaken, they are under HKEY\_CURRENT\_USER. I will do some testing today and see if I can figure out what is happening. Are you sure you have the correct version of delphi selected on the Delphi Action?   
  
 There were some major changes to how variables work between FB6 and FB7, the delphi action has it’s own variable namespace and virtualises the variables based on the compiler version (to allow multiple versions of delphi to define variables). So those variables are only valid for use in the Delphi action (or in child actions under them, due to how namespaces work).

---

<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: [October 19, 2017, 10:29am UTC](https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679/8 "2017-10-19T10:29:28Z")

</div>

Are you sure you have the option for D7 checked on that options page? I just tested here and it is working fine.

---

<div class="post-metadata">

### Author: ![mgm\_tf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mgm\_tf](https://www.finalbuilder.com/forums/u/mgm_tf)
#### Post date: [October 20, 2017, 7:03am UTC](https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679/9 "2017-10-20T07:03:15Z")

</div>

Hi Vincent,   
 i have uninstall RemObjects, because we don’t use it.   
 I delete everything with RemObject and Everwood in Registry.   
 Now I reload my Project in FB. Now it works.   
  
 Is there a problem with Environment Variables with spaces (REmObjects SDK)?

---

<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: [October 23, 2017, 11:51am UTC](https://www.finalbuilder.com/forums/t/cannot-create-cfg/1679/10 "2017-10-23T11:51:08Z")

</div>

Variables with spaces are not supported.
