diff --git a/Build/DllExporter/Program.cs b/Build/DllExporter/Program.cs index d9ad841c..4b56fda4 100644 --- a/Build/DllExporter/Program.cs +++ b/Build/DllExporter/Program.cs @@ -195,10 +195,10 @@ namespace DllExporter /// private static string FindIldasmPath() { - var sdkPath = Environment.ExpandEnvironmentVariables(@"%ProgramFiles%\Microsoft SDKs\Windows\"); + var sdkPath = Environment.ExpandEnvironmentVariables(@"%ProgramFiles(x86)%\Microsoft SDKs\Windows\"); if (!Directory.Exists(sdkPath)) { - sdkPath = Environment.ExpandEnvironmentVariables(@"%ProgramFiles(x86)%\Microsoft SDKs\Windows\"); + sdkPath = Environment.ExpandEnvironmentVariables(@"%ProgramFiles%\Microsoft SDKs\Windows\"); } if (!Directory.Exists(sdkPath))