问题描述
大家好,
我正在写一个批处理文件,用gacutil安装我的dll。
但我找不到超出gacutil的确切位置,因为不同的机器可能有不同的Microsoft SDK'。
因此我试图使用Reg.exe这样做。 />
例如,
FOR / F令牌= 2 *%% a in(''REG QUERY HKLM \Software \ Microsoft \ Windows \ CurrentVersion \ Installer \ UserData \S-1-5-18 \ 组件 / v gacutil.exe ^ | FINDSTR gacutil.exe'')DO SET ldclientdir = %% b
这里我的组件文件夹包含子文件夹为6EA51B6D250BE3636BBB4C17C4AB5690,其中注册表值是gacutil exe的实际路径。
请帮我纠正以上问题。
提前致谢。
Ajay Kulkarni
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
推荐答案
它包含在内使用Visual Studio(作为Microsoft SDK的一部分)和.Net框架所以它可能在一个以下(或更多!):
It''s included with Visual Studio (as part of the Microsoft SDK) and the .Net framework So it might be in one of the following (or more!):
来源: []
在我的机器上(安装了MS VS 2005)i'我们只发现了这个密钥:
HKEY_LOCAL_MACHINE\SOFTWARE \ Microsoft \ _Microsoft SDKs \.NETFramework \v2.0 \安装文件夹= E:\ Microsoft Visual Studio 8 \ SDK \v2.0 \
这篇关于如何从注册表中找到Gacutil的价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!