Deployment and nGen.exe

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

    Deployment and nGen.exe

    I have a question regarding the use of ngen.exe and dedployment.

    I want to make sure I understand this correctly.
    If I create an app that has an .exe as well as a couple of .dll's.
    I can create a setup package, create a batch file (specifying the ngen
    commands) run the install, call the batch file from within the setup program
    and run ngen.exe on the .exe and .dll files.

    This will create a native image in the machines GAC.

    I guess my question is:
    1. Is that the correct scenario?
    2. Does the .net framework install ngen with the dotnetfx?
    3. How can I know the location of the ngen.exe file? (ie if the users system
    drive is D:\ instead of C:\)

    Thanks.
    William


  • Tim Kurtzman

    #2
    RE: Deployment and nGen.exe

    1) Yep, that's the correct scenario.

    2) Yep, the .net framework installs ngen.

    3) In the registry, you'll find the reg value "InstallRoo t" under
    HKLM\Software\M icrosoft.NET\fr amework\. That will point to the place where
    all of the runtimes are installed. Append the version of the runtime you
    want to the value of "InstallRoo t", and that's where you'll find ngen.

    Tim

    --------------------[color=blue]
    >From: "William Reyes" <wreyes@optonli ne.net>
    >Subject: Deployment and nGen.exe
    >Date: Tue, 19 Aug 2003 08:31:29 -0400
    >Lines: 20
    >X-Priority: 3
    >X-MSMail-Priority: Normal
    >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    >Message-ID: <usiWD3kZDHA.26 32@TK2MSFTNGP12 .phx.gbl>
    >Newsgroups: microsoft.publi c.dotnet.genera l
    >NNTP-Posting-Host: cl183-230.dsl.invisio n.com 69.18.183.230
    >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
    >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:104995
    >X-Tomcat-NG: microsoft.publi c.dotnet.genera l
    >
    >I have a question regarding the use of ngen.exe and dedployment.
    >
    >I want to make sure I understand this correctly.
    >If I create an app that has an .exe as well as a couple of .dll's.
    >I can create a setup package, create a batch file (specifying the ngen
    >commands) run the install, call the batch file from within the setup[/color]
    program[color=blue]
    >and run ngen.exe on the .exe and .dll files.
    >
    >This will create a native image in the machines GAC.
    >
    >I guess my question is:
    >1. Is that the correct scenario?
    >2. Does the .net framework install ngen with the dotnetfx?
    >3. How can I know the location of the ngen.exe file? (ie if the users[/color]
    system[color=blue]
    >drive is D:\ instead of C:\)
    >
    >Thanks.
    >William
    >
    >
    >[/color]

    Comment

    • William Reyes

      #3
      Re: Deployment and nGen.exe

      Thanks Tim.
      "Tim Kurtzman" <timkur@microso ft.com> wrote in message
      news:b5gpbxpZDH A.2552@cpmsftng xa06.phx.gbl...[color=blue]
      > 1) Yep, that's the correct scenario.
      >
      > 2) Yep, the .net framework installs ngen.
      >
      > 3) In the registry, you'll find the reg value "InstallRoo t" under
      > HKLM\Software\M icrosoft.NET\fr amework\. That will point to the place where
      > all of the runtimes are installed. Append the version of the runtime you
      > want to the value of "InstallRoo t", and that's where you'll find ngen.
      >
      > Tim
      >
      > --------------------[color=green]
      > >From: "William Reyes" <wreyes@optonli ne.net>
      > >Subject: Deployment and nGen.exe
      > >Date: Tue, 19 Aug 2003 08:31:29 -0400
      > >Lines: 20
      > >X-Priority: 3
      > >X-MSMail-Priority: Normal
      > >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
      > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
      > >Message-ID: <usiWD3kZDHA.26 32@TK2MSFTNGP12 .phx.gbl>
      > >Newsgroups: microsoft.publi c.dotnet.genera l
      > >NNTP-Posting-Host: cl183-230.dsl.invisio n.com 69.18.183.230
      > >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
      > >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:104995
      > >X-Tomcat-NG: microsoft.publi c.dotnet.genera l
      > >
      > >I have a question regarding the use of ngen.exe and dedployment.
      > >
      > >I want to make sure I understand this correctly.
      > >If I create an app that has an .exe as well as a couple of .dll's.
      > >I can create a setup package, create a batch file (specifying the ngen
      > >commands) run the install, call the batch file from within the setup[/color]
      > program[color=green]
      > >and run ngen.exe on the .exe and .dll files.
      > >
      > >This will create a native image in the machines GAC.
      > >
      > >I guess my question is:
      > >1. Is that the correct scenario?
      > >2. Does the .net framework install ngen with the dotnetfx?
      > >3. How can I know the location of the ngen.exe file? (ie if the users[/color]
      > system[color=green]
      > >drive is D:\ instead of C:\)
      > >
      > >Thanks.
      > >William
      > >
      > >
      > >[/color]
      >[/color]


      Comment

      • Alan Shi [MSFT]

        #4
        Re: Deployment and nGen.exe

        Also note that native images are not installed in the "GAC" (this is a
        common misconception). Native images are installed in a directory that is a
        sibling of the GAC, but these are very different storage locations.

        ..\lan

        --
        This posting is provided "AS IS" with no warranties, and confers no rights.



        "William Reyes" <wreyes@optonli ne.net> wrote in message
        news:Oe2V5TrZDH A.2256@TK2MSFTN GP10.phx.gbl...[color=blue]
        > Thanks Tim.
        > "Tim Kurtzman" <timkur@microso ft.com> wrote in message
        > news:b5gpbxpZDH A.2552@cpmsftng xa06.phx.gbl...[color=green]
        > > 1) Yep, that's the correct scenario.
        > >
        > > 2) Yep, the .net framework installs ngen.
        > >
        > > 3) In the registry, you'll find the reg value "InstallRoo t" under
        > > HKLM\Software\M icrosoft.NET\fr amework\. That will point to the place[/color][/color]
        where[color=blue][color=green]
        > > all of the runtimes are installed. Append the version of the runtime you
        > > want to the value of "InstallRoo t", and that's where you'll find ngen.
        > >
        > > Tim
        > >
        > > --------------------[color=darkred]
        > > >From: "William Reyes" <wreyes@optonli ne.net>
        > > >Subject: Deployment and nGen.exe
        > > >Date: Tue, 19 Aug 2003 08:31:29 -0400
        > > >Lines: 20
        > > >X-Priority: 3
        > > >X-MSMail-Priority: Normal
        > > >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
        > > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
        > > >Message-ID: <usiWD3kZDHA.26 32@TK2MSFTNGP12 .phx.gbl>
        > > >Newsgroups: microsoft.publi c.dotnet.genera l
        > > >NNTP-Posting-Host: cl183-230.dsl.invisio n.com 69.18.183.230
        > > >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
        > > >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:104995
        > > >X-Tomcat-NG: microsoft.publi c.dotnet.genera l
        > > >
        > > >I have a question regarding the use of ngen.exe and dedployment.
        > > >
        > > >I want to make sure I understand this correctly.
        > > >If I create an app that has an .exe as well as a couple of .dll's.
        > > >I can create a setup package, create a batch file (specifying the ngen
        > > >commands) run the install, call the batch file from within the setup[/color]
        > > program[color=darkred]
        > > >and run ngen.exe on the .exe and .dll files.
        > > >
        > > >This will create a native image in the machines GAC.
        > > >
        > > >I guess my question is:
        > > >1. Is that the correct scenario?
        > > >2. Does the .net framework install ngen with the dotnetfx?
        > > >3. How can I know the location of the ngen.exe file? (ie if the users[/color]
        > > system[color=darkred]
        > > >drive is D:\ instead of C:\)
        > > >
        > > >Thanks.
        > > >William
        > > >
        > > >
        > > >[/color]
        > >[/color]
        >
        >[/color]


        Comment

        Working...