C Runtime Error R6034

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."
 
G

Guest

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top