Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. using GACUTIL.exe programmatically

using GACUTIL.exe programmatically

Scheduled Pinned Locked Moved C#
questioncsharpdotnetvisual-studiohelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sohne
    wrote on last edited by
    #1

    Hi, I want to programatically add a component in GAC using GACUtil.exe. I tried usingProcessStartInfo class. It gives error "The system cannot find the file specified.". How can i run programmatically run commands on VS DOTNET 2003 prompt?

    P A 2 Replies Last reply
    0
    • S sohne

      Hi, I want to programatically add a component in GAC using GACUtil.exe. I tried usingProcessStartInfo class. It gives error "The system cannot find the file specified.". How can i run programmatically run commands on VS DOTNET 2003 prompt?

      P Offline
      P Offline
      Praveen Nayak
      wrote on last edited by
      #2

      You can execute batch files using Process.Start(...) command. You can create a batch file which first invokes the vsvars32.bat (to set the path), and then you can execute GacUtil.exe, which will do whatever... There has to be more to life than just this

      1 Reply Last reply
      0
      • S sohne

        Hi, I want to programatically add a component in GAC using GACUtil.exe. I tried usingProcessStartInfo class. It gives error "The system cannot find the file specified.". How can i run programmatically run commands on VS DOTNET 2003 prompt?

        A Offline
        A Offline
        Ahmad Mahmoud candseeme
        wrote on last edited by
        #3

        Hi " How can i run programmatically run commands on VS DOTNET 2003 prompt?" ?? By this way you are assuming that the end user have the .Net INSTALLED hence you can launch the command line tools!! Well First VS.Net do not register its command line tools globaly which means you can't run these command from the normal command prompt window and that mean if type any command in the run dialog it will generate you the same error "The system cannot find the file specified." so you must either 1) type the full path to the command you want to run and that isn't practical cause it may differ 2) copy the command executable and paste in the same folder with your program in your case "GACUtil.exe" and i think it is illegal to distribute those tools with you program Ahmad Shaban

        S 1 Reply Last reply
        0
        • A Ahmad Mahmoud candseeme

          Hi " How can i run programmatically run commands on VS DOTNET 2003 prompt?" ?? By this way you are assuming that the end user have the .Net INSTALLED hence you can launch the command line tools!! Well First VS.Net do not register its command line tools globaly which means you can't run these command from the normal command prompt window and that mean if type any command in the run dialog it will generate you the same error "The system cannot find the file specified." so you must either 1) type the full path to the command you want to run and that isn't practical cause it may differ 2) copy the command executable and paste in the same folder with your program in your case "GACUtil.exe" and i think it is illegal to distribute those tools with you program Ahmad Shaban

          S Offline
          S Offline
          sohne
          wrote on last edited by
          #4

          But the GACUTIL.exe is always supplied to the client. It is in the DotNet framework. So there is no point being illegal.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups