支持visual studio 2017版本

This commit is contained in:
Argo-Lenovo 2017-03-13 16:49:45 +08:00
parent 1ec47131d6
commit 00e795a1b5
1 changed files with 4 additions and 1 deletions

View File

@ -115,7 +115,10 @@ Function GetFileName(fileName)
End Function
Sub ReSignFile(fileName)
If Not fso.FileExists(shell.ExpandEnvironmentStrings(signCmd)) Then
signCmd = "%ProgramFiles(x86)%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\sn.exe"
End If
cmd = """"& signCmd &""" -R """ & fileName & """ " & keyFile
shell.run cmd, 0, True
WScript.Echo "Assembly '" & fileName & "' successfully re-signed"
WScript.Echo "Assembly '" & fileName & "' successfully re-signed @_@"
End Sub