Consts introduced in Helicon Ape stuff
This commit is contained in:
parent
663800c225
commit
2a221f793d
1 changed files with 13 additions and 11 deletions
|
@ -110,9 +110,12 @@ namespace WebsitePanel.Providers.Web
|
||||||
// true handler name
|
// true handler name
|
||||||
public const string HeliconApeHandler = "Helicon.Ape Handler";
|
public const string HeliconApeHandler = "Helicon.Ape Handler";
|
||||||
public const string HeliconApeHandlerType = "Helicon.Ape.Handler";
|
public const string HeliconApeHandlerType = "Helicon.Ape.Handler";
|
||||||
|
|
||||||
public const string HeliconApeHandlerPath = "*.apehandler";
|
public const string HeliconApeHandlerPath = "*.apehandler";
|
||||||
|
|
||||||
|
public const string HeliconApeRegistryPath = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Helicon\\Ape";
|
||||||
|
public const string heliconApeRegistryPathWow6432 = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Helicon\\Ape";
|
||||||
|
|
||||||
|
|
||||||
public const string IsapiModule = "IsapiModule";
|
public const string IsapiModule = "IsapiModule";
|
||||||
public const string FastCgiModule = "FastCgiModule";
|
public const string FastCgiModule = "FastCgiModule";
|
||||||
public const string CgiModule = "CgiModule";
|
public const string CgiModule = "CgiModule";
|
||||||
|
@ -2066,10 +2069,10 @@ namespace WebsitePanel.Providers.Web
|
||||||
private string GetHeliconApeInstallDir(string siteId)
|
private string GetHeliconApeInstallDir(string siteId)
|
||||||
{
|
{
|
||||||
//Check global registration
|
//Check global registration
|
||||||
string installDir = Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Helicon\\Ape", "InstallDir", string.Empty) as string;
|
string installDir = Registry.GetValue(Constants.heliconApeRegistryPathWow6432, "InstallDir", string.Empty) as string;
|
||||||
if (string.Empty == installDir)
|
if (string.Empty == installDir)
|
||||||
{
|
{
|
||||||
installDir = Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Helicon\\Ape", "InstallDir", string.Empty) as string;
|
installDir = Registry.GetValue(Constants.HeliconApeRegistryPath, "InstallDir", string.Empty) as string;
|
||||||
}
|
}
|
||||||
|
|
||||||
return installDir;
|
return installDir;
|
||||||
|
@ -2218,12 +2221,12 @@ namespace WebsitePanel.Providers.Web
|
||||||
if (!string.IsNullOrEmpty(registrationInfo))
|
if (!string.IsNullOrEmpty(registrationInfo))
|
||||||
return registrationInfo;
|
return registrationInfo;
|
||||||
|
|
||||||
string ApeRegistryPath = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Helicon\\Ape";
|
string apeRegistryPath = Constants.HeliconApeRegistryPath;
|
||||||
long dtFirstRunBinary = 0L;
|
long dtFirstRunBinary = 0L;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
dtFirstRunBinary = (long) Registry.GetValue(ApeRegistryPath, "FirstRun", 0L);
|
dtFirstRunBinary = (long) Registry.GetValue(apeRegistryPath, "FirstRun", 0L);
|
||||||
}
|
}
|
||||||
catch(NullReferenceException)
|
catch(NullReferenceException)
|
||||||
{
|
{
|
||||||
|
@ -2232,10 +2235,10 @@ namespace WebsitePanel.Providers.Web
|
||||||
|
|
||||||
if (0 == dtFirstRunBinary)
|
if (0 == dtFirstRunBinary)
|
||||||
{
|
{
|
||||||
ApeRegistryPath = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Helicon\\Ape";
|
apeRegistryPath = Constants.heliconApeRegistryPathWow6432;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
dtFirstRunBinary = (long) Registry.GetValue(ApeRegistryPath, "FirstRun", 0L);
|
dtFirstRunBinary = (long) Registry.GetValue(apeRegistryPath, "FirstRun", 0L);
|
||||||
}
|
}
|
||||||
catch(NullReferenceException)
|
catch(NullReferenceException)
|
||||||
{
|
{
|
||||||
|
@ -2247,7 +2250,7 @@ namespace WebsitePanel.Providers.Web
|
||||||
if (0 == dtFirstRunBinary)
|
if (0 == dtFirstRunBinary)
|
||||||
{
|
{
|
||||||
dtFirstRun = DateTime.Now;
|
dtFirstRun = DateTime.Now;
|
||||||
Registry.SetValue(ApeRegistryPath, "FirstRun", dtFirstRun.ToBinary(),RegistryValueKind.QWord );
|
Registry.SetValue(apeRegistryPath, "FirstRun", dtFirstRun.ToBinary(),RegistryValueKind.QWord );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -3478,7 +3481,6 @@ namespace WebsitePanel.Providers.Web
|
||||||
public const string WDeployAppHostConfigWriter = "WDeployAppHostConfigWriter";
|
public const string WDeployAppHostConfigWriter = "WDeployAppHostConfigWriter";
|
||||||
public const string WDeployAppPoolConfigEditor = "WDeployAppPoolConfigEditor";
|
public const string WDeployAppPoolConfigEditor = "WDeployAppPoolConfigEditor";
|
||||||
|
|
||||||
|
|
||||||
private void SetupWebDeployPublishingOnServer(List<string> messages)
|
private void SetupWebDeployPublishingOnServer(List<string> messages)
|
||||||
{
|
{
|
||||||
if (IsWebDeployInstalled() == false
|
if (IsWebDeployInstalled() == false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue