C Runtime Error R6034

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bhanks

    #1

    C Runtime Error R6034

    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 CoCreateInstanc e. CoCreateInstanc e fails and
    MSIExec.exe gets the c runtime error R6034

    Any ideas. More information can be provided as needed."
  • alexcohn

    #2
    Re: C Runtime Error R6034


    Does the CoCreateInstanc e work if you call it not from the installer?



    --
    alexcohn
    ------------------------------------------------------------------------
    Posted via http://www.codecomments.com
    ------------------------------------------------------------------------

    Comment

    • bhanks

      #3
      Re: C Runtime Error R6034

      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.

      "alexcohn" wrote:
      >
      Does the CoCreateInstanc e work if you call it not from the installer?
      >
      >
      >
      --
      alexcohn
      ------------------------------------------------------------------------
      Posted via http://www.codecomments.com
      ------------------------------------------------------------------------
      >
      >

      Comment

      • bhanks

        #4
        RE: C Runtime Error R6034

        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.

        "bhanks" wrote:
        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 CoCreateInstanc e. CoCreateInstanc e fails and
        MSIExec.exe gets the c runtime error R6034
        >
        Any ideas. More information can be provided as needed."

        Comment

        Working...