Click here to Skip to main content
11,716,133 members (88,158 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: COM DLL batch
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.
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 9-Apr-13 1:23am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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\

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 599
1 Richard MacCutchan 280
2 Maciej Los 275
3 OriginalGriff 160
4 F-ES Sitecore 145
0 Sergey Alexandrovich Kryukov 1,003
1 Richard MacCutchan 430
2 CHill60 415
3 Maciej Los 399
4 OriginalGriff 385

Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 9 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100