create native image during installation

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

    #1

    create native image during installation

    Can anyone point me to a place where I can use a custom
    action within a C# setup project to generate a native
    image on the target machine during installation?

    Thanks!
  • Richard

    #2
    create native image during installation


    I'm going from memory here so bear with me - I don't think
    there is an option per se to go native. I think you have
    to either manually do it on the command line or get the
    proper compiler switch settings from the command line
    assembler and feed them into project settings somewhere...

    Just curious - why would you want to go native? From what
    I've read the downside of going native is more painful
    than one time JIT costs...

    --Richard
    [color=blue]
    >-----Original Message-----
    >Can anyone point me to a place where I can use a custom
    >action within a C# setup project to generate a native
    >image on the target machine during installation?
    >
    >Thanks!
    >.
    >[/color]

    Comment

    • jj

      #3
      create native image during installation

      This particular app's startup time is slow. The native
      image will speed that up. The performance hit, if there
      is one, on the rest of the apps execution will too small
      for the end user to notice. However, due to the decreased
      startup time, the app will "appear" to be more responsive;-
      )[color=blue]
      >-----Original Message-----
      >
      >I'm going from memory here so bear with me - I don't[/color]
      think[color=blue]
      >there is an option per se to go native. I think you have
      >to either manually do it on the command line or get the
      >proper compiler switch settings from the command line
      >assembler and feed them into project settings somewhere...
      >
      >Just curious - why would you want to go native? From[/color]
      what[color=blue]
      >I've read the downside of going native is more painful
      >than one time JIT costs...
      >
      >--Richard
      >[color=green]
      >>-----Original Message-----
      >>Can anyone point me to a place where I can use a custom
      >>action within a C# setup project to generate a native
      >>image on the target machine during installation?
      >>
      >>Thanks!
      >>.
      >>[/color]
      >.
      >[/color]

      Comment

      • Mattias Sjögren

        #4
        Re: create native image during installation

        [color=blue]
        >Can anyone point me to a place where I can use a custom
        >action within a C# setup project to generate a native
        >image on the target machine during installation?[/color]

        Is this what you're looking for?

        Walkthrough: Using a Custom Action to Pre-Compile an Assembly During
        Installation
        http://msdn.microsoft.com/library/en...stallation.asp



        Mattias

        --
        Mattias Sjögren [MVP] mattias @ mvps.org

        Please reply only to the newsgroup.

        Comment

        • Mattias Sjögren

          #5
          Re: create native image during installation

          [color=blue]
          >[DllImport("mcsc oree.dll")]
          >private extern int GetCORSSystemDi rectory([MarshalAs
          >(UnmanagedType .LPWStr)] StringBuilder Buffer, int
          >BufferLength , ref int Length)
          >
          >But I'm not sure. . .is my translation correct?[/color]

          Looks correct to me.

          Another option is to use
          System.Runtime. InteropServices .RuntimeEnviron ment.GetRuntime Directory()



          Mattias

          --
          Mattias Sjögren [MVP] mattias @ mvps.org

          Please reply only to the newsgroup.

          Comment

          • Mattias Sjögren

            #6
            Re: create native image during installation

            [color=blue]
            >[DllImport("mcsc oree.dll")]
            >private extern int GetCORSSystemDi rectory([MarshalAs
            >(UnmanagedType .LPWStr)] StringBuilder Buffer, int
            >BufferLength , ref int Length)
            >
            >But I'm not sure. . .is my translation correct?[/color]

            Looks correct to me.

            Another option is to use
            System.Runtime. InteropServices .RuntimeEnviron ment.GetRuntime Directory()



            Mattias

            --
            Mattias Sjögren [MVP] mattias @ mvps.org

            Please reply only to the newsgroup.

            Comment

            Working...