From 5ab109df9a05e0d107f3c9ac199672a6934ff75f Mon Sep 17 00:00:00 2001 From: McMak Date: Fri, 8 May 2015 21:55:14 +0300 Subject: [PATCH] Fix WSP registry locator. --- .../Sources/Setup.WIXInstaller/Product.wxs | 12 +++++----- .../WebsitePanel.WIXInstaller/CustomAction.cs | 23 +++++++++---------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/WebsitePanel.Installer/Sources/Setup.WIXInstaller/Product.wxs b/WebsitePanel.Installer/Sources/Setup.WIXInstaller/Product.wxs index 866e0a79..c22fd509 100644 --- a/WebsitePanel.Installer/Sources/Setup.WIXInstaller/Product.wxs +++ b/WebsitePanel.Installer/Sources/Setup.WIXInstaller/Product.wxs @@ -540,8 +540,8 @@ - - + + - WSP_ROOT + WSP_BASE @@ -684,9 +684,9 @@ - - + diff --git a/WebsitePanel.Installer/Sources/WebsitePanel.WIXInstaller/CustomAction.cs b/WebsitePanel.Installer/Sources/WebsitePanel.WIXInstaller/CustomAction.cs index 726ded67..e14b3ce4 100644 --- a/WebsitePanel.Installer/Sources/WebsitePanel.WIXInstaller/CustomAction.cs +++ b/WebsitePanel.Installer/Sources/WebsitePanel.WIXInstaller/CustomAction.cs @@ -68,17 +68,6 @@ namespace WebsitePanel.WIXInstaller Log.WriteEnd("PreFillSettings"); return ActionResult.Success; } - private static void TryApllyNewPassword(Session Ctx, string Id) - { - var Pass = Ctx[Id]; - if(string.IsNullOrWhiteSpace(Pass)) - { - Pass = Guid.NewGuid().ToString(); - Ctx[Id] = Pass; - Ctx[Id + "_CONFIRM"] = Pass; - Log.WriteInfo("New password was applied to " + Id); - } - } [CustomAction] public static ActionResult InstallWebFeatures(Session session) { @@ -778,6 +767,17 @@ namespace WebsitePanel.WIXInstaller { Debugger.Launch(); } + private static void TryApllyNewPassword(Session Ctx, string Id) + { + var Pass = Ctx[Id]; + if (string.IsNullOrWhiteSpace(Pass)) + { + Pass = Guid.NewGuid().ToString(); + Ctx[Id] = Pass; + Ctx[Id + "_CONFIRM"] = Pass; + Log.WriteInfo("New password was applied to " + Id); + } + } } public static class SessionExtension { @@ -788,7 +788,6 @@ namespace WebsitePanel.WIXInstaller WiXSetup.InstallLogListener(new WiXLogFileListener()); } } - internal enum WiXInstallType: byte { InstallServer,