Click here to Skip to main content
12,065,720 members (33,961 online)
Rate this:
 
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.
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 9-Apr-13 2:23am

1 solution

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

Solution 1

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\
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web03 | 2.8.160207.1 | Last Updated 9 Apr 2013
Copyright © CodeProject, 1999-2016
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