This commit migrates from VS 2013 to VS 2015. Beside the auto conversion which was performed by VS this commit includes the following fixes which enabled the builld to work: Win (7, 8, 8.1, 10): * Set the KMDF Version Major to 1. * Set the KMDF Version Minor to 11. Win XP: * Add _When_ define. * Add empty implementation to guard functions which else would cause an unresolved symbols. * Add path to WinDDK's wdfinstaller.h in UsbDkHelper project. * Add "GetDriverProjectAttributes" and "GetPackageFiles" targets to UsbDkController, UsbDkHelper and UsbDkInstHelper project files. Signed-off-by: Sameeh Jubran <sameeh@daynix.com> Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
23 lines
736 B
Text
23 lines
736 B
Text
Dim strCmdLine, strTemp
|
|
Set WshShell = Wscript.CreateObject("Wscript.Shell")
|
|
|
|
On Error Resume Next
|
|
strCmdLine = WshShell.RegRead("HKLM\SOFTWARE\Microsoft\VisualStudio\14.0\InstallDir")
|
|
' In case of error assume WoW64 case
|
|
If Err <> 0 Then
|
|
On Error Goto 0
|
|
strCmdLine = WshShell.RegRead("HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\InstallDir")
|
|
End If
|
|
|
|
On Error Goto 0
|
|
strCmdLine = chr(34) + strCmdLine + "devenv.com" + chr(34)
|
|
For i = 0 to (Wscript.Arguments.Count - 1)
|
|
strTemp = Wscript.Arguments(i)
|
|
If InStr(strTemp, " ") Or InStr(strTemp, "|") Then
|
|
strCmdLine = strCmdLine + " " + chr(34) + strTemp + chr(34)
|
|
Else
|
|
strCmdLine = strCmdLine + " " + strTemp
|
|
End If
|
|
Next
|
|
|
|
WScript.Echo strCmdLine + vbCrLf
|