Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am writing a batch file to install my dll with gacutil.
But I am not able to find out the exact location of gacutil, as different machine may have different Microsoft SDK's.

Hence I am trying to use Reg.exe to do so.
Eg,
FOR /F "tokens=2*" %%a in ('REG QUERY HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components /v gacutil.exe ^|FINDSTR gacutil.exe') DO SET ldclientdir=%%b

Here my Components folder contains sub folder as 6EA51B6D250BE3636BBB4C17C4AB5690 where the registry value is the actual path of gacutil exe.

Please help me to correct the above query.

Thanks in advance.

Ajay Kulkarni
Posted

1 solution

Quote:
It's included with Visual Studio (as part of the Microsoft SDK) and the .Net framework (v1 and 1.1 only!) So it might be in one of the following (or more!):

source: Where is gacutil.exe?[^]

On my machine (MS VS 2005 installed) i've found only this key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\.NETFramework\v2.0\InstallationFolder = E:\Microsoft Visual Studio 8\SDK\v2.0\
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900