module BradyW::WindowsPaths
Private Instance Methods
dotnet(subpath)
click to toggle source
Fetches the .NET Framework path from the registry
# File lib/windowspaths.rb 17 def dotnet subpath 18 regvalue "SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\#{subpath}", "InstallPath" 19 end
regvalue(key, value)
click to toggle source
# File lib/windowspaths.rb 21 def regvalue(key, value) 22 keyAndVal = "#{key}\\#{value}" 23 log "Retrieving registry key #{keyAndVal}" 24 regacc = BradyW::RegistryAccessor.new 25 regacc.regvalue(key,value) 26 end
sql_tool(version)
click to toggle source
Fetches the path for tools like bcp.exe and sqlcmd.exe from the registry
# File lib/windowspaths.rb 7 def sql_tool version 8 regvalue "SOFTWARE\\Microsoft\\Microsoft SQL Server\\#{version}\\Tools\\ClientSetup", 'Path' 9 end
visual_studio(version)
click to toggle source
Fetches the path for Visual Studio tools like MSTest.exe from the registry
# File lib/windowspaths.rb 12 def visual_studio version 13 regvalue "SOFTWARE\\Microsoft\\VisualStudio\\#{version}", 'InstallDir' 14 end