From c5fa9db2cbce3f12a90743010a3a2041e452c44a Mon Sep 17 00:00:00 2001 From: Sergey Date: Sat, 29 Dec 2012 17:24:11 +0200 Subject: [PATCH] fix: GetHeliconApeVersion for old version of Ape --- .../WebsitePanel.Providers.Web.IIS70/IIs70.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs index a9e02df8..a6a5d76b 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs @@ -2037,6 +2037,19 @@ namespace WebsitePanel.Providers.Web return System.Diagnostics.FileVersionInfo.GetVersionInfo(apeModulePath).FileVersion; } + apeModulePath = Path.Combine(installDir, "ManualInstall\\bin\\Helicon.Ape.dll"); + if (File.Exists(apeModulePath)) + { + return System.Diagnostics.FileVersionInfo.GetVersionInfo(apeModulePath).FileVersion; + } + + apeModulePath = Path.Combine(installDir, "Helicon.Ape.dll"); + if (File.Exists(apeModulePath)) + { + return System.Diagnostics.FileVersionInfo.GetVersionInfo(apeModulePath).FileVersion; + } + + return HELICON_APE_NOT_REGISTERED; }