TMS FlexCel for VCL & FMX v7.22.1.0 installation is failing

I am trying to install TMS FlexCel for VCL & FMX v7.22.1.0 on windows for Embarcadero® Delphi 10.2 Version 25.0.31059.3231

msbuild.exe FlexCel_Core /dtokyo /Win32 /Release

Execute command: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe "C:\Users\morajiv\AppData\Local\tms\Temp\p\tms.flexcel.vcl_dtokyo_win32intel_Release\FlexCel_Core.dproj"  /target:Build /nologo /p:config=Release /p:Platform="Win32" /p:UnitSearchPath="C:\Program Files (x86)\Embarcadero\Studio\19.0\lib\Win32\release;C:\Users\morajiv\AppData\Local\tms\Temp\p\tms.flexcel.vcl_dtokyo_win32intel_Release\Win32\Release" /p:DelphiLibraryPath="C:\Program Files (x86)\Embarcadero\Studio\19.0\lib\Win32\release;C:\Users\morajiv\AppData\Local\tms\Temp\p\tms.flexcel.vcl_dtokyo_win32intel_Release\Win32\Release" /p:DCC_Define="RELEASE;;$(DCC_Define)" 
Working directory: 
--- Output start ---
Build started 11/29/2024 2:31:03 PM.
Project "C:\Users\morajiv\AppData\Local\tms\Temp\p\tms.flexcel.vcl_dtokyo_win32intel_Release\FlexCel_Core.dproj" on node 0 (Build target(s)).
  Creating directory ".\Win32\Release\".
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061: The "BRCC32" task could not be instantiated from the assembly "C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\Borland.Build.Tasks.Shared.dll". 
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061: System.ArgumentException: Item has already been added. Key in dictionary: 'path'  Key being added: 'path'
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Collections.Hashtable.Add(Object key, Object value)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Collections.Specialized.StringDictionary.Add(String key, String value)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.XmlSerializer..ctor(Type type)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Common.MetadataManager.LoadFromResource(Assembly assembly, String resourceName)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Common.MetadataManager.LoadFromResource(Type type)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Common.BaseTask.get_Metadata()
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Common.BaseTask..ctor()
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Common.CommandLineTask..ctor()
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Shared.BRCC32..ctor()
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4060: The "BRCC32" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Done Building Project "C:\Users\morajiv\AppData\Local\tms\Temp\p\tms.flexcel.vcl_dtokyo_win32intel_Release\FlexCel_Core.dproj" (Build target(s)) -- FAILED.

Build FAILED.

"C:\Users\morajiv\AppData\Local\tms\Temp\p\tms.flexcel.vcl_dtokyo_win32intel_Release\FlexCel_Core.dproj" (Build target) (1) ->
(BuildVersionResource target) -> 
  C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061: The "BRCC32" task could not be instantiated from the assembly "C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\Borland.Build.Tasks.Shared.dll". 
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061: System.ArgumentException: Item has already been added. Key in dictionary: 'path'  Key being added: 'path'
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Collections.Hashtable.Add(Object key, Object value)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Collections.Specialized.StringDictionary.Add(String key, String value)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at System.Xml.Serialization.XmlSerializer..ctor(Type type)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Common.MetadataManager.LoadFromResource(Assembly assembly, String resourceName)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Common.MetadataManager.LoadFromResource(Type type)
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Common.BaseTask.get_Metadata()
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Common.BaseTask..ctor()
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Common.CommandLineTask..ctor()
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4061:    at Borland.Build.Tasks.Shared.BRCC32..ctor()
  C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\CodeGear.Common.Targets(1143,5): error MSB4060: The "BRCC32" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:00.36

--- Output end ---
Execution failed: Could not execute command line. Exit code: 1

Error building project "TMS FlexCel Studio for VCL and FMX 7.22.1" in IDE delphitokyo in Platform win32intel: Failed to compile C:\Users\morajiv\AppData\Local\tms\Temp\p\tms.flexcel.vcl_dtokyo_win32intel_Release\FlexCel_Core.dproj

Can you please tell me whats wrong here and how to fix it?

Him
This is an error in smartsetup that affects some customers and has already been fixed, but the current setup isn't updated with the fix yet. The simplest workaround is to use smartsetup directly, instead of setup.exe which is just a wrapper around it.

The steps would be:

  1. Uninstall your current setup from Start Menu->Install and Uninstall programs"
  2. Install smart setup from Download | TMS Smart Setup documentation
  3. You can run tmsgui.exe to install it, or if you prefer the command line:
    3.1. Create a folder for tms components
    3.2. in the command line, cd to that folder and do tms credentials. Enter your email and reg code.
    3.3. If you want to customize further, type tms config. If you are ok with the defaults, just skip this step
    3.4. Type tms install tms.flexcel.vcl

Hi Adrian, Thanks for the information. I have used the link for Smart Setup, however, looks like your production server not responding timely manner during the TMS Smart Client download, as a result I am now stuck on download process during the installation of TMS Flexcel VCL!!

Here is the log:

[21:51:10] === Repository Summary ===
[21:51:10]
[21:51:11] Found tms.flexcel.vcl:7.22.1.0 in repository
[21:51:11] Found tms.smartsetup.windows:1.3.0.1 in repository
[21:51:21 - 0%] Downloading tms.flexcel.vcl_production_7.22.1.0 (0%)
[21:51:43 - 0%] Downloading tms.flexcel.vcl_production_7.22.1.0 (0%)
[21:51:45 - 0%] Downloading tms.flexcel.vcl_production_7.22.1.0 (0%)
[21:51:48 - 0%] Downloading tms.flexcel.vcl_production_7.22.1.0 (0%)
[21:52:09 - 0%] Downloading tms.flexcel.vcl_production_7.22.1.0 (0%)
[21:54:06 - 0%] Error downloading tms.flexcel.vcl: Error reading data: (12002) The operation timed out
[21:54:06 - 0%] Download tasks finished
[21:54:06] Total: 100, Processed: 0
[21:54:06] === Fetch Summary ===
[21:54:06] - tms.flexcel.vcl -> FAILED
[21:54:06]
[21:54:06] Error: Some download tasks have failed

There were errors. If you need to contact support, please attach the logs at "C:\Users\morajiv\AppData\Local\TMS Setup\Logs\logs.zip".

also I will upload the complete logs!
logs.zip (3.5 KB)

Please tell me what is faster way to fix the installation process. Also do you have any hotline to get support by calling or contacting! I am looking forward to it.

This is weird, it seems like there is a connection issue so it isn't downloading the package, but it did connect because it found them in the tms repo. Might be a temporary server down? For the record, this is how it should look like (I just tried it here right now):

So, what I would say is:

  1. Please retry again now. Maybe it was a temporary network glitch.
  2. If you still can't get it, please email me to adrian@tmssoftware.com and I'll send you a link to an updated setup that should work as expected.

Just fyi, we've released 7.23 which should fix this issue in the setup.exe.