Click here to Skip to main content
11,581,982 members (77,547 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 OriginalGriff 355
1 Sergey Alexandrovich Kryukov 220
2 Andy Lanng 110
3 virusstorm 109
4 Kornfeld Eliyahu Peter 90
0 OriginalGriff 1,358
1 Sergey Alexandrovich Kryukov 970
2 Abhinav S 671
3 F-ES Sitecore 505
4 Suvendu Shekhar Giri 448

Advertise | Privacy | Mobile
Web03 | 2.8.150603.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