C Runtime Error R6034

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We are writing a MSI installer using a setup project in Visual Studio 2005.
All dll's are built with VC 8 so each dll uses a Manifest embedded in a
resource. The installer does the following.

1) install VC8 runtime on the target machine,

2) moves and registers the dlls for the application

3) Run a custom action c# script on the commit event. The script loads a dll
via pinvoke and ivokes a function. The function itself instantiates a com
object from another dll using CoCreateInstance. CoCreateInstance fails and
MSIExec.exe gets the c runtime error R6034

Any ideas. More information can be provided as needed."
 
Yes, CoCreateIntance works correctly outside of the installation process.
The runtime error appears when a dll is loaded from another process that was
started up on the Commit event during installation.
 
The problem was solved by msdn support. We are using Tcl in our installation
and it turns out that Tcl changes the SystemRoot envrionment variable to have
a forward slash in the path. We removed the manipulatioin of the environment
variables as we do not use them from Tcl and that solved the problem.
 
Back
Top