using GACUTIL.exe programmatically
-
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?
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
-
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?
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
-
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