You can do something like:
GacInstall((new System.IO.FileInfo("MyAssembly.dll")).FullName);
or,
GacInstall(System.IO.Path.GetFullPath("MyAssembly.dll"));
Suppose the file is in your current working directory. If this is not the case, you need to determine what rules are used to search for this DLL (for example, is it on the same path as your current executable?)
source share